import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages a Backup Policy Blob Storage. * * ## 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 exampleBackupVault = new azure.dataprotection.BackupVault("example", { * name: "example-backup-vault", * resourceGroupName: example.name, * location: example.location, * datastoreType: "VaultStore", * redundancy: "LocallyRedundant", * }); * const exampleBackupPolicyBlobStorage = new azure.dataprotection.BackupPolicyBlobStorage("example", { * name: "example-backup-policy", * vaultId: exampleBackupVault.id, * operationalDefaultRetentionDuration: "P30D", * vaultDefaultRetentionDuration: "P7D", * retentionRules: [ * { * name: "Weekly", * priority: 20, * lifeCycle: { * duration: "P90D", * dataStoreType: "VaultStore", * }, * criteria: { * daysOfWeeks: ["Monday"], * }, * }, * { * name: "Monthly", * priority: 10, * lifeCycle: { * duration: "P180D", * dataStoreType: "VaultStore", * }, * criteria: { * daysOfMonths: [1], * }, * }, * { * name: "Yearly", * priority: 5, * lifeCycle: { * duration: "P365D", * dataStoreType: "VaultStore", * }, * criteria: { * monthsOfYears: ["January"], * daysOfMonths: [1], * }, * }, * ], * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.DataProtection` - 2025-07-01 * * ## Import * * Backup Policy Blob Storages can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:dataprotection/backupPolicyBlobStorage:BackupPolicyBlobStorage example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DataProtection/backupVaults/vault1/backupPolicies/backupPolicy1 * ``` */ export declare class BackupPolicyBlobStorage extends pulumi.CustomResource { /** * Get an existing BackupPolicyBlobStorage 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?: BackupPolicyBlobStorageState, opts?: pulumi.CustomResourceOptions): BackupPolicyBlobStorage; /** * Returns true if the given object is an instance of BackupPolicyBlobStorage. 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 BackupPolicyBlobStorage; /** * Specifies a list of repeating time interval. It should follow `ISO 8601` repeating time interval. Changing this forces a new Backup Policy Blob Storage to be created. */ readonly backupRepeatingTimeIntervals: pulumi.Output; /** * The name which should be used for this Backup Policy Blob Storage. Changing this forces a new Backup Policy Blob Storage to be created. */ readonly name: pulumi.Output; /** * The duration of operational default retention rule. It should follow `ISO 8601` duration format. Changing this forces a new Backup Policy Blob Storage to be created. */ readonly operationalDefaultRetentionDuration: pulumi.Output; /** * One or more `retentionRule` blocks as defined below. Changing this forces a new Backup Policy Blob Storage to be created. * * > **Note:** Setting `retentionRule` also requires setting `vaultDefaultRetentionDuration`. */ readonly retentionRules: pulumi.Output; /** * Specifies the Time Zone which should be used by the backup schedule. Changing this forces a new Backup Policy Blob Storage to be created. */ readonly timeZone: pulumi.Output; /** * The duration of vault default retention rule. It should follow `ISO 8601` duration format. Changing this forces a new Backup Policy Blob Storage to be created. * * > **Note:** Setting `vaultDefaultRetentionDuration` also requires setting `backupRepeatingTimeIntervals`. At least one of `operationalDefaultRetentionDuration` or `vaultDefaultRetentionDuration` must be specified. */ readonly vaultDefaultRetentionDuration: pulumi.Output; /** * The ID of the Backup Vault within which the Backup Policy Blob Storage should exist. Changing this forces a new Backup Policy Blob Storage to be created. */ readonly vaultId: pulumi.Output; /** * Create a BackupPolicyBlobStorage 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: BackupPolicyBlobStorageArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering BackupPolicyBlobStorage resources. */ export interface BackupPolicyBlobStorageState { /** * Specifies a list of repeating time interval. It should follow `ISO 8601` repeating time interval. Changing this forces a new Backup Policy Blob Storage to be created. */ backupRepeatingTimeIntervals?: pulumi.Input[]>; /** * The name which should be used for this Backup Policy Blob Storage. Changing this forces a new Backup Policy Blob Storage to be created. */ name?: pulumi.Input; /** * The duration of operational default retention rule. It should follow `ISO 8601` duration format. Changing this forces a new Backup Policy Blob Storage to be created. */ operationalDefaultRetentionDuration?: pulumi.Input; /** * One or more `retentionRule` blocks as defined below. Changing this forces a new Backup Policy Blob Storage to be created. * * > **Note:** Setting `retentionRule` also requires setting `vaultDefaultRetentionDuration`. */ retentionRules?: pulumi.Input[]>; /** * Specifies the Time Zone which should be used by the backup schedule. Changing this forces a new Backup Policy Blob Storage to be created. */ timeZone?: pulumi.Input; /** * The duration of vault default retention rule. It should follow `ISO 8601` duration format. Changing this forces a new Backup Policy Blob Storage to be created. * * > **Note:** Setting `vaultDefaultRetentionDuration` also requires setting `backupRepeatingTimeIntervals`. At least one of `operationalDefaultRetentionDuration` or `vaultDefaultRetentionDuration` must be specified. */ vaultDefaultRetentionDuration?: pulumi.Input; /** * The ID of the Backup Vault within which the Backup Policy Blob Storage should exist. Changing this forces a new Backup Policy Blob Storage to be created. */ vaultId?: pulumi.Input; } /** * The set of arguments for constructing a BackupPolicyBlobStorage resource. */ export interface BackupPolicyBlobStorageArgs { /** * Specifies a list of repeating time interval. It should follow `ISO 8601` repeating time interval. Changing this forces a new Backup Policy Blob Storage to be created. */ backupRepeatingTimeIntervals?: pulumi.Input[]>; /** * The name which should be used for this Backup Policy Blob Storage. Changing this forces a new Backup Policy Blob Storage to be created. */ name?: pulumi.Input; /** * The duration of operational default retention rule. It should follow `ISO 8601` duration format. Changing this forces a new Backup Policy Blob Storage to be created. */ operationalDefaultRetentionDuration?: pulumi.Input; /** * One or more `retentionRule` blocks as defined below. Changing this forces a new Backup Policy Blob Storage to be created. * * > **Note:** Setting `retentionRule` also requires setting `vaultDefaultRetentionDuration`. */ retentionRules?: pulumi.Input[]>; /** * Specifies the Time Zone which should be used by the backup schedule. Changing this forces a new Backup Policy Blob Storage to be created. */ timeZone?: pulumi.Input; /** * The duration of vault default retention rule. It should follow `ISO 8601` duration format. Changing this forces a new Backup Policy Blob Storage to be created. * * > **Note:** Setting `vaultDefaultRetentionDuration` also requires setting `backupRepeatingTimeIntervals`. At least one of `operationalDefaultRetentionDuration` or `vaultDefaultRetentionDuration` must be specified. */ vaultDefaultRetentionDuration?: pulumi.Input; /** * The ID of the Backup Vault within which the Backup Policy Blob Storage should exist. Changing this forces a new Backup Policy Blob Storage to be created. */ vaultId: pulumi.Input; }