1. Packages
  2. Azure Native
  3. API Docs
  4. dataprotection
  5. BackupPolicy
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.37.0 published on Monday, Apr 15, 2024 by Pulumi

azure-native.dataprotection.BackupPolicy

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.37.0 published on Monday, Apr 15, 2024 by Pulumi

    BaseBackupPolicy resource Azure REST API version: 2023-01-01. Prior API version in Azure Native 1.x: 2021-01-01.

    Other available API versions: 2023-04-01-preview, 2023-05-01, 2023-06-01-preview, 2023-08-01-preview, 2023-11-01, 2023-12-01, 2024-02-01-preview, 2024-03-01.

    Example Usage

    CreateOrUpdate BackupPolicy

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var backupPolicy = new AzureNative.DataProtection.BackupPolicy("backupPolicy", new()
        {
            BackupPolicyName = "OSSDBPolicy",
            Properties = new AzureNative.DataProtection.Inputs.BackupPolicyArgs
            {
                DatasourceTypes = new[]
                {
                    "OssDB",
                },
                ObjectType = "BackupPolicy",
                PolicyRules = 
                {
                    new AzureNative.DataProtection.Inputs.AzureBackupRuleArgs
                    {
                        BackupParameters = new AzureNative.DataProtection.Inputs.AzureBackupParamsArgs
                        {
                            BackupType = "Full",
                            ObjectType = "AzureBackupParams",
                        },
                        DataStore = new AzureNative.DataProtection.Inputs.DataStoreInfoBaseArgs
                        {
                            DataStoreType = AzureNative.DataProtection.DataStoreTypes.VaultStore,
                            ObjectType = "DataStoreInfoBase",
                        },
                        Name = "BackupWeekly",
                        ObjectType = "AzureBackupRule",
                        Trigger = new AzureNative.DataProtection.Inputs.ScheduleBasedTriggerContextArgs
                        {
                            ObjectType = "ScheduleBasedTriggerContext",
                            Schedule = new AzureNative.DataProtection.Inputs.BackupScheduleArgs
                            {
                                RepeatingTimeIntervals = new[]
                                {
                                    "R/2019-11-20T08:00:00-08:00/P1W",
                                },
                            },
                            TaggingCriteria = new[]
                            {
                                new AzureNative.DataProtection.Inputs.TaggingCriteriaArgs
                                {
                                    IsDefault = true,
                                    TagInfo = new AzureNative.DataProtection.Inputs.RetentionTagArgs
                                    {
                                        TagName = "Default",
                                    },
                                    TaggingPriority = 99,
                                },
                                new AzureNative.DataProtection.Inputs.TaggingCriteriaArgs
                                {
                                    Criteria = new[]
                                    {
                                        new AzureNative.DataProtection.Inputs.ScheduleBasedBackupCriteriaArgs
                                        {
                                            DaysOfTheWeek = new[]
                                            {
                                                AzureNative.DataProtection.DayOfWeek.Sunday,
                                            },
                                            ObjectType = "ScheduleBasedBackupCriteria",
                                            ScheduleTimes = new[]
                                            {
                                                "2019-03-01T13:00:00Z",
                                            },
                                        },
                                    },
                                    IsDefault = false,
                                    TagInfo = new AzureNative.DataProtection.Inputs.RetentionTagArgs
                                    {
                                        TagName = "Weekly",
                                    },
                                    TaggingPriority = 20,
                                },
                            },
                        },
                    },
                    new AzureNative.DataProtection.Inputs.AzureRetentionRuleArgs
                    {
                        IsDefault = true,
                        Lifecycles = new[]
                        {
                            new AzureNative.DataProtection.Inputs.SourceLifeCycleArgs
                            {
                                DeleteAfter = new AzureNative.DataProtection.Inputs.AbsoluteDeleteOptionArgs
                                {
                                    Duration = "P1W",
                                    ObjectType = "AbsoluteDeleteOption",
                                },
                                SourceDataStore = new AzureNative.DataProtection.Inputs.DataStoreInfoBaseArgs
                                {
                                    DataStoreType = AzureNative.DataProtection.DataStoreTypes.VaultStore,
                                    ObjectType = "DataStoreInfoBase",
                                },
                            },
                        },
                        Name = "Default",
                        ObjectType = "AzureRetentionRule",
                    },
                    new AzureNative.DataProtection.Inputs.AzureRetentionRuleArgs
                    {
                        IsDefault = false,
                        Lifecycles = new[]
                        {
                            new AzureNative.DataProtection.Inputs.SourceLifeCycleArgs
                            {
                                DeleteAfter = new AzureNative.DataProtection.Inputs.AbsoluteDeleteOptionArgs
                                {
                                    Duration = "P12W",
                                    ObjectType = "AbsoluteDeleteOption",
                                },
                                SourceDataStore = new AzureNative.DataProtection.Inputs.DataStoreInfoBaseArgs
                                {
                                    DataStoreType = AzureNative.DataProtection.DataStoreTypes.VaultStore,
                                    ObjectType = "DataStoreInfoBase",
                                },
                            },
                        },
                        Name = "Weekly",
                        ObjectType = "AzureRetentionRule",
                    },
                },
            },
            ResourceGroupName = "000pikumar",
            VaultName = "PrivatePreviewVault",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure-native-sdk/dataprotection/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := dataprotection.NewBackupPolicy(ctx, "backupPolicy", &dataprotection.BackupPolicyArgs{
    			BackupPolicyName: pulumi.String("OSSDBPolicy"),
    			Properties: &dataprotection.BackupPolicyTypeArgs{
    				DatasourceTypes: pulumi.StringArray{
    					pulumi.String("OssDB"),
    				},
    				ObjectType: pulumi.String("BackupPolicy"),
    				PolicyRules: pulumi.Array{
    					dataprotection.AzureBackupRule{
    						BackupParameters: dataprotection.AzureBackupParams{
    							BackupType: "Full",
    							ObjectType: "AzureBackupParams",
    						},
    						DataStore: dataprotection.DataStoreInfoBase{
    							DataStoreType: dataprotection.DataStoreTypesVaultStore,
    							ObjectType:    "DataStoreInfoBase",
    						},
    						Name:       "BackupWeekly",
    						ObjectType: "AzureBackupRule",
    						Trigger: dataprotection.ScheduleBasedTriggerContext{
    							ObjectType: "ScheduleBasedTriggerContext",
    							Schedule: dataprotection.BackupSchedule{
    								RepeatingTimeIntervals: []string{
    									"R/2019-11-20T08:00:00-08:00/P1W",
    								},
    							},
    							TaggingCriteria: []dataprotection.TaggingCriteria{
    								{
    									IsDefault: true,
    									TagInfo: {
    										TagName: "Default",
    									},
    									TaggingPriority: 99,
    								},
    								{
    									Criteria: []dataprotection.ScheduleBasedBackupCriteria{
    										{
    											DaysOfTheWeek: []dataprotection.DayOfWeek{
    												dataprotection.DayOfWeekSunday,
    											},
    											ObjectType: "ScheduleBasedBackupCriteria",
    											ScheduleTimes: []string{
    												"2019-03-01T13:00:00Z",
    											},
    										},
    									},
    									IsDefault: false,
    									TagInfo: {
    										TagName: "Weekly",
    									},
    									TaggingPriority: 20,
    								},
    							},
    						},
    					},
    					dataprotection.AzureRetentionRule{
    						IsDefault: true,
    						Lifecycles: []dataprotection.SourceLifeCycle{
    							{
    								DeleteAfter: {
    									Duration:   "P1W",
    									ObjectType: "AbsoluteDeleteOption",
    								},
    								SourceDataStore: {
    									DataStoreType: dataprotection.DataStoreTypesVaultStore,
    									ObjectType:    "DataStoreInfoBase",
    								},
    							},
    						},
    						Name:       "Default",
    						ObjectType: "AzureRetentionRule",
    					},
    					dataprotection.AzureRetentionRule{
    						IsDefault: false,
    						Lifecycles: []dataprotection.SourceLifeCycle{
    							{
    								DeleteAfter: {
    									Duration:   "P12W",
    									ObjectType: "AbsoluteDeleteOption",
    								},
    								SourceDataStore: {
    									DataStoreType: dataprotection.DataStoreTypesVaultStore,
    									ObjectType:    "DataStoreInfoBase",
    								},
    							},
    						},
    						Name:       "Weekly",
    						ObjectType: "AzureRetentionRule",
    					},
    				},
    			},
    			ResourceGroupName: pulumi.String("000pikumar"),
    			VaultName:         pulumi.String("PrivatePreviewVault"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.dataprotection.BackupPolicy;
    import com.pulumi.azurenative.dataprotection.BackupPolicyArgs;
    import com.pulumi.azurenative.dataprotection.inputs.BackupPolicyArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var backupPolicy = new BackupPolicy("backupPolicy", BackupPolicyArgs.builder()        
                .backupPolicyName("OSSDBPolicy")
                .properties(BackupPolicyArgs.builder()
                    .datasourceTypes("OssDB")
                    .objectType("BackupPolicy")
                    .policyRules(                
                        AzureBackupRuleArgs.builder()
                            .backupParameters(AzureBackupParamsArgs.builder()
                                .backupType("Full")
                                .objectType("AzureBackupParams")
                                .build())
                            .dataStore(DataStoreInfoBaseArgs.builder()
                                .dataStoreType("VaultStore")
                                .objectType("DataStoreInfoBase")
                                .build())
                            .name("BackupWeekly")
                            .objectType("AzureBackupRule")
                            .trigger(ScheduleBasedTriggerContextArgs.builder()
                                .objectType("ScheduleBasedTriggerContext")
                                .schedule(BackupScheduleArgs.builder()
                                    .repeatingTimeIntervals("R/2019-11-20T08:00:00-08:00/P1W")
                                    .build())
                                .taggingCriteria(                            
                                    TaggingCriteriaArgs.builder()
                                        .isDefault(true)
                                        .tagInfo(RetentionTagArgs.builder()
                                            .tagName("Default")
                                            .build())
                                        .taggingPriority(99)
                                        .build(),
                                    TaggingCriteriaArgs.builder()
                                        .criteria(ScheduleBasedBackupCriteriaArgs.builder()
                                            .daysOfTheWeek("Sunday")
                                            .objectType("ScheduleBasedBackupCriteria")
                                            .scheduleTimes("2019-03-01T13:00:00Z")
                                            .build())
                                        .isDefault(false)
                                        .tagInfo(RetentionTagArgs.builder()
                                            .tagName("Weekly")
                                            .build())
                                        .taggingPriority(20)
                                        .build())
                                .build())
                            .build(),
                        AzureRetentionRuleArgs.builder()
                            .isDefault(true)
                            .lifecycles(SourceLifeCycleArgs.builder()
                                .deleteAfter(AbsoluteDeleteOptionArgs.builder()
                                    .duration("P1W")
                                    .objectType("AbsoluteDeleteOption")
                                    .build())
                                .sourceDataStore(DataStoreInfoBaseArgs.builder()
                                    .dataStoreType("VaultStore")
                                    .objectType("DataStoreInfoBase")
                                    .build())
                                .build())
                            .name("Default")
                            .objectType("AzureRetentionRule")
                            .build(),
                        AzureRetentionRuleArgs.builder()
                            .isDefault(false)
                            .lifecycles(SourceLifeCycleArgs.builder()
                                .deleteAfter(AbsoluteDeleteOptionArgs.builder()
                                    .duration("P12W")
                                    .objectType("AbsoluteDeleteOption")
                                    .build())
                                .sourceDataStore(DataStoreInfoBaseArgs.builder()
                                    .dataStoreType("VaultStore")
                                    .objectType("DataStoreInfoBase")
                                    .build())
                                .build())
                            .name("Weekly")
                            .objectType("AzureRetentionRule")
                            .build())
                    .build())
                .resourceGroupName("000pikumar")
                .vaultName("PrivatePreviewVault")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    backup_policy = azure_native.dataprotection.BackupPolicy("backupPolicy",
        backup_policy_name="OSSDBPolicy",
        properties=azure_native.dataprotection.BackupPolicyArgs(
            datasource_types=["OssDB"],
            object_type="BackupPolicy",
            policy_rules=[
                azure_native.dataprotection.AzureBackupRuleArgs(
                    backup_parameters=azure_native.dataprotection.AzureBackupParamsArgs(
                        backup_type="Full",
                        object_type="AzureBackupParams",
                    ),
                    data_store=azure_native.dataprotection.DataStoreInfoBaseArgs(
                        data_store_type=azure_native.dataprotection.DataStoreTypes.VAULT_STORE,
                        object_type="DataStoreInfoBase",
                    ),
                    name="BackupWeekly",
                    object_type="AzureBackupRule",
                    trigger=azure_native.dataprotection.ScheduleBasedTriggerContextArgs(
                        object_type="ScheduleBasedTriggerContext",
                        schedule=azure_native.dataprotection.BackupScheduleArgs(
                            repeating_time_intervals=["R/2019-11-20T08:00:00-08:00/P1W"],
                        ),
                        tagging_criteria=[
                            azure_native.dataprotection.TaggingCriteriaArgs(
                                is_default=True,
                                tag_info=azure_native.dataprotection.RetentionTagArgs(
                                    tag_name="Default",
                                ),
                                tagging_priority=99,
                            ),
                            azure_native.dataprotection.TaggingCriteriaArgs(
                                criteria=[azure_native.dataprotection.ScheduleBasedBackupCriteriaArgs(
                                    days_of_the_week=[azure_native.dataprotection.DayOfWeek.SUNDAY],
                                    object_type="ScheduleBasedBackupCriteria",
                                    schedule_times=["2019-03-01T13:00:00Z"],
                                )],
                                is_default=False,
                                tag_info=azure_native.dataprotection.RetentionTagArgs(
                                    tag_name="Weekly",
                                ),
                                tagging_priority=20,
                            ),
                        ],
                    ),
                ),
                azure_native.dataprotection.AzureRetentionRuleArgs(
                    is_default=True,
                    lifecycles=[azure_native.dataprotection.SourceLifeCycleArgs(
                        delete_after=azure_native.dataprotection.AbsoluteDeleteOptionArgs(
                            duration="P1W",
                            object_type="AbsoluteDeleteOption",
                        ),
                        source_data_store=azure_native.dataprotection.DataStoreInfoBaseArgs(
                            data_store_type=azure_native.dataprotection.DataStoreTypes.VAULT_STORE,
                            object_type="DataStoreInfoBase",
                        ),
                    )],
                    name="Default",
                    object_type="AzureRetentionRule",
                ),
                azure_native.dataprotection.AzureRetentionRuleArgs(
                    is_default=False,
                    lifecycles=[azure_native.dataprotection.SourceLifeCycleArgs(
                        delete_after=azure_native.dataprotection.AbsoluteDeleteOptionArgs(
                            duration="P12W",
                            object_type="AbsoluteDeleteOption",
                        ),
                        source_data_store=azure_native.dataprotection.DataStoreInfoBaseArgs(
                            data_store_type=azure_native.dataprotection.DataStoreTypes.VAULT_STORE,
                            object_type="DataStoreInfoBase",
                        ),
                    )],
                    name="Weekly",
                    object_type="AzureRetentionRule",
                ),
            ],
        ),
        resource_group_name="000pikumar",
        vault_name="PrivatePreviewVault")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const backupPolicy = new azure_native.dataprotection.BackupPolicy("backupPolicy", {
        backupPolicyName: "OSSDBPolicy",
        properties: {
            datasourceTypes: ["OssDB"],
            objectType: "BackupPolicy",
            policyRules: [
                {
                    backupParameters: {
                        backupType: "Full",
                        objectType: "AzureBackupParams",
                    },
                    dataStore: {
                        dataStoreType: azure_native.dataprotection.DataStoreTypes.VaultStore,
                        objectType: "DataStoreInfoBase",
                    },
                    name: "BackupWeekly",
                    objectType: "AzureBackupRule",
                    trigger: {
                        objectType: "ScheduleBasedTriggerContext",
                        schedule: {
                            repeatingTimeIntervals: ["R/2019-11-20T08:00:00-08:00/P1W"],
                        },
                        taggingCriteria: [
                            {
                                isDefault: true,
                                tagInfo: {
                                    tagName: "Default",
                                },
                                taggingPriority: 99,
                            },
                            {
                                criteria: [{
                                    daysOfTheWeek: [azure_native.dataprotection.DayOfWeek.Sunday],
                                    objectType: "ScheduleBasedBackupCriteria",
                                    scheduleTimes: ["2019-03-01T13:00:00Z"],
                                }],
                                isDefault: false,
                                tagInfo: {
                                    tagName: "Weekly",
                                },
                                taggingPriority: 20,
                            },
                        ],
                    },
                },
                {
                    isDefault: true,
                    lifecycles: [{
                        deleteAfter: {
                            duration: "P1W",
                            objectType: "AbsoluteDeleteOption",
                        },
                        sourceDataStore: {
                            dataStoreType: azure_native.dataprotection.DataStoreTypes.VaultStore,
                            objectType: "DataStoreInfoBase",
                        },
                    }],
                    name: "Default",
                    objectType: "AzureRetentionRule",
                },
                {
                    isDefault: false,
                    lifecycles: [{
                        deleteAfter: {
                            duration: "P12W",
                            objectType: "AbsoluteDeleteOption",
                        },
                        sourceDataStore: {
                            dataStoreType: azure_native.dataprotection.DataStoreTypes.VaultStore,
                            objectType: "DataStoreInfoBase",
                        },
                    }],
                    name: "Weekly",
                    objectType: "AzureRetentionRule",
                },
            ],
        },
        resourceGroupName: "000pikumar",
        vaultName: "PrivatePreviewVault",
    });
    
    resources:
      backupPolicy:
        type: azure-native:dataprotection:BackupPolicy
        properties:
          backupPolicyName: OSSDBPolicy
          properties:
            datasourceTypes:
              - OssDB
            objectType: BackupPolicy
            policyRules:
              - backupParameters:
                  backupType: Full
                  objectType: AzureBackupParams
                dataStore:
                  dataStoreType: VaultStore
                  objectType: DataStoreInfoBase
                name: BackupWeekly
                objectType: AzureBackupRule
                trigger:
                  objectType: ScheduleBasedTriggerContext
                  schedule:
                    repeatingTimeIntervals:
                      - R/2019-11-20T08:00:00-08:00/P1W
                  taggingCriteria:
                    - isDefault: true
                      tagInfo:
                        tagName: Default
                      taggingPriority: 99
                    - criteria:
                        - daysOfTheWeek:
                            - Sunday
                          objectType: ScheduleBasedBackupCriteria
                          scheduleTimes:
                            - 2019-03-01T13:00:00Z
                      isDefault: false
                      tagInfo:
                        tagName: Weekly
                      taggingPriority: 20
              - isDefault: true
                lifecycles:
                  - deleteAfter:
                      duration: P1W
                      objectType: AbsoluteDeleteOption
                    sourceDataStore:
                      dataStoreType: VaultStore
                      objectType: DataStoreInfoBase
                name: Default
                objectType: AzureRetentionRule
              - isDefault: false
                lifecycles:
                  - deleteAfter:
                      duration: P12W
                      objectType: AbsoluteDeleteOption
                    sourceDataStore:
                      dataStoreType: VaultStore
                      objectType: DataStoreInfoBase
                name: Weekly
                objectType: AzureRetentionRule
          resourceGroupName: 000pikumar
          vaultName: PrivatePreviewVault
    

    Create BackupPolicy Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new BackupPolicy(name: string, args: BackupPolicyArgs, opts?: CustomResourceOptions);
    @overload
    def BackupPolicy(resource_name: str,
                     args: BackupPolicyInitArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def BackupPolicy(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     resource_group_name: Optional[str] = None,
                     vault_name: Optional[str] = None,
                     backup_policy_name: Optional[str] = None,
                     properties: Optional[BackupPolicyArgs] = None)
    func NewBackupPolicy(ctx *Context, name string, args BackupPolicyArgs, opts ...ResourceOption) (*BackupPolicy, error)
    public BackupPolicy(string name, BackupPolicyArgs args, CustomResourceOptions? opts = null)
    public BackupPolicy(String name, BackupPolicyArgs args)
    public BackupPolicy(String name, BackupPolicyArgs args, CustomResourceOptions options)
    
    type: azure-native:dataprotection:BackupPolicy
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args BackupPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args BackupPolicyInitArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args BackupPolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args BackupPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args BackupPolicyArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var backupPolicyResource = new AzureNative.DataProtection.BackupPolicy("backupPolicyResource", new()
    {
        ResourceGroupName = "string",
        VaultName = "string",
        BackupPolicyName = "string",
        Properties = new AzureNative.DataProtection.Inputs.BackupPolicyArgs
        {
            DatasourceTypes = new[]
            {
                "string",
            },
            ObjectType = "BackupPolicy",
            PolicyRules = new[]
            {
                new AzureNative.DataProtection.Inputs.AzureBackupRuleArgs
                {
                    DataStore = new AzureNative.DataProtection.Inputs.DataStoreInfoBaseArgs
                    {
                        DataStoreType = "string",
                        ObjectType = "string",
                    },
                    Name = "string",
                    ObjectType = "AzureBackupRule",
                    Trigger = new AzureNative.DataProtection.Inputs.AdhocBasedTriggerContextArgs
                    {
                        ObjectType = "AdhocBasedTriggerContext",
                        TaggingCriteria = new AzureNative.DataProtection.Inputs.AdhocBasedTaggingCriteriaArgs
                        {
                            TagInfo = new AzureNative.DataProtection.Inputs.RetentionTagArgs
                            {
                                TagName = "string",
                            },
                        },
                    },
                    BackupParameters = new AzureNative.DataProtection.Inputs.AzureBackupParamsArgs
                    {
                        BackupType = "string",
                        ObjectType = "AzureBackupParams",
                    },
                },
            },
        },
    });
    
    example, err := dataprotection.NewBackupPolicy(ctx, "backupPolicyResource", &dataprotection.BackupPolicyArgs{
    ResourceGroupName: pulumi.String("string"),
    VaultName: pulumi.String("string"),
    BackupPolicyName: pulumi.String("string"),
    Properties: &dataprotection.BackupPolicyTypeArgs{
    DatasourceTypes: pulumi.StringArray{
    pulumi.String("string"),
    },
    ObjectType: pulumi.String("BackupPolicy"),
    PolicyRules: pulumi.Array{
    dataprotection.AzureBackupRule{
    DataStore: dataprotection.DataStoreInfoBase{
    DataStoreType: "string",
    ObjectType: "string",
    },
    Name: "string",
    ObjectType: "AzureBackupRule",
    Trigger: dataprotection.AdhocBasedTriggerContext{
    ObjectType: "AdhocBasedTriggerContext",
    TaggingCriteria: dataprotection.AdhocBasedTaggingCriteria{
    TagInfo: dataprotection.RetentionTag{
    TagName: "string",
    },
    },
    },
    BackupParameters: dataprotection.AzureBackupParams{
    BackupType: "string",
    ObjectType: "AzureBackupParams",
    },
    },
    },
    },
    })
    
    var backupPolicyResource = new BackupPolicy("backupPolicyResource", BackupPolicyArgs.builder()        
        .resourceGroupName("string")
        .vaultName("string")
        .backupPolicyName("string")
        .properties(BackupPolicyArgs.builder()
            .datasourceTypes("string")
            .objectType("BackupPolicy")
            .policyRules(AzureBackupRuleArgs.builder()
                .dataStore(DataStoreInfoBaseArgs.builder()
                    .dataStoreType("string")
                    .objectType("string")
                    .build())
                .name("string")
                .objectType("AzureBackupRule")
                .trigger(AdhocBasedTriggerContextArgs.builder()
                    .objectType("AdhocBasedTriggerContext")
                    .taggingCriteria(AdhocBasedTaggingCriteriaArgs.builder()
                        .tagInfo(RetentionTagArgs.builder()
                            .tagName("string")
                            .build())
                        .build())
                    .build())
                .backupParameters(AzureBackupParamsArgs.builder()
                    .backupType("string")
                    .objectType("AzureBackupParams")
                    .build())
                .build())
            .build())
        .build());
    
    backup_policy_resource = azure_native.dataprotection.BackupPolicy("backupPolicyResource",
        resource_group_name="string",
        vault_name="string",
        backup_policy_name="string",
        properties=azure_native.dataprotection.BackupPolicyArgs(
            datasource_types=["string"],
            object_type="BackupPolicy",
            policy_rules=[azure_native.dataprotection.AzureBackupRuleArgs(
                data_store=azure_native.dataprotection.DataStoreInfoBaseArgs(
                    data_store_type="string",
                    object_type="string",
                ),
                name="string",
                object_type="AzureBackupRule",
                trigger=azure_native.dataprotection.AdhocBasedTriggerContextArgs(
                    object_type="AdhocBasedTriggerContext",
                    tagging_criteria=azure_native.dataprotection.AdhocBasedTaggingCriteriaArgs(
                        tag_info=azure_native.dataprotection.RetentionTagArgs(
                            tag_name="string",
                        ),
                    ),
                ),
                backup_parameters=azure_native.dataprotection.AzureBackupParamsArgs(
                    backup_type="string",
                    object_type="AzureBackupParams",
                ),
            )],
        ))
    
    const backupPolicyResource = new azure_native.dataprotection.BackupPolicy("backupPolicyResource", {
        resourceGroupName: "string",
        vaultName: "string",
        backupPolicyName: "string",
        properties: {
            datasourceTypes: ["string"],
            objectType: "BackupPolicy",
            policyRules: [{
                dataStore: {
                    dataStoreType: "string",
                    objectType: "string",
                },
                name: "string",
                objectType: "AzureBackupRule",
                trigger: {
                    objectType: "AdhocBasedTriggerContext",
                    taggingCriteria: {
                        tagInfo: {
                            tagName: "string",
                        },
                    },
                },
                backupParameters: {
                    backupType: "string",
                    objectType: "AzureBackupParams",
                },
            }],
        },
    });
    
    type: azure-native:dataprotection:BackupPolicy
    properties:
        backupPolicyName: string
        properties:
            datasourceTypes:
                - string
            objectType: BackupPolicy
            policyRules:
                - backupParameters:
                    backupType: string
                    objectType: AzureBackupParams
                  dataStore:
                    dataStoreType: string
                    objectType: string
                  name: string
                  objectType: AzureBackupRule
                  trigger:
                    objectType: AdhocBasedTriggerContext
                    taggingCriteria:
                        tagInfo:
                            tagName: string
        resourceGroupName: string
        vaultName: string
    

    BackupPolicy Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The BackupPolicy resource accepts the following input properties:

    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    VaultName string
    The name of the backup vault.
    BackupPolicyName string
    Name of the policy
    Properties Pulumi.AzureNative.DataProtection.Inputs.BackupPolicy
    BaseBackupPolicyResource properties
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    VaultName string
    The name of the backup vault.
    BackupPolicyName string
    Name of the policy
    Properties BackupPolicyTypeArgs
    BaseBackupPolicyResource properties
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    vaultName String
    The name of the backup vault.
    backupPolicyName String
    Name of the policy
    properties BackupPolicy
    BaseBackupPolicyResource properties
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    vaultName string
    The name of the backup vault.
    backupPolicyName string
    Name of the policy
    properties BackupPolicy
    BaseBackupPolicyResource properties
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    vault_name str
    The name of the backup vault.
    backup_policy_name str
    Name of the policy
    properties BackupPolicyArgs
    BaseBackupPolicyResource properties
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    vaultName String
    The name of the backup vault.
    backupPolicyName String
    Name of the policy
    properties Property Map
    BaseBackupPolicyResource properties

    Outputs

    All input properties are implicitly available as output properties. Additionally, the BackupPolicy resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Resource name associated with the resource.
    SystemData Pulumi.AzureNative.DataProtection.Outputs.SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    Type string
    Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Resource name associated with the resource.
    SystemData SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    Type string
    Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Resource name associated with the resource.
    systemData SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    type String
    Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Resource name associated with the resource.
    systemData SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    type string
    Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Resource name associated with the resource.
    system_data SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    type str
    Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Resource name associated with the resource.
    systemData Property Map
    Metadata pertaining to creation and last modification of the resource.
    type String
    Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...

    Supporting Types

    AbsoluteDeleteOption, AbsoluteDeleteOptionArgs

    Duration string
    Duration of deletion after given timespan
    Duration string
    Duration of deletion after given timespan
    duration String
    Duration of deletion after given timespan
    duration string
    Duration of deletion after given timespan
    duration str
    Duration of deletion after given timespan
    duration String
    Duration of deletion after given timespan

    AbsoluteDeleteOptionResponse, AbsoluteDeleteOptionResponseArgs

    Duration string
    Duration of deletion after given timespan
    Duration string
    Duration of deletion after given timespan
    duration String
    Duration of deletion after given timespan
    duration string
    Duration of deletion after given timespan
    duration str
    Duration of deletion after given timespan
    duration String
    Duration of deletion after given timespan

    AbsoluteMarker, AbsoluteMarkerArgs

    AllBackup
    AllBackup
    FirstOfDay
    FirstOfDay
    FirstOfMonth
    FirstOfMonth
    FirstOfWeek
    FirstOfWeek
    FirstOfYear
    FirstOfYear
    AbsoluteMarkerAllBackup
    AllBackup
    AbsoluteMarkerFirstOfDay
    FirstOfDay
    AbsoluteMarkerFirstOfMonth
    FirstOfMonth
    AbsoluteMarkerFirstOfWeek
    FirstOfWeek
    AbsoluteMarkerFirstOfYear
    FirstOfYear
    AllBackup
    AllBackup
    FirstOfDay
    FirstOfDay
    FirstOfMonth
    FirstOfMonth
    FirstOfWeek
    FirstOfWeek
    FirstOfYear
    FirstOfYear
    AllBackup
    AllBackup
    FirstOfDay
    FirstOfDay
    FirstOfMonth
    FirstOfMonth
    FirstOfWeek
    FirstOfWeek
    FirstOfYear
    FirstOfYear
    ALL_BACKUP
    AllBackup
    FIRST_OF_DAY
    FirstOfDay
    FIRST_OF_MONTH
    FirstOfMonth
    FIRST_OF_WEEK
    FirstOfWeek
    FIRST_OF_YEAR
    FirstOfYear
    "AllBackup"
    AllBackup
    "FirstOfDay"
    FirstOfDay
    "FirstOfMonth"
    FirstOfMonth
    "FirstOfWeek"
    FirstOfWeek
    "FirstOfYear"
    FirstOfYear

    AdhocBasedTaggingCriteria, AdhocBasedTaggingCriteriaArgs

    TagInfo RetentionTag
    Retention tag information
    tagInfo RetentionTag
    Retention tag information
    tagInfo RetentionTag
    Retention tag information
    tag_info RetentionTag
    Retention tag information
    tagInfo Property Map
    Retention tag information

    AdhocBasedTaggingCriteriaResponse, AdhocBasedTaggingCriteriaResponseArgs

    TagInfo RetentionTagResponse
    Retention tag information
    tagInfo RetentionTagResponse
    Retention tag information
    tagInfo RetentionTagResponse
    Retention tag information
    tag_info RetentionTagResponse
    Retention tag information
    tagInfo Property Map
    Retention tag information

    AdhocBasedTriggerContext, AdhocBasedTriggerContextArgs

    TaggingCriteria Pulumi.AzureNative.DataProtection.Inputs.AdhocBasedTaggingCriteria
    Tagging Criteria containing retention tag for adhoc backup.
    TaggingCriteria AdhocBasedTaggingCriteria
    Tagging Criteria containing retention tag for adhoc backup.
    taggingCriteria AdhocBasedTaggingCriteria
    Tagging Criteria containing retention tag for adhoc backup.
    taggingCriteria AdhocBasedTaggingCriteria
    Tagging Criteria containing retention tag for adhoc backup.
    tagging_criteria AdhocBasedTaggingCriteria
    Tagging Criteria containing retention tag for adhoc backup.
    taggingCriteria Property Map
    Tagging Criteria containing retention tag for adhoc backup.

    AdhocBasedTriggerContextResponse, AdhocBasedTriggerContextResponseArgs

    TaggingCriteria Pulumi.AzureNative.DataProtection.Inputs.AdhocBasedTaggingCriteriaResponse
    Tagging Criteria containing retention tag for adhoc backup.
    TaggingCriteria AdhocBasedTaggingCriteriaResponse
    Tagging Criteria containing retention tag for adhoc backup.
    taggingCriteria AdhocBasedTaggingCriteriaResponse
    Tagging Criteria containing retention tag for adhoc backup.
    taggingCriteria AdhocBasedTaggingCriteriaResponse
    Tagging Criteria containing retention tag for adhoc backup.
    tagging_criteria AdhocBasedTaggingCriteriaResponse
    Tagging Criteria containing retention tag for adhoc backup.
    taggingCriteria Property Map
    Tagging Criteria containing retention tag for adhoc backup.

    AzureBackupParams, AzureBackupParamsArgs

    BackupType string
    BackupType ; Full/Incremental etc
    BackupType string
    BackupType ; Full/Incremental etc
    backupType String
    BackupType ; Full/Incremental etc
    backupType string
    BackupType ; Full/Incremental etc
    backup_type str
    BackupType ; Full/Incremental etc
    backupType String
    BackupType ; Full/Incremental etc

    AzureBackupParamsResponse, AzureBackupParamsResponseArgs

    BackupType string
    BackupType ; Full/Incremental etc
    BackupType string
    BackupType ; Full/Incremental etc
    backupType String
    BackupType ; Full/Incremental etc
    backupType string
    BackupType ; Full/Incremental etc
    backup_type str
    BackupType ; Full/Incremental etc
    backupType String
    BackupType ; Full/Incremental etc

    AzureBackupRule, AzureBackupRuleArgs

    dataStore Property Map
    DataStoreInfo base
    name String
    trigger Property Map | Property Map
    Trigger context
    backupParameters Property Map
    BackupParameters base

    AzureBackupRuleResponse, AzureBackupRuleResponseArgs

    dataStore Property Map
    DataStoreInfo base
    name String
    trigger Property Map | Property Map
    Trigger context
    backupParameters Property Map
    BackupParameters base

    AzureRetentionRule, AzureRetentionRuleArgs

    AzureRetentionRuleResponse, AzureRetentionRuleResponseArgs

    BackupPolicy, BackupPolicyArgs

    DatasourceTypes List<string>
    Type of datasource for the backup management
    PolicyRules List<Union<Pulumi.AzureNative.DataProtection.Inputs.AzureBackupRule, Pulumi.AzureNative.DataProtection.Inputs.AzureRetentionRule>>
    Policy rule dictionary that contains rules for each backuptype i.e Full/Incremental/Logs etc
    DatasourceTypes []string
    Type of datasource for the backup management
    PolicyRules []interface{}
    Policy rule dictionary that contains rules for each backuptype i.e Full/Incremental/Logs etc
    datasourceTypes List<String>
    Type of datasource for the backup management
    policyRules List<Either<AzureBackupRule,AzureRetentionRule>>
    Policy rule dictionary that contains rules for each backuptype i.e Full/Incremental/Logs etc
    datasourceTypes string[]
    Type of datasource for the backup management
    policyRules (AzureBackupRule | AzureRetentionRule)[]
    Policy rule dictionary that contains rules for each backuptype i.e Full/Incremental/Logs etc
    datasource_types Sequence[str]
    Type of datasource for the backup management
    policy_rules Sequence[Union[AzureBackupRule, AzureRetentionRule]]
    Policy rule dictionary that contains rules for each backuptype i.e Full/Incremental/Logs etc
    datasourceTypes List<String>
    Type of datasource for the backup management
    policyRules List<Property Map | Property Map>
    Policy rule dictionary that contains rules for each backuptype i.e Full/Incremental/Logs etc

    BackupPolicyResponse, BackupPolicyResponseArgs

    DatasourceTypes List<string>
    Type of datasource for the backup management
    PolicyRules List<Union<Pulumi.AzureNative.DataProtection.Inputs.AzureBackupRuleResponse, Pulumi.AzureNative.DataProtection.Inputs.AzureRetentionRuleResponse>>
    Policy rule dictionary that contains rules for each backuptype i.e Full/Incremental/Logs etc
    DatasourceTypes []string
    Type of datasource for the backup management
    PolicyRules []interface{}
    Policy rule dictionary that contains rules for each backuptype i.e Full/Incremental/Logs etc
    datasourceTypes List<String>
    Type of datasource for the backup management
    policyRules List<Either<AzureBackupRuleResponse,AzureRetentionRuleResponse>>
    Policy rule dictionary that contains rules for each backuptype i.e Full/Incremental/Logs etc
    datasourceTypes string[]
    Type of datasource for the backup management
    policyRules (AzureBackupRuleResponse | AzureRetentionRuleResponse)[]
    Policy rule dictionary that contains rules for each backuptype i.e Full/Incremental/Logs etc
    datasource_types Sequence[str]
    Type of datasource for the backup management
    policy_rules Sequence[Union[AzureBackupRuleResponse, AzureRetentionRuleResponse]]
    Policy rule dictionary that contains rules for each backuptype i.e Full/Incremental/Logs etc
    datasourceTypes List<String>
    Type of datasource for the backup management
    policyRules List<Property Map | Property Map>
    Policy rule dictionary that contains rules for each backuptype i.e Full/Incremental/Logs etc

    BackupSchedule, BackupScheduleArgs

    RepeatingTimeIntervals List<string>
    ISO 8601 repeating time interval format
    TimeZone string
    Time zone for a schedule. Example: Pacific Standard Time
    RepeatingTimeIntervals []string
    ISO 8601 repeating time interval format
    TimeZone string
    Time zone for a schedule. Example: Pacific Standard Time
    repeatingTimeIntervals List<String>
    ISO 8601 repeating time interval format
    timeZone String
    Time zone for a schedule. Example: Pacific Standard Time
    repeatingTimeIntervals string[]
    ISO 8601 repeating time interval format
    timeZone string
    Time zone for a schedule. Example: Pacific Standard Time
    repeating_time_intervals Sequence[str]
    ISO 8601 repeating time interval format
    time_zone str
    Time zone for a schedule. Example: Pacific Standard Time
    repeatingTimeIntervals List<String>
    ISO 8601 repeating time interval format
    timeZone String
    Time zone for a schedule. Example: Pacific Standard Time

    BackupScheduleResponse, BackupScheduleResponseArgs

    RepeatingTimeIntervals List<string>
    ISO 8601 repeating time interval format
    TimeZone string
    Time zone for a schedule. Example: Pacific Standard Time
    RepeatingTimeIntervals []string
    ISO 8601 repeating time interval format
    TimeZone string
    Time zone for a schedule. Example: Pacific Standard Time
    repeatingTimeIntervals List<String>
    ISO 8601 repeating time interval format
    timeZone String
    Time zone for a schedule. Example: Pacific Standard Time
    repeatingTimeIntervals string[]
    ISO 8601 repeating time interval format
    timeZone string
    Time zone for a schedule. Example: Pacific Standard Time
    repeating_time_intervals Sequence[str]
    ISO 8601 repeating time interval format
    time_zone str
    Time zone for a schedule. Example: Pacific Standard Time
    repeatingTimeIntervals List<String>
    ISO 8601 repeating time interval format
    timeZone String
    Time zone for a schedule. Example: Pacific Standard Time

    CopyOnExpiryOption, CopyOnExpiryOptionArgs

    CopyOnExpiryOptionResponse, CopyOnExpiryOptionResponseArgs

    CustomCopyOption, CustomCopyOptionArgs

    Duration string
    Data copied after given timespan
    Duration string
    Data copied after given timespan
    duration String
    Data copied after given timespan
    duration string
    Data copied after given timespan
    duration str
    Data copied after given timespan
    duration String
    Data copied after given timespan

    CustomCopyOptionResponse, CustomCopyOptionResponseArgs

    Duration string
    Data copied after given timespan
    Duration string
    Data copied after given timespan
    duration String
    Data copied after given timespan
    duration string
    Data copied after given timespan
    duration str
    Data copied after given timespan
    duration String
    Data copied after given timespan

    DataStoreInfoBase, DataStoreInfoBaseArgs

    DataStoreType string | Pulumi.AzureNative.DataProtection.DataStoreTypes
    type of datastore; Operational/Vault/Archive
    ObjectType string
    Type of Datasource object, used to initialize the right inherited type
    DataStoreType string | DataStoreTypes
    type of datastore; Operational/Vault/Archive
    ObjectType string
    Type of Datasource object, used to initialize the right inherited type
    dataStoreType String | DataStoreTypes
    type of datastore; Operational/Vault/Archive
    objectType String
    Type of Datasource object, used to initialize the right inherited type
    dataStoreType string | DataStoreTypes
    type of datastore; Operational/Vault/Archive
    objectType string
    Type of Datasource object, used to initialize the right inherited type
    data_store_type str | DataStoreTypes
    type of datastore; Operational/Vault/Archive
    object_type str
    Type of Datasource object, used to initialize the right inherited type
    dataStoreType String | "OperationalStore" | "VaultStore" | "ArchiveStore"
    type of datastore; Operational/Vault/Archive
    objectType String
    Type of Datasource object, used to initialize the right inherited type

    DataStoreInfoBaseResponse, DataStoreInfoBaseResponseArgs

    DataStoreType string
    type of datastore; Operational/Vault/Archive
    ObjectType string
    Type of Datasource object, used to initialize the right inherited type
    DataStoreType string
    type of datastore; Operational/Vault/Archive
    ObjectType string
    Type of Datasource object, used to initialize the right inherited type
    dataStoreType String
    type of datastore; Operational/Vault/Archive
    objectType String
    Type of Datasource object, used to initialize the right inherited type
    dataStoreType string
    type of datastore; Operational/Vault/Archive
    objectType string
    Type of Datasource object, used to initialize the right inherited type
    data_store_type str
    type of datastore; Operational/Vault/Archive
    object_type str
    Type of Datasource object, used to initialize the right inherited type
    dataStoreType String
    type of datastore; Operational/Vault/Archive
    objectType String
    Type of Datasource object, used to initialize the right inherited type

    DataStoreTypes, DataStoreTypesArgs

    OperationalStore
    OperationalStore
    VaultStore
    VaultStore
    ArchiveStore
    ArchiveStore
    DataStoreTypesOperationalStore
    OperationalStore
    DataStoreTypesVaultStore
    VaultStore
    DataStoreTypesArchiveStore
    ArchiveStore
    OperationalStore
    OperationalStore
    VaultStore
    VaultStore
    ArchiveStore
    ArchiveStore
    OperationalStore
    OperationalStore
    VaultStore
    VaultStore
    ArchiveStore
    ArchiveStore
    OPERATIONAL_STORE
    OperationalStore
    VAULT_STORE
    VaultStore
    ARCHIVE_STORE
    ArchiveStore
    "OperationalStore"
    OperationalStore
    "VaultStore"
    VaultStore
    "ArchiveStore"
    ArchiveStore

    Day, DayArgs

    Date int
    Date of the month
    IsLast bool
    Whether Date is last date of month
    Date int
    Date of the month
    IsLast bool
    Whether Date is last date of month
    date Integer
    Date of the month
    isLast Boolean
    Whether Date is last date of month
    date number
    Date of the month
    isLast boolean
    Whether Date is last date of month
    date int
    Date of the month
    is_last bool
    Whether Date is last date of month
    date Number
    Date of the month
    isLast Boolean
    Whether Date is last date of month

    DayOfWeek, DayOfWeekArgs

    Friday
    Friday
    Monday
    Monday
    Saturday
    Saturday
    Sunday
    Sunday
    Thursday
    Thursday
    Tuesday
    Tuesday
    Wednesday
    Wednesday
    DayOfWeekFriday
    Friday
    DayOfWeekMonday
    Monday
    DayOfWeekSaturday
    Saturday
    DayOfWeekSunday
    Sunday
    DayOfWeekThursday
    Thursday
    DayOfWeekTuesday
    Tuesday
    DayOfWeekWednesday
    Wednesday
    Friday
    Friday
    Monday
    Monday
    Saturday
    Saturday
    Sunday
    Sunday
    Thursday
    Thursday
    Tuesday
    Tuesday
    Wednesday
    Wednesday
    Friday
    Friday
    Monday
    Monday
    Saturday
    Saturday
    Sunday
    Sunday
    Thursday
    Thursday
    Tuesday
    Tuesday
    Wednesday
    Wednesday
    FRIDAY
    Friday
    MONDAY
    Monday
    SATURDAY
    Saturday
    SUNDAY
    Sunday
    THURSDAY
    Thursday
    TUESDAY
    Tuesday
    WEDNESDAY
    Wednesday
    "Friday"
    Friday
    "Monday"
    Monday
    "Saturday"
    Saturday
    "Sunday"
    Sunday
    "Thursday"
    Thursday
    "Tuesday"
    Tuesday
    "Wednesday"
    Wednesday

    DayResponse, DayResponseArgs

    Date int
    Date of the month
    IsLast bool
    Whether Date is last date of month
    Date int
    Date of the month
    IsLast bool
    Whether Date is last date of month
    date Integer
    Date of the month
    isLast Boolean
    Whether Date is last date of month
    date number
    Date of the month
    isLast boolean
    Whether Date is last date of month
    date int
    Date of the month
    is_last bool
    Whether Date is last date of month
    date Number
    Date of the month
    isLast Boolean
    Whether Date is last date of month

    ImmediateCopyOption, ImmediateCopyOptionArgs

    ImmediateCopyOptionResponse, ImmediateCopyOptionResponseArgs

    Month, MonthArgs

    April
    April
    August
    August
    December
    December
    February
    February
    January
    January
    July
    July
    June
    June
    March
    March
    May
    May
    November
    November
    October
    October
    September
    September
    MonthApril
    April
    MonthAugust
    August
    MonthDecember
    December
    MonthFebruary
    February
    MonthJanuary
    January
    MonthJuly
    July
    MonthJune
    June
    MonthMarch
    March
    MonthMay
    May
    MonthNovember
    November
    MonthOctober
    October
    MonthSeptember
    September
    April
    April
    August
    August
    December
    December
    February
    February
    January
    January
    July
    July
    June
    June
    March
    March
    May
    May
    November
    November
    October
    October
    September
    September
    April
    April
    August
    August
    December
    December
    February
    February
    January
    January
    July
    July
    June
    June
    March
    March
    May
    May
    November
    November
    October
    October
    September
    September
    APRIL
    April
    AUGUST
    August
    DECEMBER
    December
    FEBRUARY
    February
    JANUARY
    January
    JULY
    July
    JUNE
    June
    MARCH
    March
    MAY
    May
    NOVEMBER
    November
    OCTOBER
    October
    SEPTEMBER
    September
    "April"
    April
    "August"
    August
    "December"
    December
    "February"
    February
    "January"
    January
    "July"
    July
    "June"
    June
    "March"
    March
    "May"
    May
    "November"
    November
    "October"
    October
    "September"
    September

    RetentionTag, RetentionTagArgs

    TagName string
    Retention Tag Name to relate it to retention rule.
    TagName string
    Retention Tag Name to relate it to retention rule.
    tagName String
    Retention Tag Name to relate it to retention rule.
    tagName string
    Retention Tag Name to relate it to retention rule.
    tag_name str
    Retention Tag Name to relate it to retention rule.
    tagName String
    Retention Tag Name to relate it to retention rule.

    RetentionTagResponse, RetentionTagResponseArgs

    ETag string
    Retention Tag version.
    Id string
    Retention Tag version.
    TagName string
    Retention Tag Name to relate it to retention rule.
    ETag string
    Retention Tag version.
    Id string
    Retention Tag version.
    TagName string
    Retention Tag Name to relate it to retention rule.
    eTag String
    Retention Tag version.
    id String
    Retention Tag version.
    tagName String
    Retention Tag Name to relate it to retention rule.
    eTag string
    Retention Tag version.
    id string
    Retention Tag version.
    tagName string
    Retention Tag Name to relate it to retention rule.
    e_tag str
    Retention Tag version.
    id str
    Retention Tag version.
    tag_name str
    Retention Tag Name to relate it to retention rule.
    eTag String
    Retention Tag version.
    id String
    Retention Tag version.
    tagName String
    Retention Tag Name to relate it to retention rule.

    ScheduleBasedBackupCriteria, ScheduleBasedBackupCriteriaArgs

    AbsoluteCriteria List<Union<string, Pulumi.AzureNative.DataProtection.AbsoluteMarker>>
    it contains absolute values like "AllBackup" / "FirstOfDay" / "FirstOfWeek" / "FirstOfMonth" and should be part of AbsoluteMarker enum
    DaysOfMonth List<Pulumi.AzureNative.DataProtection.Inputs.Day>
    This is day of the month from 1 to 28 other wise last of month
    DaysOfTheWeek List<Union<string, Pulumi.AzureNative.DataProtection.DayOfWeek>>
    It should be Sunday/Monday/T..../Saturday
    MonthsOfYear List<Union<string, Pulumi.AzureNative.DataProtection.Month>>
    It should be January/February/....../December
    ScheduleTimes List<string>
    List of schedule times for backup
    WeeksOfTheMonth List<Union<string, Pulumi.AzureNative.DataProtection.WeekNumber>>
    It should be First/Second/Third/Fourth/Last
    AbsoluteCriteria []string
    it contains absolute values like "AllBackup" / "FirstOfDay" / "FirstOfWeek" / "FirstOfMonth" and should be part of AbsoluteMarker enum
    DaysOfMonth []Day
    This is day of the month from 1 to 28 other wise last of month
    DaysOfTheWeek []string
    It should be Sunday/Monday/T..../Saturday
    MonthsOfYear []string
    It should be January/February/....../December
    ScheduleTimes []string
    List of schedule times for backup
    WeeksOfTheMonth []string
    It should be First/Second/Third/Fourth/Last
    absoluteCriteria List<Either<String,AbsoluteMarker>>
    it contains absolute values like "AllBackup" / "FirstOfDay" / "FirstOfWeek" / "FirstOfMonth" and should be part of AbsoluteMarker enum
    daysOfMonth List<Day>
    This is day of the month from 1 to 28 other wise last of month
    daysOfTheWeek List<Either<String,DayOfWeek>>
    It should be Sunday/Monday/T..../Saturday
    monthsOfYear List<Either<String,Month>>
    It should be January/February/....../December
    scheduleTimes List<String>
    List of schedule times for backup
    weeksOfTheMonth List<Either<String,WeekNumber>>
    It should be First/Second/Third/Fourth/Last
    absoluteCriteria (string | AbsoluteMarker)[]
    it contains absolute values like "AllBackup" / "FirstOfDay" / "FirstOfWeek" / "FirstOfMonth" and should be part of AbsoluteMarker enum
    daysOfMonth Day[]
    This is day of the month from 1 to 28 other wise last of month
    daysOfTheWeek (string | DayOfWeek)[]
    It should be Sunday/Monday/T..../Saturday
    monthsOfYear (string | Month)[]
    It should be January/February/....../December
    scheduleTimes string[]
    List of schedule times for backup
    weeksOfTheMonth (string | WeekNumber)[]
    It should be First/Second/Third/Fourth/Last
    absolute_criteria Sequence[Union[str, AbsoluteMarker]]
    it contains absolute values like "AllBackup" / "FirstOfDay" / "FirstOfWeek" / "FirstOfMonth" and should be part of AbsoluteMarker enum
    days_of_month Sequence[Day]
    This is day of the month from 1 to 28 other wise last of month
    days_of_the_week Sequence[Union[str, DayOfWeek]]
    It should be Sunday/Monday/T..../Saturday
    months_of_year Sequence[Union[str, Month]]
    It should be January/February/....../December
    schedule_times Sequence[str]
    List of schedule times for backup
    weeks_of_the_month Sequence[Union[str, WeekNumber]]
    It should be First/Second/Third/Fourth/Last
    absoluteCriteria List<String | "AllBackup" | "FirstOfDay" | "FirstOfMonth" | "FirstOfWeek" | "FirstOfYear">
    it contains absolute values like "AllBackup" / "FirstOfDay" / "FirstOfWeek" / "FirstOfMonth" and should be part of AbsoluteMarker enum
    daysOfMonth List<Property Map>
    This is day of the month from 1 to 28 other wise last of month
    daysOfTheWeek List<String | "Friday" | "Monday" | "Saturday" | "Sunday" | "Thursday" | "Tuesday" | "Wednesday">
    It should be Sunday/Monday/T..../Saturday
    monthsOfYear List<String | "April" | "August" | "December" | "February" | "January" | "July" | "June" | "March" | "May" | "November" | "October" | "September">
    It should be January/February/....../December
    scheduleTimes List<String>
    List of schedule times for backup
    weeksOfTheMonth List<String | "First" | "Fourth" | "Last" | "Second" | "Third">
    It should be First/Second/Third/Fourth/Last

    ScheduleBasedBackupCriteriaResponse, ScheduleBasedBackupCriteriaResponseArgs

    AbsoluteCriteria List<string>
    it contains absolute values like "AllBackup" / "FirstOfDay" / "FirstOfWeek" / "FirstOfMonth" and should be part of AbsoluteMarker enum
    DaysOfMonth List<Pulumi.AzureNative.DataProtection.Inputs.DayResponse>
    This is day of the month from 1 to 28 other wise last of month
    DaysOfTheWeek List<string>
    It should be Sunday/Monday/T..../Saturday
    MonthsOfYear List<string>
    It should be January/February/....../December
    ScheduleTimes List<string>
    List of schedule times for backup
    WeeksOfTheMonth List<string>
    It should be First/Second/Third/Fourth/Last
    AbsoluteCriteria []string
    it contains absolute values like "AllBackup" / "FirstOfDay" / "FirstOfWeek" / "FirstOfMonth" and should be part of AbsoluteMarker enum
    DaysOfMonth []DayResponse
    This is day of the month from 1 to 28 other wise last of month
    DaysOfTheWeek []string
    It should be Sunday/Monday/T..../Saturday
    MonthsOfYear []string
    It should be January/February/....../December
    ScheduleTimes []string
    List of schedule times for backup
    WeeksOfTheMonth []string
    It should be First/Second/Third/Fourth/Last
    absoluteCriteria List<String>
    it contains absolute values like "AllBackup" / "FirstOfDay" / "FirstOfWeek" / "FirstOfMonth" and should be part of AbsoluteMarker enum
    daysOfMonth List<DayResponse>
    This is day of the month from 1 to 28 other wise last of month
    daysOfTheWeek List<String>
    It should be Sunday/Monday/T..../Saturday
    monthsOfYear List<String>
    It should be January/February/....../December
    scheduleTimes List<String>
    List of schedule times for backup
    weeksOfTheMonth List<String>
    It should be First/Second/Third/Fourth/Last
    absoluteCriteria string[]
    it contains absolute values like "AllBackup" / "FirstOfDay" / "FirstOfWeek" / "FirstOfMonth" and should be part of AbsoluteMarker enum
    daysOfMonth DayResponse[]
    This is day of the month from 1 to 28 other wise last of month
    daysOfTheWeek string[]
    It should be Sunday/Monday/T..../Saturday
    monthsOfYear string[]
    It should be January/February/....../December
    scheduleTimes string[]
    List of schedule times for backup
    weeksOfTheMonth string[]
    It should be First/Second/Third/Fourth/Last
    absolute_criteria Sequence[str]
    it contains absolute values like "AllBackup" / "FirstOfDay" / "FirstOfWeek" / "FirstOfMonth" and should be part of AbsoluteMarker enum
    days_of_month Sequence[DayResponse]
    This is day of the month from 1 to 28 other wise last of month
    days_of_the_week Sequence[str]
    It should be Sunday/Monday/T..../Saturday
    months_of_year Sequence[str]
    It should be January/February/....../December
    schedule_times Sequence[str]
    List of schedule times for backup
    weeks_of_the_month Sequence[str]
    It should be First/Second/Third/Fourth/Last
    absoluteCriteria List<String>
    it contains absolute values like "AllBackup" / "FirstOfDay" / "FirstOfWeek" / "FirstOfMonth" and should be part of AbsoluteMarker enum
    daysOfMonth List<Property Map>
    This is day of the month from 1 to 28 other wise last of month
    daysOfTheWeek List<String>
    It should be Sunday/Monday/T..../Saturday
    monthsOfYear List<String>
    It should be January/February/....../December
    scheduleTimes List<String>
    List of schedule times for backup
    weeksOfTheMonth List<String>
    It should be First/Second/Third/Fourth/Last

    ScheduleBasedTriggerContext, ScheduleBasedTriggerContextArgs

    Schedule BackupSchedule
    Schedule for this backup
    TaggingCriteria []TaggingCriteria
    List of tags that can be applicable for given schedule.
    schedule BackupSchedule
    Schedule for this backup
    taggingCriteria List<TaggingCriteria>
    List of tags that can be applicable for given schedule.
    schedule BackupSchedule
    Schedule for this backup
    taggingCriteria TaggingCriteria[]
    List of tags that can be applicable for given schedule.
    schedule BackupSchedule
    Schedule for this backup
    tagging_criteria Sequence[TaggingCriteria]
    List of tags that can be applicable for given schedule.
    schedule Property Map
    Schedule for this backup
    taggingCriteria List<Property Map>
    List of tags that can be applicable for given schedule.

    ScheduleBasedTriggerContextResponse, ScheduleBasedTriggerContextResponseArgs

    Schedule BackupScheduleResponse
    Schedule for this backup
    TaggingCriteria []TaggingCriteriaResponse
    List of tags that can be applicable for given schedule.
    schedule BackupScheduleResponse
    Schedule for this backup
    taggingCriteria List<TaggingCriteriaResponse>
    List of tags that can be applicable for given schedule.
    schedule BackupScheduleResponse
    Schedule for this backup
    taggingCriteria TaggingCriteriaResponse[]
    List of tags that can be applicable for given schedule.
    schedule BackupScheduleResponse
    Schedule for this backup
    tagging_criteria Sequence[TaggingCriteriaResponse]
    List of tags that can be applicable for given schedule.
    schedule Property Map
    Schedule for this backup
    taggingCriteria List<Property Map>
    List of tags that can be applicable for given schedule.

    SourceLifeCycle, SourceLifeCycleArgs

    SourceLifeCycleResponse, SourceLifeCycleResponseArgs

    SystemDataResponse, SystemDataResponseArgs

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    The type of identity that last modified the resource.
    created_at str
    The timestamp of resource creation (UTC).
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.

    TaggingCriteria, TaggingCriteriaArgs

    IsDefault bool
    Specifies if tag is default.
    TagInfo Pulumi.AzureNative.DataProtection.Inputs.RetentionTag
    Retention tag information
    TaggingPriority double
    Retention Tag priority.
    Criteria List<Pulumi.AzureNative.DataProtection.Inputs.ScheduleBasedBackupCriteria>
    Criteria which decides whether the tag can be applied to a triggered backup.
    IsDefault bool
    Specifies if tag is default.
    TagInfo RetentionTag
    Retention tag information
    TaggingPriority float64
    Retention Tag priority.
    Criteria []ScheduleBasedBackupCriteria
    Criteria which decides whether the tag can be applied to a triggered backup.
    isDefault Boolean
    Specifies if tag is default.
    tagInfo RetentionTag
    Retention tag information
    taggingPriority Double
    Retention Tag priority.
    criteria List<ScheduleBasedBackupCriteria>
    Criteria which decides whether the tag can be applied to a triggered backup.
    isDefault boolean
    Specifies if tag is default.
    tagInfo RetentionTag
    Retention tag information
    taggingPriority number
    Retention Tag priority.
    criteria ScheduleBasedBackupCriteria[]
    Criteria which decides whether the tag can be applied to a triggered backup.
    is_default bool
    Specifies if tag is default.
    tag_info RetentionTag
    Retention tag information
    tagging_priority float
    Retention Tag priority.
    criteria Sequence[ScheduleBasedBackupCriteria]
    Criteria which decides whether the tag can be applied to a triggered backup.
    isDefault Boolean
    Specifies if tag is default.
    tagInfo Property Map
    Retention tag information
    taggingPriority Number
    Retention Tag priority.
    criteria List<Property Map>
    Criteria which decides whether the tag can be applied to a triggered backup.

    TaggingCriteriaResponse, TaggingCriteriaResponseArgs

    IsDefault bool
    Specifies if tag is default.
    TagInfo Pulumi.AzureNative.DataProtection.Inputs.RetentionTagResponse
    Retention tag information
    TaggingPriority double
    Retention Tag priority.
    Criteria List<Pulumi.AzureNative.DataProtection.Inputs.ScheduleBasedBackupCriteriaResponse>
    Criteria which decides whether the tag can be applied to a triggered backup.
    IsDefault bool
    Specifies if tag is default.
    TagInfo RetentionTagResponse
    Retention tag information
    TaggingPriority float64
    Retention Tag priority.
    Criteria []ScheduleBasedBackupCriteriaResponse
    Criteria which decides whether the tag can be applied to a triggered backup.
    isDefault Boolean
    Specifies if tag is default.
    tagInfo RetentionTagResponse
    Retention tag information
    taggingPriority Double
    Retention Tag priority.
    criteria List<ScheduleBasedBackupCriteriaResponse>
    Criteria which decides whether the tag can be applied to a triggered backup.
    isDefault boolean
    Specifies if tag is default.
    tagInfo RetentionTagResponse
    Retention tag information
    taggingPriority number
    Retention Tag priority.
    criteria ScheduleBasedBackupCriteriaResponse[]
    Criteria which decides whether the tag can be applied to a triggered backup.
    is_default bool
    Specifies if tag is default.
    tag_info RetentionTagResponse
    Retention tag information
    tagging_priority float
    Retention Tag priority.
    criteria Sequence[ScheduleBasedBackupCriteriaResponse]
    Criteria which decides whether the tag can be applied to a triggered backup.
    isDefault Boolean
    Specifies if tag is default.
    tagInfo Property Map
    Retention tag information
    taggingPriority Number
    Retention Tag priority.
    criteria List<Property Map>
    Criteria which decides whether the tag can be applied to a triggered backup.

    TargetCopySetting, TargetCopySettingArgs

    CopyAfter CopyOnExpiryOption | CustomCopyOption | ImmediateCopyOption
    It can be CustomCopyOption or ImmediateCopyOption.
    DataStore DataStoreInfoBase
    Info of target datastore
    copyAfter CopyOnExpiryOption | CustomCopyOption | ImmediateCopyOption
    It can be CustomCopyOption or ImmediateCopyOption.
    dataStore DataStoreInfoBase
    Info of target datastore
    copyAfter CopyOnExpiryOption | CustomCopyOption | ImmediateCopyOption
    It can be CustomCopyOption or ImmediateCopyOption.
    dataStore DataStoreInfoBase
    Info of target datastore
    copy_after CopyOnExpiryOption | CustomCopyOption | ImmediateCopyOption
    It can be CustomCopyOption or ImmediateCopyOption.
    data_store DataStoreInfoBase
    Info of target datastore
    copyAfter Property Map | Property Map | Property Map
    It can be CustomCopyOption or ImmediateCopyOption.
    dataStore Property Map
    Info of target datastore

    TargetCopySettingResponse, TargetCopySettingResponseArgs

    CopyAfter CopyOnExpiryOptionResponse | CustomCopyOptionResponse | ImmediateCopyOptionResponse
    It can be CustomCopyOption or ImmediateCopyOption.
    DataStore DataStoreInfoBaseResponse
    Info of target datastore
    copyAfter CopyOnExpiryOptionResponse | CustomCopyOptionResponse | ImmediateCopyOptionResponse
    It can be CustomCopyOption or ImmediateCopyOption.
    dataStore DataStoreInfoBaseResponse
    Info of target datastore
    copyAfter CopyOnExpiryOptionResponse | CustomCopyOptionResponse | ImmediateCopyOptionResponse
    It can be CustomCopyOption or ImmediateCopyOption.
    dataStore DataStoreInfoBaseResponse
    Info of target datastore
    copy_after CopyOnExpiryOptionResponse | CustomCopyOptionResponse | ImmediateCopyOptionResponse
    It can be CustomCopyOption or ImmediateCopyOption.
    data_store DataStoreInfoBaseResponse
    Info of target datastore
    copyAfter Property Map | Property Map | Property Map
    It can be CustomCopyOption or ImmediateCopyOption.
    dataStore Property Map
    Info of target datastore

    WeekNumber, WeekNumberArgs

    First
    First
    Fourth
    Fourth
    Last
    Last
    Second
    Second
    Third
    Third
    WeekNumberFirst
    First
    WeekNumberFourth
    Fourth
    WeekNumberLast
    Last
    WeekNumberSecond
    Second
    WeekNumberThird
    Third
    First
    First
    Fourth
    Fourth
    Last
    Last
    Second
    Second
    Third
    Third
    First
    First
    Fourth
    Fourth
    Last
    Last
    Second
    Second
    Third
    Third
    FIRST
    First
    FOURTH
    Fourth
    LAST
    Last
    SECOND
    Second
    THIRD
    Third
    "First"
    First
    "Fourth"
    Fourth
    "Last"
    Last
    "Second"
    Second
    "Third"
    Third

    Import

    An existing resource can be imported using its type token, name, and identifier, e.g.

    $ pulumi import azure-native:dataprotection:BackupPolicy OSSDBPolicy /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupPolicies/{backupPolicyName} 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.37.0 published on Monday, Apr 15, 2024 by Pulumi