import * as pulumi from "@pulumi/pulumi"; /** * Manages a PostgreSQL Flexible Server Backup. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "example-resources", * location: "West Europe", * }); * const exampleFlexibleServer = new azure.postgresql.FlexibleServer("example", { * name: "example-fs", * resourceGroupName: example.name, * location: example.location, * administratorLogin: "adminTerraform", * administratorPassword: "QAZwsx123", * version: "12", * skuName: "GP_Standard_D2s_v3", * zone: "2", * }); * const exampleFlexibleServerBackup = new azure.postgresql.FlexibleServerBackup("example", { * name: "example-pfsb", * serverId: exampleFlexibleServer.id, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.DBforPostgreSQL` - 2025-08-01 * * ## Import * * An existing PostgreSQL Flexible Server Backup can be imported into Pulumi using the `resource id`, e.g. * * ```sh * $ pulumi import azure:postgresql/flexibleServerBackup:FlexibleServerBackup example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DBforPostgreSQL/flexibleServers/fs1/backups/backup1 * ``` */ export declare class FlexibleServerBackup extends pulumi.CustomResource { /** * Get an existing FlexibleServerBackup 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?: FlexibleServerBackupState, opts?: pulumi.CustomResourceOptions): FlexibleServerBackup; /** * Returns true if the given object is an instance of FlexibleServerBackup. 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 FlexibleServerBackup; /** * The Time (ISO8601 format) at which the backup was completed. */ readonly completedTime: pulumi.Output; /** * Specifies the name of this PostgreSQL Flexible Server Backup. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * The ID of the PostgreSQL Flexible Server from which to create this PostgreSQL Flexible Server Backup. Changing this forces a new resource to be created. */ readonly serverId: pulumi.Output; /** * Create a FlexibleServerBackup 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: FlexibleServerBackupArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering FlexibleServerBackup resources. */ export interface FlexibleServerBackupState { /** * The Time (ISO8601 format) at which the backup was completed. */ completedTime?: pulumi.Input; /** * Specifies the name of this PostgreSQL Flexible Server Backup. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The ID of the PostgreSQL Flexible Server from which to create this PostgreSQL Flexible Server Backup. Changing this forces a new resource to be created. */ serverId?: pulumi.Input; } /** * The set of arguments for constructing a FlexibleServerBackup resource. */ export interface FlexibleServerBackupArgs { /** * Specifies the name of this PostgreSQL Flexible Server Backup. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The ID of the PostgreSQL Flexible Server from which to create this PostgreSQL Flexible Server Backup. Changing this forces a new resource to be created. */ serverId: pulumi.Input; }