1. Packages
  2. Mongodbatlas Provider
  3. API Docs
  4. getBackupCompliancePolicy
MongoDB Atlas v3.20.4 published on Wednesday, Oct 30, 2024 by Pulumi

mongodbatlas.getBackupCompliancePolicy

Explore with Pulumi AI

mongodbatlas logo
MongoDB Atlas v3.20.4 published on Wednesday, Oct 30, 2024 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as mongodbatlas from "@pulumi/mongodbatlas";
    
    const myCluster = new mongodbatlas.AdvancedCluster("my_cluster", {
        projectId: "<PROJECT-ID>",
        name: "clusterTest",
        clusterType: "REPLICASET",
        backupEnabled: true,
        replicationSpecs: [{
            regionConfigs: [{
                priority: 7,
                providerName: "AWS",
                regionName: "EU_CENTRAL_1",
                electableSpecs: {
                    instanceSize: "M10",
                    nodeCount: 3,
                },
            }],
        }],
    });
    const testCloudBackupSchedule = new mongodbatlas.CloudBackupSchedule("test", {
        projectId: myCluster.projectId,
        clusterName: myCluster.name,
        referenceHourOfDay: 3,
        referenceMinuteOfHour: 45,
        restoreWindowDays: 4,
        policyItemHourly: {
            frequencyInterval: 1,
            retentionUnit: "days",
            retentionValue: 1,
        },
        policyItemDaily: {
            frequencyInterval: 1,
            retentionUnit: "days",
            retentionValue: 2,
        },
        policyItemWeeklies: [{
            frequencyInterval: 4,
            retentionUnit: "weeks",
            retentionValue: 3,
        }],
        policyItemMonthlies: [{
            frequencyInterval: 5,
            retentionUnit: "months",
            retentionValue: 4,
        }],
        policyItemYearlies: [{
            frequencyInterval: 1,
            retentionUnit: "years",
            retentionValue: 1,
        }],
    });
    const test = mongodbatlas.getCloudBackupScheduleOutput({
        projectId: testCloudBackupSchedule.projectId,
        clusterName: testCloudBackupSchedule.clusterName,
    });
    const backupPolicy = mongodbatlas.getBackupCompliancePolicyOutput({
        projectId: testCloudBackupSchedule.id,
    });
    const backupPolicyBackupCompliancePolicy = new mongodbatlas.BackupCompliancePolicy("backup_policy", {
        projectId: "<PROJECT-ID>",
        authorizedEmail: "user@email.com",
        authorizedUserFirstName: "First",
        authorizedUserLastName: "Last",
        copyProtectionEnabled: false,
        pitEnabled: false,
        encryptionAtRestEnabled: false,
        restoreWindowDays: 7,
        onDemandPolicyItem: {
            frequencyInterval: 0,
            retentionUnit: "days",
            retentionValue: 3,
        },
        policyItemHourly: {
            frequencyInterval: 6,
            retentionUnit: "days",
            retentionValue: 7,
        },
        policyItemDaily: {
            frequencyInterval: 0,
            retentionUnit: "days",
            retentionValue: 7,
        },
        policyItemWeeklies: [{
            frequencyInterval: 0,
            retentionUnit: "weeks",
            retentionValue: 4,
        }],
        policyItemMonthlies: [{
            frequencyInterval: 0,
            retentionUnit: "months",
            retentionValue: 12,
        }],
        policyItemYearlies: [{
            frequencyInterval: 1,
            retentionUnit: "years",
            retentionValue: 1,
        }],
    });
    
    import pulumi
    import pulumi_mongodbatlas as mongodbatlas
    
    my_cluster = mongodbatlas.AdvancedCluster("my_cluster",
        project_id="<PROJECT-ID>",
        name="clusterTest",
        cluster_type="REPLICASET",
        backup_enabled=True,
        replication_specs=[{
            "region_configs": [{
                "priority": 7,
                "provider_name": "AWS",
                "region_name": "EU_CENTRAL_1",
                "electable_specs": {
                    "instance_size": "M10",
                    "node_count": 3,
                },
            }],
        }])
    test_cloud_backup_schedule = mongodbatlas.CloudBackupSchedule("test",
        project_id=my_cluster.project_id,
        cluster_name=my_cluster.name,
        reference_hour_of_day=3,
        reference_minute_of_hour=45,
        restore_window_days=4,
        policy_item_hourly={
            "frequency_interval": 1,
            "retention_unit": "days",
            "retention_value": 1,
        },
        policy_item_daily={
            "frequency_interval": 1,
            "retention_unit": "days",
            "retention_value": 2,
        },
        policy_item_weeklies=[{
            "frequency_interval": 4,
            "retention_unit": "weeks",
            "retention_value": 3,
        }],
        policy_item_monthlies=[{
            "frequency_interval": 5,
            "retention_unit": "months",
            "retention_value": 4,
        }],
        policy_item_yearlies=[{
            "frequency_interval": 1,
            "retention_unit": "years",
            "retention_value": 1,
        }])
    test = mongodbatlas.get_cloud_backup_schedule_output(project_id=test_cloud_backup_schedule.project_id,
        cluster_name=test_cloud_backup_schedule.cluster_name)
    backup_policy = mongodbatlas.get_backup_compliance_policy_output(project_id=test_cloud_backup_schedule.id)
    backup_policy_backup_compliance_policy = mongodbatlas.BackupCompliancePolicy("backup_policy",
        project_id="<PROJECT-ID>",
        authorized_email="user@email.com",
        authorized_user_first_name="First",
        authorized_user_last_name="Last",
        copy_protection_enabled=False,
        pit_enabled=False,
        encryption_at_rest_enabled=False,
        restore_window_days=7,
        on_demand_policy_item={
            "frequency_interval": 0,
            "retention_unit": "days",
            "retention_value": 3,
        },
        policy_item_hourly={
            "frequency_interval": 6,
            "retention_unit": "days",
            "retention_value": 7,
        },
        policy_item_daily={
            "frequency_interval": 0,
            "retention_unit": "days",
            "retention_value": 7,
        },
        policy_item_weeklies=[{
            "frequency_interval": 0,
            "retention_unit": "weeks",
            "retention_value": 4,
        }],
        policy_item_monthlies=[{
            "frequency_interval": 0,
            "retention_unit": "months",
            "retention_value": 12,
        }],
        policy_item_yearlies=[{
            "frequency_interval": 1,
            "retention_unit": "years",
            "retention_value": 1,
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-mongodbatlas/sdk/v3/go/mongodbatlas"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		myCluster, err := mongodbatlas.NewAdvancedCluster(ctx, "my_cluster", &mongodbatlas.AdvancedClusterArgs{
    			ProjectId:     pulumi.String("<PROJECT-ID>"),
    			Name:          pulumi.String("clusterTest"),
    			ClusterType:   pulumi.String("REPLICASET"),
    			BackupEnabled: pulumi.Bool(true),
    			ReplicationSpecs: mongodbatlas.AdvancedClusterReplicationSpecArray{
    				&mongodbatlas.AdvancedClusterReplicationSpecArgs{
    					RegionConfigs: mongodbatlas.AdvancedClusterReplicationSpecRegionConfigArray{
    						&mongodbatlas.AdvancedClusterReplicationSpecRegionConfigArgs{
    							Priority:     pulumi.Int(7),
    							ProviderName: pulumi.String("AWS"),
    							RegionName:   pulumi.String("EU_CENTRAL_1"),
    							ElectableSpecs: &mongodbatlas.AdvancedClusterReplicationSpecRegionConfigElectableSpecsArgs{
    								InstanceSize: pulumi.String("M10"),
    								NodeCount:    pulumi.Int(3),
    							},
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		testCloudBackupSchedule, err := mongodbatlas.NewCloudBackupSchedule(ctx, "test", &mongodbatlas.CloudBackupScheduleArgs{
    			ProjectId:             myCluster.ProjectId,
    			ClusterName:           myCluster.Name,
    			ReferenceHourOfDay:    pulumi.Int(3),
    			ReferenceMinuteOfHour: pulumi.Int(45),
    			RestoreWindowDays:     pulumi.Int(4),
    			PolicyItemHourly: &mongodbatlas.CloudBackupSchedulePolicyItemHourlyArgs{
    				FrequencyInterval: pulumi.Int(1),
    				RetentionUnit:     pulumi.String("days"),
    				RetentionValue:    pulumi.Int(1),
    			},
    			PolicyItemDaily: &mongodbatlas.CloudBackupSchedulePolicyItemDailyArgs{
    				FrequencyInterval: pulumi.Int(1),
    				RetentionUnit:     pulumi.String("days"),
    				RetentionValue:    pulumi.Int(2),
    			},
    			PolicyItemWeeklies: mongodbatlas.CloudBackupSchedulePolicyItemWeeklyArray{
    				&mongodbatlas.CloudBackupSchedulePolicyItemWeeklyArgs{
    					FrequencyInterval: pulumi.Int(4),
    					RetentionUnit:     pulumi.String("weeks"),
    					RetentionValue:    pulumi.Int(3),
    				},
    			},
    			PolicyItemMonthlies: mongodbatlas.CloudBackupSchedulePolicyItemMonthlyArray{
    				&mongodbatlas.CloudBackupSchedulePolicyItemMonthlyArgs{
    					FrequencyInterval: pulumi.Int(5),
    					RetentionUnit:     pulumi.String("months"),
    					RetentionValue:    pulumi.Int(4),
    				},
    			},
    			PolicyItemYearlies: mongodbatlas.CloudBackupSchedulePolicyItemYearlyArray{
    				&mongodbatlas.CloudBackupSchedulePolicyItemYearlyArgs{
    					FrequencyInterval: pulumi.Int(1),
    					RetentionUnit:     pulumi.String("years"),
    					RetentionValue:    pulumi.Int(1),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_ = mongodbatlas.LookupCloudBackupScheduleOutput(ctx, mongodbatlas.GetCloudBackupScheduleOutputArgs{
    			ProjectId:   testCloudBackupSchedule.ProjectId,
    			ClusterName: testCloudBackupSchedule.ClusterName,
    		}, nil)
    		_ = mongodbatlas.LookupBackupCompliancePolicyOutput(ctx, mongodbatlas.GetBackupCompliancePolicyOutputArgs{
    			ProjectId: testCloudBackupSchedule.ID(),
    		}, nil)
    		_, err = mongodbatlas.NewBackupCompliancePolicy(ctx, "backup_policy", &mongodbatlas.BackupCompliancePolicyArgs{
    			ProjectId:               pulumi.String("<PROJECT-ID>"),
    			AuthorizedEmail:         pulumi.String("user@email.com"),
    			AuthorizedUserFirstName: pulumi.String("First"),
    			AuthorizedUserLastName:  pulumi.String("Last"),
    			CopyProtectionEnabled:   pulumi.Bool(false),
    			PitEnabled:              pulumi.Bool(false),
    			EncryptionAtRestEnabled: pulumi.Bool(false),
    			RestoreWindowDays:       pulumi.Int(7),
    			OnDemandPolicyItem: &mongodbatlas.BackupCompliancePolicyOnDemandPolicyItemArgs{
    				FrequencyInterval: pulumi.Int(0),
    				RetentionUnit:     pulumi.String("days"),
    				RetentionValue:    pulumi.Int(3),
    			},
    			PolicyItemHourly: &mongodbatlas.BackupCompliancePolicyPolicyItemHourlyArgs{
    				FrequencyInterval: pulumi.Int(6),
    				RetentionUnit:     pulumi.String("days"),
    				RetentionValue:    pulumi.Int(7),
    			},
    			PolicyItemDaily: &mongodbatlas.BackupCompliancePolicyPolicyItemDailyArgs{
    				FrequencyInterval: pulumi.Int(0),
    				RetentionUnit:     pulumi.String("days"),
    				RetentionValue:    pulumi.Int(7),
    			},
    			PolicyItemWeeklies: mongodbatlas.BackupCompliancePolicyPolicyItemWeeklyArray{
    				&mongodbatlas.BackupCompliancePolicyPolicyItemWeeklyArgs{
    					FrequencyInterval: pulumi.Int(0),
    					RetentionUnit:     pulumi.String("weeks"),
    					RetentionValue:    pulumi.Int(4),
    				},
    			},
    			PolicyItemMonthlies: mongodbatlas.BackupCompliancePolicyPolicyItemMonthlyArray{
    				&mongodbatlas.BackupCompliancePolicyPolicyItemMonthlyArgs{
    					FrequencyInterval: pulumi.Int(0),
    					RetentionUnit:     pulumi.String("months"),
    					RetentionValue:    pulumi.Int(12),
    				},
    			},
    			PolicyItemYearlies: mongodbatlas.BackupCompliancePolicyPolicyItemYearlyArray{
    				&mongodbatlas.BackupCompliancePolicyPolicyItemYearlyArgs{
    					FrequencyInterval: pulumi.Int(1),
    					RetentionUnit:     pulumi.String("years"),
    					RetentionValue:    pulumi.Int(1),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Mongodbatlas = Pulumi.Mongodbatlas;
    
    return await Deployment.RunAsync(() => 
    {
        var myCluster = new Mongodbatlas.AdvancedCluster("my_cluster", new()
        {
            ProjectId = "<PROJECT-ID>",
            Name = "clusterTest",
            ClusterType = "REPLICASET",
            BackupEnabled = true,
            ReplicationSpecs = new[]
            {
                new Mongodbatlas.Inputs.AdvancedClusterReplicationSpecArgs
                {
                    RegionConfigs = new[]
                    {
                        new Mongodbatlas.Inputs.AdvancedClusterReplicationSpecRegionConfigArgs
                        {
                            Priority = 7,
                            ProviderName = "AWS",
                            RegionName = "EU_CENTRAL_1",
                            ElectableSpecs = new Mongodbatlas.Inputs.AdvancedClusterReplicationSpecRegionConfigElectableSpecsArgs
                            {
                                InstanceSize = "M10",
                                NodeCount = 3,
                            },
                        },
                    },
                },
            },
        });
    
        var testCloudBackupSchedule = new Mongodbatlas.CloudBackupSchedule("test", new()
        {
            ProjectId = myCluster.ProjectId,
            ClusterName = myCluster.Name,
            ReferenceHourOfDay = 3,
            ReferenceMinuteOfHour = 45,
            RestoreWindowDays = 4,
            PolicyItemHourly = new Mongodbatlas.Inputs.CloudBackupSchedulePolicyItemHourlyArgs
            {
                FrequencyInterval = 1,
                RetentionUnit = "days",
                RetentionValue = 1,
            },
            PolicyItemDaily = new Mongodbatlas.Inputs.CloudBackupSchedulePolicyItemDailyArgs
            {
                FrequencyInterval = 1,
                RetentionUnit = "days",
                RetentionValue = 2,
            },
            PolicyItemWeeklies = new[]
            {
                new Mongodbatlas.Inputs.CloudBackupSchedulePolicyItemWeeklyArgs
                {
                    FrequencyInterval = 4,
                    RetentionUnit = "weeks",
                    RetentionValue = 3,
                },
            },
            PolicyItemMonthlies = new[]
            {
                new Mongodbatlas.Inputs.CloudBackupSchedulePolicyItemMonthlyArgs
                {
                    FrequencyInterval = 5,
                    RetentionUnit = "months",
                    RetentionValue = 4,
                },
            },
            PolicyItemYearlies = new[]
            {
                new Mongodbatlas.Inputs.CloudBackupSchedulePolicyItemYearlyArgs
                {
                    FrequencyInterval = 1,
                    RetentionUnit = "years",
                    RetentionValue = 1,
                },
            },
        });
    
        var test = Mongodbatlas.GetCloudBackupSchedule.Invoke(new()
        {
            ProjectId = testCloudBackupSchedule.ProjectId,
            ClusterName = testCloudBackupSchedule.ClusterName,
        });
    
        var backupPolicy = Mongodbatlas.GetBackupCompliancePolicy.Invoke(new()
        {
            ProjectId = testCloudBackupSchedule.Id,
        });
    
        var backupPolicyBackupCompliancePolicy = new Mongodbatlas.BackupCompliancePolicy("backup_policy", new()
        {
            ProjectId = "<PROJECT-ID>",
            AuthorizedEmail = "user@email.com",
            AuthorizedUserFirstName = "First",
            AuthorizedUserLastName = "Last",
            CopyProtectionEnabled = false,
            PitEnabled = false,
            EncryptionAtRestEnabled = false,
            RestoreWindowDays = 7,
            OnDemandPolicyItem = new Mongodbatlas.Inputs.BackupCompliancePolicyOnDemandPolicyItemArgs
            {
                FrequencyInterval = 0,
                RetentionUnit = "days",
                RetentionValue = 3,
            },
            PolicyItemHourly = new Mongodbatlas.Inputs.BackupCompliancePolicyPolicyItemHourlyArgs
            {
                FrequencyInterval = 6,
                RetentionUnit = "days",
                RetentionValue = 7,
            },
            PolicyItemDaily = new Mongodbatlas.Inputs.BackupCompliancePolicyPolicyItemDailyArgs
            {
                FrequencyInterval = 0,
                RetentionUnit = "days",
                RetentionValue = 7,
            },
            PolicyItemWeeklies = new[]
            {
                new Mongodbatlas.Inputs.BackupCompliancePolicyPolicyItemWeeklyArgs
                {
                    FrequencyInterval = 0,
                    RetentionUnit = "weeks",
                    RetentionValue = 4,
                },
            },
            PolicyItemMonthlies = new[]
            {
                new Mongodbatlas.Inputs.BackupCompliancePolicyPolicyItemMonthlyArgs
                {
                    FrequencyInterval = 0,
                    RetentionUnit = "months",
                    RetentionValue = 12,
                },
            },
            PolicyItemYearlies = new[]
            {
                new Mongodbatlas.Inputs.BackupCompliancePolicyPolicyItemYearlyArgs
                {
                    FrequencyInterval = 1,
                    RetentionUnit = "years",
                    RetentionValue = 1,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.mongodbatlas.AdvancedCluster;
    import com.pulumi.mongodbatlas.AdvancedClusterArgs;
    import com.pulumi.mongodbatlas.inputs.AdvancedClusterReplicationSpecArgs;
    import com.pulumi.mongodbatlas.CloudBackupSchedule;
    import com.pulumi.mongodbatlas.CloudBackupScheduleArgs;
    import com.pulumi.mongodbatlas.inputs.CloudBackupSchedulePolicyItemHourlyArgs;
    import com.pulumi.mongodbatlas.inputs.CloudBackupSchedulePolicyItemDailyArgs;
    import com.pulumi.mongodbatlas.inputs.CloudBackupSchedulePolicyItemWeeklyArgs;
    import com.pulumi.mongodbatlas.inputs.CloudBackupSchedulePolicyItemMonthlyArgs;
    import com.pulumi.mongodbatlas.inputs.CloudBackupSchedulePolicyItemYearlyArgs;
    import com.pulumi.mongodbatlas.MongodbatlasFunctions;
    import com.pulumi.mongodbatlas.inputs.GetCloudBackupScheduleArgs;
    import com.pulumi.mongodbatlas.inputs.GetBackupCompliancePolicyArgs;
    import com.pulumi.mongodbatlas.BackupCompliancePolicy;
    import com.pulumi.mongodbatlas.BackupCompliancePolicyArgs;
    import com.pulumi.mongodbatlas.inputs.BackupCompliancePolicyOnDemandPolicyItemArgs;
    import com.pulumi.mongodbatlas.inputs.BackupCompliancePolicyPolicyItemHourlyArgs;
    import com.pulumi.mongodbatlas.inputs.BackupCompliancePolicyPolicyItemDailyArgs;
    import com.pulumi.mongodbatlas.inputs.BackupCompliancePolicyPolicyItemWeeklyArgs;
    import com.pulumi.mongodbatlas.inputs.BackupCompliancePolicyPolicyItemMonthlyArgs;
    import com.pulumi.mongodbatlas.inputs.BackupCompliancePolicyPolicyItemYearlyArgs;
    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 myCluster = new AdvancedCluster("myCluster", AdvancedClusterArgs.builder()
                .projectId("<PROJECT-ID>")
                .name("clusterTest")
                .clusterType("REPLICASET")
                .backupEnabled(true)
                .replicationSpecs(AdvancedClusterReplicationSpecArgs.builder()
                    .regionConfigs(AdvancedClusterReplicationSpecRegionConfigArgs.builder()
                        .priority(7)
                        .providerName("AWS")
                        .regionName("EU_CENTRAL_1")
                        .electableSpecs(AdvancedClusterReplicationSpecRegionConfigElectableSpecsArgs.builder()
                            .instanceSize("M10")
                            .nodeCount(3)
                            .build())
                        .build())
                    .build())
                .build());
    
            var testCloudBackupSchedule = new CloudBackupSchedule("testCloudBackupSchedule", CloudBackupScheduleArgs.builder()
                .projectId(myCluster.projectId())
                .clusterName(myCluster.name())
                .referenceHourOfDay(3)
                .referenceMinuteOfHour(45)
                .restoreWindowDays(4)
                .policyItemHourly(CloudBackupSchedulePolicyItemHourlyArgs.builder()
                    .frequencyInterval(1)
                    .retentionUnit("days")
                    .retentionValue(1)
                    .build())
                .policyItemDaily(CloudBackupSchedulePolicyItemDailyArgs.builder()
                    .frequencyInterval(1)
                    .retentionUnit("days")
                    .retentionValue(2)
                    .build())
                .policyItemWeeklies(CloudBackupSchedulePolicyItemWeeklyArgs.builder()
                    .frequencyInterval(4)
                    .retentionUnit("weeks")
                    .retentionValue(3)
                    .build())
                .policyItemMonthlies(CloudBackupSchedulePolicyItemMonthlyArgs.builder()
                    .frequencyInterval(5)
                    .retentionUnit("months")
                    .retentionValue(4)
                    .build())
                .policyItemYearlies(CloudBackupSchedulePolicyItemYearlyArgs.builder()
                    .frequencyInterval(1)
                    .retentionUnit("years")
                    .retentionValue(1)
                    .build())
                .build());
    
            final var test = MongodbatlasFunctions.getCloudBackupSchedule(GetCloudBackupScheduleArgs.builder()
                .projectId(testCloudBackupSchedule.projectId())
                .clusterName(testCloudBackupSchedule.clusterName())
                .build());
    
            final var backupPolicy = MongodbatlasFunctions.getBackupCompliancePolicy(GetBackupCompliancePolicyArgs.builder()
                .projectId(testCloudBackupSchedule.id())
                .build());
    
            var backupPolicyBackupCompliancePolicy = new BackupCompliancePolicy("backupPolicyBackupCompliancePolicy", BackupCompliancePolicyArgs.builder()
                .projectId("<PROJECT-ID>")
                .authorizedEmail("user@email.com")
                .authorizedUserFirstName("First")
                .authorizedUserLastName("Last")
                .copyProtectionEnabled(false)
                .pitEnabled(false)
                .encryptionAtRestEnabled(false)
                .restoreWindowDays(7)
                .onDemandPolicyItem(BackupCompliancePolicyOnDemandPolicyItemArgs.builder()
                    .frequencyInterval(0)
                    .retentionUnit("days")
                    .retentionValue(3)
                    .build())
                .policyItemHourly(BackupCompliancePolicyPolicyItemHourlyArgs.builder()
                    .frequencyInterval(6)
                    .retentionUnit("days")
                    .retentionValue(7)
                    .build())
                .policyItemDaily(BackupCompliancePolicyPolicyItemDailyArgs.builder()
                    .frequencyInterval(0)
                    .retentionUnit("days")
                    .retentionValue(7)
                    .build())
                .policyItemWeeklies(BackupCompliancePolicyPolicyItemWeeklyArgs.builder()
                    .frequencyInterval(0)
                    .retentionUnit("weeks")
                    .retentionValue(4)
                    .build())
                .policyItemMonthlies(BackupCompliancePolicyPolicyItemMonthlyArgs.builder()
                    .frequencyInterval(0)
                    .retentionUnit("months")
                    .retentionValue(12)
                    .build())
                .policyItemYearlies(BackupCompliancePolicyPolicyItemYearlyArgs.builder()
                    .frequencyInterval(1)
                    .retentionUnit("years")
                    .retentionValue(1)
                    .build())
                .build());
    
        }
    }
    
    resources:
      myCluster:
        type: mongodbatlas:AdvancedCluster
        name: my_cluster
        properties:
          projectId: <PROJECT-ID>
          name: clusterTest
          clusterType: REPLICASET
          backupEnabled: true # enable cloud backup snapshots
          replicationSpecs:
            - regionConfigs:
                - priority: 7
                  providerName: AWS
                  regionName: EU_CENTRAL_1
                  electableSpecs:
                    instanceSize: M10
                    nodeCount: 3
      testCloudBackupSchedule:
        type: mongodbatlas:CloudBackupSchedule
        name: test
        properties:
          projectId: ${myCluster.projectId}
          clusterName: ${myCluster.name}
          referenceHourOfDay: 3
          referenceMinuteOfHour: 45
          restoreWindowDays: 4 # This will now add the desired policy items to the existing mongodbatlas_cloud_backup_schedule resource
          policyItemHourly:
            frequencyInterval: 1
            retentionUnit: days
            retentionValue: 1
          policyItemDaily:
            frequencyInterval: 1
            retentionUnit: days
            retentionValue: 2
          policyItemWeeklies:
            - frequencyInterval: 4
              retentionUnit: weeks
              retentionValue: 3
          policyItemMonthlies:
            - frequencyInterval: 5
              retentionUnit: months
              retentionValue: 4
          policyItemYearlies:
            - frequencyInterval: 1
              retentionUnit: years
              retentionValue: 1
      backupPolicyBackupCompliancePolicy:
        type: mongodbatlas:BackupCompliancePolicy
        name: backup_policy
        properties:
          projectId: <PROJECT-ID>
          authorizedEmail: user@email.com
          authorizedUserFirstName: First
          authorizedUserLastName: Last
          copyProtectionEnabled: false
          pitEnabled: false
          encryptionAtRestEnabled: false
          restoreWindowDays: 7
          onDemandPolicyItem:
            frequencyInterval: 0
            retentionUnit: days
            retentionValue: 3
          policyItemHourly:
            frequencyInterval: 6
            retentionUnit: days
            retentionValue: 7
          policyItemDaily:
            frequencyInterval: 0
            retentionUnit: days
            retentionValue: 7
          policyItemWeeklies:
            - frequencyInterval: 0
              retentionUnit: weeks
              retentionValue: 4
          policyItemMonthlies:
            - frequencyInterval: 0
              retentionUnit: months
              retentionValue: 12
          policyItemYearlies:
            - frequencyInterval: 1
              retentionUnit: years
              retentionValue: 1
    variables:
      test:
        fn::invoke:
          Function: mongodbatlas:getCloudBackupSchedule
          Arguments:
            projectId: ${testCloudBackupSchedule.projectId}
            clusterName: ${testCloudBackupSchedule.clusterName}
      backupPolicy:
        fn::invoke:
          Function: mongodbatlas:getBackupCompliancePolicy
          Arguments:
            projectId: ${testCloudBackupSchedule.id}
    

    Using getBackupCompliancePolicy

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getBackupCompliancePolicy(args: GetBackupCompliancePolicyArgs, opts?: InvokeOptions): Promise<GetBackupCompliancePolicyResult>
    function getBackupCompliancePolicyOutput(args: GetBackupCompliancePolicyOutputArgs, opts?: InvokeOptions): Output<GetBackupCompliancePolicyResult>
    def get_backup_compliance_policy(project_id: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetBackupCompliancePolicyResult
    def get_backup_compliance_policy_output(project_id: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetBackupCompliancePolicyResult]
    func LookupBackupCompliancePolicy(ctx *Context, args *LookupBackupCompliancePolicyArgs, opts ...InvokeOption) (*LookupBackupCompliancePolicyResult, error)
    func LookupBackupCompliancePolicyOutput(ctx *Context, args *LookupBackupCompliancePolicyOutputArgs, opts ...InvokeOption) LookupBackupCompliancePolicyResultOutput

    > Note: This function is named LookupBackupCompliancePolicy in the Go SDK.

    public static class GetBackupCompliancePolicy 
    {
        public static Task<GetBackupCompliancePolicyResult> InvokeAsync(GetBackupCompliancePolicyArgs args, InvokeOptions? opts = null)
        public static Output<GetBackupCompliancePolicyResult> Invoke(GetBackupCompliancePolicyInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetBackupCompliancePolicyResult> getBackupCompliancePolicy(GetBackupCompliancePolicyArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: mongodbatlas:index/getBackupCompliancePolicy:getBackupCompliancePolicy
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ProjectId string
    Unique 24-hexadecimal digit string that identifies your project
    ProjectId string
    Unique 24-hexadecimal digit string that identifies your project
    projectId String
    Unique 24-hexadecimal digit string that identifies your project
    projectId string
    Unique 24-hexadecimal digit string that identifies your project
    project_id str
    Unique 24-hexadecimal digit string that identifies your project
    projectId String
    Unique 24-hexadecimal digit string that identifies your project

    getBackupCompliancePolicy Result

    The following output properties are available:

    AuthorizedEmail string
    Email address of the user who is authorized to update the Backup Compliance Policy settings.
    AuthorizedUserFirstName string
    First name of the user who authorized to update the Backup Compliance Policy settings.
    AuthorizedUserLastName string
    Last name of the user who authorized to update the Backup Compliance Policy settings.
    CopyProtectionEnabled bool
    Flag that indicates whether to enable additional backup copies for the cluster. If unspecified, this value defaults to false.
    EncryptionAtRestEnabled bool
    Flag that indicates whether Encryption at Rest using Customer Key Management is required for all clusters with a Backup Compliance Policy. If unspecified, this value defaults to false.
    Id string
    The provider-assigned unique ID for this managed resource.
    OnDemandPolicyItem GetBackupCompliancePolicyOnDemandPolicyItem
    PitEnabled bool
    Flag that indicates whether the cluster uses Continuous Cloud Backups with a Backup Compliance Policy. If unspecified, this value defaults to false.
    PolicyItemDaily GetBackupCompliancePolicyPolicyItemDaily
    PolicyItemHourly GetBackupCompliancePolicyPolicyItemHourly
    PolicyItemMonthlies List<GetBackupCompliancePolicyPolicyItemMonthly>
    PolicyItemWeeklies List<GetBackupCompliancePolicyPolicyItemWeekly>
    PolicyItemYearlies List<GetBackupCompliancePolicyPolicyItemYearly>
    ProjectId string
    RestoreWindowDays int
    Number of previous days that you can restore back to with Continuous Cloud Backup with a Backup Compliance Policy. You must specify a positive, non-zero integer, and the maximum retention window can't exceed the hourly retention time. This parameter applies only to Continuous Cloud Backups with a Backup Compliance Policy.
    State string
    Label that indicates the state of the Backup Compliance Policy settings. MongoDB Cloud ignores this setting when you enable or update the Backup Compliance Policy settings.
    UpdatedDate string
    ISO 8601 timestamp format in UTC that indicates when the user updated the Data Protection Policy settings. MongoDB Cloud ignores this setting when you enable or update the Backup Compliance Policy settings.
    UpdatedUser string
    Email address that identifies the user who updated the Backup Compliance Policy settings. MongoDB Cloud ignores this email setting when you enable or update the Backup Compliance Policy settings.
    AuthorizedEmail string
    Email address of the user who is authorized to update the Backup Compliance Policy settings.
    AuthorizedUserFirstName string
    First name of the user who authorized to update the Backup Compliance Policy settings.
    AuthorizedUserLastName string
    Last name of the user who authorized to update the Backup Compliance Policy settings.
    CopyProtectionEnabled bool
    Flag that indicates whether to enable additional backup copies for the cluster. If unspecified, this value defaults to false.
    EncryptionAtRestEnabled bool
    Flag that indicates whether Encryption at Rest using Customer Key Management is required for all clusters with a Backup Compliance Policy. If unspecified, this value defaults to false.
    Id string
    The provider-assigned unique ID for this managed resource.
    OnDemandPolicyItem GetBackupCompliancePolicyOnDemandPolicyItem
    PitEnabled bool
    Flag that indicates whether the cluster uses Continuous Cloud Backups with a Backup Compliance Policy. If unspecified, this value defaults to false.
    PolicyItemDaily GetBackupCompliancePolicyPolicyItemDaily
    PolicyItemHourly GetBackupCompliancePolicyPolicyItemHourly
    PolicyItemMonthlies []GetBackupCompliancePolicyPolicyItemMonthly
    PolicyItemWeeklies []GetBackupCompliancePolicyPolicyItemWeekly
    PolicyItemYearlies []GetBackupCompliancePolicyPolicyItemYearly
    ProjectId string
    RestoreWindowDays int
    Number of previous days that you can restore back to with Continuous Cloud Backup with a Backup Compliance Policy. You must specify a positive, non-zero integer, and the maximum retention window can't exceed the hourly retention time. This parameter applies only to Continuous Cloud Backups with a Backup Compliance Policy.
    State string
    Label that indicates the state of the Backup Compliance Policy settings. MongoDB Cloud ignores this setting when you enable or update the Backup Compliance Policy settings.
    UpdatedDate string
    ISO 8601 timestamp format in UTC that indicates when the user updated the Data Protection Policy settings. MongoDB Cloud ignores this setting when you enable or update the Backup Compliance Policy settings.
    UpdatedUser string
    Email address that identifies the user who updated the Backup Compliance Policy settings. MongoDB Cloud ignores this email setting when you enable or update the Backup Compliance Policy settings.
    authorizedEmail String
    Email address of the user who is authorized to update the Backup Compliance Policy settings.
    authorizedUserFirstName String
    First name of the user who authorized to update the Backup Compliance Policy settings.
    authorizedUserLastName String
    Last name of the user who authorized to update the Backup Compliance Policy settings.
    copyProtectionEnabled Boolean
    Flag that indicates whether to enable additional backup copies for the cluster. If unspecified, this value defaults to false.
    encryptionAtRestEnabled Boolean
    Flag that indicates whether Encryption at Rest using Customer Key Management is required for all clusters with a Backup Compliance Policy. If unspecified, this value defaults to false.
    id String
    The provider-assigned unique ID for this managed resource.
    onDemandPolicyItem GetBackupCompliancePolicyOnDemandPolicyItem
    pitEnabled Boolean
    Flag that indicates whether the cluster uses Continuous Cloud Backups with a Backup Compliance Policy. If unspecified, this value defaults to false.
    policyItemDaily GetBackupCompliancePolicyPolicyItemDaily
    policyItemHourly GetBackupCompliancePolicyPolicyItemHourly
    policyItemMonthlies List<GetBackupCompliancePolicyPolicyItemMonthly>
    policyItemWeeklies List<GetBackupCompliancePolicyPolicyItemWeekly>
    policyItemYearlies List<GetBackupCompliancePolicyPolicyItemYearly>
    projectId String
    restoreWindowDays Integer
    Number of previous days that you can restore back to with Continuous Cloud Backup with a Backup Compliance Policy. You must specify a positive, non-zero integer, and the maximum retention window can't exceed the hourly retention time. This parameter applies only to Continuous Cloud Backups with a Backup Compliance Policy.
    state String
    Label that indicates the state of the Backup Compliance Policy settings. MongoDB Cloud ignores this setting when you enable or update the Backup Compliance Policy settings.
    updatedDate String
    ISO 8601 timestamp format in UTC that indicates when the user updated the Data Protection Policy settings. MongoDB Cloud ignores this setting when you enable or update the Backup Compliance Policy settings.
    updatedUser String
    Email address that identifies the user who updated the Backup Compliance Policy settings. MongoDB Cloud ignores this email setting when you enable or update the Backup Compliance Policy settings.
    authorizedEmail string
    Email address of the user who is authorized to update the Backup Compliance Policy settings.
    authorizedUserFirstName string
    First name of the user who authorized to update the Backup Compliance Policy settings.
    authorizedUserLastName string
    Last name of the user who authorized to update the Backup Compliance Policy settings.
    copyProtectionEnabled boolean
    Flag that indicates whether to enable additional backup copies for the cluster. If unspecified, this value defaults to false.
    encryptionAtRestEnabled boolean
    Flag that indicates whether Encryption at Rest using Customer Key Management is required for all clusters with a Backup Compliance Policy. If unspecified, this value defaults to false.
    id string
    The provider-assigned unique ID for this managed resource.
    onDemandPolicyItem GetBackupCompliancePolicyOnDemandPolicyItem
    pitEnabled boolean
    Flag that indicates whether the cluster uses Continuous Cloud Backups with a Backup Compliance Policy. If unspecified, this value defaults to false.
    policyItemDaily GetBackupCompliancePolicyPolicyItemDaily
    policyItemHourly GetBackupCompliancePolicyPolicyItemHourly
    policyItemMonthlies GetBackupCompliancePolicyPolicyItemMonthly[]
    policyItemWeeklies GetBackupCompliancePolicyPolicyItemWeekly[]
    policyItemYearlies GetBackupCompliancePolicyPolicyItemYearly[]
    projectId string
    restoreWindowDays number
    Number of previous days that you can restore back to with Continuous Cloud Backup with a Backup Compliance Policy. You must specify a positive, non-zero integer, and the maximum retention window can't exceed the hourly retention time. This parameter applies only to Continuous Cloud Backups with a Backup Compliance Policy.
    state string
    Label that indicates the state of the Backup Compliance Policy settings. MongoDB Cloud ignores this setting when you enable or update the Backup Compliance Policy settings.
    updatedDate string
    ISO 8601 timestamp format in UTC that indicates when the user updated the Data Protection Policy settings. MongoDB Cloud ignores this setting when you enable or update the Backup Compliance Policy settings.
    updatedUser string
    Email address that identifies the user who updated the Backup Compliance Policy settings. MongoDB Cloud ignores this email setting when you enable or update the Backup Compliance Policy settings.
    authorized_email str
    Email address of the user who is authorized to update the Backup Compliance Policy settings.
    authorized_user_first_name str
    First name of the user who authorized to update the Backup Compliance Policy settings.
    authorized_user_last_name str
    Last name of the user who authorized to update the Backup Compliance Policy settings.
    copy_protection_enabled bool
    Flag that indicates whether to enable additional backup copies for the cluster. If unspecified, this value defaults to false.
    encryption_at_rest_enabled bool
    Flag that indicates whether Encryption at Rest using Customer Key Management is required for all clusters with a Backup Compliance Policy. If unspecified, this value defaults to false.
    id str
    The provider-assigned unique ID for this managed resource.
    on_demand_policy_item GetBackupCompliancePolicyOnDemandPolicyItem
    pit_enabled bool
    Flag that indicates whether the cluster uses Continuous Cloud Backups with a Backup Compliance Policy. If unspecified, this value defaults to false.
    policy_item_daily GetBackupCompliancePolicyPolicyItemDaily
    policy_item_hourly GetBackupCompliancePolicyPolicyItemHourly
    policy_item_monthlies Sequence[GetBackupCompliancePolicyPolicyItemMonthly]
    policy_item_weeklies Sequence[GetBackupCompliancePolicyPolicyItemWeekly]
    policy_item_yearlies Sequence[GetBackupCompliancePolicyPolicyItemYearly]
    project_id str
    restore_window_days int
    Number of previous days that you can restore back to with Continuous Cloud Backup with a Backup Compliance Policy. You must specify a positive, non-zero integer, and the maximum retention window can't exceed the hourly retention time. This parameter applies only to Continuous Cloud Backups with a Backup Compliance Policy.
    state str
    Label that indicates the state of the Backup Compliance Policy settings. MongoDB Cloud ignores this setting when you enable or update the Backup Compliance Policy settings.
    updated_date str
    ISO 8601 timestamp format in UTC that indicates when the user updated the Data Protection Policy settings. MongoDB Cloud ignores this setting when you enable or update the Backup Compliance Policy settings.
    updated_user str
    Email address that identifies the user who updated the Backup Compliance Policy settings. MongoDB Cloud ignores this email setting when you enable or update the Backup Compliance Policy settings.
    authorizedEmail String
    Email address of the user who is authorized to update the Backup Compliance Policy settings.
    authorizedUserFirstName String
    First name of the user who authorized to update the Backup Compliance Policy settings.
    authorizedUserLastName String
    Last name of the user who authorized to update the Backup Compliance Policy settings.
    copyProtectionEnabled Boolean
    Flag that indicates whether to enable additional backup copies for the cluster. If unspecified, this value defaults to false.
    encryptionAtRestEnabled Boolean
    Flag that indicates whether Encryption at Rest using Customer Key Management is required for all clusters with a Backup Compliance Policy. If unspecified, this value defaults to false.
    id String
    The provider-assigned unique ID for this managed resource.
    onDemandPolicyItem Property Map
    pitEnabled Boolean
    Flag that indicates whether the cluster uses Continuous Cloud Backups with a Backup Compliance Policy. If unspecified, this value defaults to false.
    policyItemDaily Property Map
    policyItemHourly Property Map
    policyItemMonthlies List<Property Map>
    policyItemWeeklies List<Property Map>
    policyItemYearlies List<Property Map>
    projectId String
    restoreWindowDays Number
    Number of previous days that you can restore back to with Continuous Cloud Backup with a Backup Compliance Policy. You must specify a positive, non-zero integer, and the maximum retention window can't exceed the hourly retention time. This parameter applies only to Continuous Cloud Backups with a Backup Compliance Policy.
    state String
    Label that indicates the state of the Backup Compliance Policy settings. MongoDB Cloud ignores this setting when you enable or update the Backup Compliance Policy settings.
    updatedDate String
    ISO 8601 timestamp format in UTC that indicates when the user updated the Data Protection Policy settings. MongoDB Cloud ignores this setting when you enable or update the Backup Compliance Policy settings.
    updatedUser String
    Email address that identifies the user who updated the Backup Compliance Policy settings. MongoDB Cloud ignores this email setting when you enable or update the Backup Compliance Policy settings.

    Supporting Types

    GetBackupCompliancePolicyOnDemandPolicyItem

    FrequencyInterval int
    Desired frequency of the new backup policy item specified by frequency_type (yearly in this case). The supported values for yearly policies are
    FrequencyType string
    Frequency associated with the backup policy item. For yearly policies, the frequency type is defined as yearly. Note that this is a read-only value and not required in plan files - its value is implied from the policy resource type.
    Id string
    Unique identifier of the backup policy item.
    RetentionUnit string
    Scope of the backup policy item: days, weeks, months, or years.
    RetentionValue int
    Value to associate with retention_unit. Yearly policy must have retention of at least 1 year.
    FrequencyInterval int
    Desired frequency of the new backup policy item specified by frequency_type (yearly in this case). The supported values for yearly policies are
    FrequencyType string
    Frequency associated with the backup policy item. For yearly policies, the frequency type is defined as yearly. Note that this is a read-only value and not required in plan files - its value is implied from the policy resource type.
    Id string
    Unique identifier of the backup policy item.
    RetentionUnit string
    Scope of the backup policy item: days, weeks, months, or years.
    RetentionValue int
    Value to associate with retention_unit. Yearly policy must have retention of at least 1 year.
    frequencyInterval Integer
    Desired frequency of the new backup policy item specified by frequency_type (yearly in this case). The supported values for yearly policies are
    frequencyType String
    Frequency associated with the backup policy item. For yearly policies, the frequency type is defined as yearly. Note that this is a read-only value and not required in plan files - its value is implied from the policy resource type.
    id String
    Unique identifier of the backup policy item.
    retentionUnit String
    Scope of the backup policy item: days, weeks, months, or years.
    retentionValue Integer
    Value to associate with retention_unit. Yearly policy must have retention of at least 1 year.
    frequencyInterval number
    Desired frequency of the new backup policy item specified by frequency_type (yearly in this case). The supported values for yearly policies are
    frequencyType string
    Frequency associated with the backup policy item. For yearly policies, the frequency type is defined as yearly. Note that this is a read-only value and not required in plan files - its value is implied from the policy resource type.
    id string
    Unique identifier of the backup policy item.
    retentionUnit string
    Scope of the backup policy item: days, weeks, months, or years.
    retentionValue number
    Value to associate with retention_unit. Yearly policy must have retention of at least 1 year.
    frequency_interval int
    Desired frequency of the new backup policy item specified by frequency_type (yearly in this case). The supported values for yearly policies are
    frequency_type str
    Frequency associated with the backup policy item. For yearly policies, the frequency type is defined as yearly. Note that this is a read-only value and not required in plan files - its value is implied from the policy resource type.
    id str
    Unique identifier of the backup policy item.
    retention_unit str
    Scope of the backup policy item: days, weeks, months, or years.
    retention_value int
    Value to associate with retention_unit. Yearly policy must have retention of at least 1 year.
    frequencyInterval Number
    Desired frequency of the new backup policy item specified by frequency_type (yearly in this case). The supported values for yearly policies are
    frequencyType String
    Frequency associated with the backup policy item. For yearly policies, the frequency type is defined as yearly. Note that this is a read-only value and not required in plan files - its value is implied from the policy resource type.
    id String
    Unique identifier of the backup policy item.
    retentionUnit String
    Scope of the backup policy item: days, weeks, months, or years.
    retentionValue Number
    Value to associate with retention_unit. Yearly policy must have retention of at least 1 year.

    GetBackupCompliancePolicyPolicyItemDaily

    FrequencyInterval int
    Desired frequency of the new backup policy item specified by frequency_type (yearly in this case). The supported values for yearly policies are
    FrequencyType string
    Frequency associated with the backup policy item. For yearly policies, the frequency type is defined as yearly. Note that this is a read-only value and not required in plan files - its value is implied from the policy resource type.
    Id string
    Unique identifier of the backup policy item.
    RetentionUnit string
    Scope of the backup policy item: days, weeks, months, or years.
    RetentionValue int
    Value to associate with retention_unit. Yearly policy must have retention of at least 1 year.
    FrequencyInterval int
    Desired frequency of the new backup policy item specified by frequency_type (yearly in this case). The supported values for yearly policies are
    FrequencyType string
    Frequency associated with the backup policy item. For yearly policies, the frequency type is defined as yearly. Note that this is a read-only value and not required in plan files - its value is implied from the policy resource type.
    Id string
    Unique identifier of the backup policy item.
    RetentionUnit string
    Scope of the backup policy item: days, weeks, months, or years.
    RetentionValue int
    Value to associate with retention_unit. Yearly policy must have retention of at least 1 year.
    frequencyInterval Integer
    Desired frequency of the new backup policy item specified by frequency_type (yearly in this case). The supported values for yearly policies are
    frequencyType String
    Frequency associated with the backup policy item. For yearly policies, the frequency type is defined as yearly. Note that this is a read-only value and not required in plan files - its value is implied from the policy resource type.
    id String
    Unique identifier of the backup policy item.
    retentionUnit String
    Scope of the backup policy item: days, weeks, months, or years.
    retentionValue Integer
    Value to associate with retention_unit. Yearly policy must have retention of at least 1 year.
    frequencyInterval number
    Desired frequency of the new backup policy item specified by frequency_type (yearly in this case). The supported values for yearly policies are
    frequencyType string
    Frequency associated with the backup policy item. For yearly policies, the frequency type is defined as yearly. Note that this is a read-only value and not required in plan files - its value is implied from the policy resource type.
    id string
    Unique identifier of the backup policy item.
    retentionUnit string
    Scope of the backup policy item: days, weeks, months, or years.
    retentionValue number
    Value to associate with retention_unit. Yearly policy must have retention of at least 1 year.
    frequency_interval int
    Desired frequency of the new backup policy item specified by frequency_type (yearly in this case). The supported values for yearly policies are
    frequency_type str
    Frequency associated with the backup policy item. For yearly policies, the frequency type is defined as yearly. Note that this is a read-only value and not required in plan files - its value is implied from the policy resource type.
    id str
    Unique identifier of the backup policy item.
    retention_unit str
    Scope of the backup policy item: days, weeks, months, or years.
    retention_value int
    Value to associate with retention_unit. Yearly policy must have retention of at least 1 year.
    frequencyInterval Number
    Desired frequency of the new backup policy item specified by frequency_type (yearly in this case). The supported values for yearly policies are
    frequencyType String
    Frequency associated with the backup policy item. For yearly policies, the frequency type is defined as yearly. Note that this is a read-only value and not required in plan files - its value is implied from the policy resource type.
    id String
    Unique identifier of the backup policy item.
    retentionUnit String
    Scope of the backup policy item: days, weeks, months, or years.
    retentionValue Number
    Value to associate with retention_unit. Yearly policy must have retention of at least 1 year.

    GetBackupCompliancePolicyPolicyItemHourly

    FrequencyInterval int
    Desired frequency of the new backup policy item specified by frequency_type (yearly in this case). The supported values for yearly policies are
    FrequencyType string
    Frequency associated with the backup policy item. For yearly policies, the frequency type is defined as yearly. Note that this is a read-only value and not required in plan files - its value is implied from the policy resource type.
    Id string
    Unique identifier of the backup policy item.
    RetentionUnit string
    Scope of the backup policy item: days, weeks, months, or years.
    RetentionValue int
    Value to associate with retention_unit. Yearly policy must have retention of at least 1 year.
    FrequencyInterval int
    Desired frequency of the new backup policy item specified by frequency_type (yearly in this case). The supported values for yearly policies are
    FrequencyType string
    Frequency associated with the backup policy item. For yearly policies, the frequency type is defined as yearly. Note that this is a read-only value and not required in plan files - its value is implied from the policy resource type.
    Id string
    Unique identifier of the backup policy item.
    RetentionUnit string
    Scope of the backup policy item: days, weeks, months, or years.
    RetentionValue int
    Value to associate with retention_unit. Yearly policy must have retention of at least 1 year.
    frequencyInterval Integer
    Desired frequency of the new backup policy item specified by frequency_type (yearly in this case). The supported values for yearly policies are
    frequencyType String
    Frequency associated with the backup policy item. For yearly policies, the frequency type is defined as yearly. Note that this is a read-only value and not required in plan files - its value is implied from the policy resource type.
    id String
    Unique identifier of the backup policy item.
    retentionUnit String
    Scope of the backup policy item: days, weeks, months, or years.
    retentionValue Integer
    Value to associate with retention_unit. Yearly policy must have retention of at least 1 year.
    frequencyInterval number
    Desired frequency of the new backup policy item specified by frequency_type (yearly in this case). The supported values for yearly policies are
    frequencyType string
    Frequency associated with the backup policy item. For yearly policies, the frequency type is defined as yearly. Note that this is a read-only value and not required in plan files - its value is implied from the policy resource type.
    id string
    Unique identifier of the backup policy item.
    retentionUnit string
    Scope of the backup policy item: days, weeks, months, or years.
    retentionValue number
    Value to associate with retention_unit. Yearly policy must have retention of at least 1 year.
    frequency_interval int
    Desired frequency of the new backup policy item specified by frequency_type (yearly in this case). The supported values for yearly policies are
    frequency_type str
    Frequency associated with the backup policy item. For yearly policies, the frequency type is defined as yearly. Note that this is a read-only value and not required in plan files - its value is implied from the policy resource type.
    id str
    Unique identifier of the backup policy item.
    retention_unit str
    Scope of the backup policy item: days, weeks, months, or years.
    retention_value int
    Value to associate with retention_unit. Yearly policy must have retention of at least 1 year.
    frequencyInterval Number
    Desired frequency of the new backup policy item specified by frequency_type (yearly in this case). The supported values for yearly policies are
    frequencyType String
    Frequency associated with the backup policy item. For yearly policies, the frequency type is defined as yearly. Note that this is a read-only value and not required in plan files - its value is implied from the policy resource type.
    id String
    Unique identifier of the backup policy item.
    retentionUnit String
    Scope of the backup policy item: days, weeks, months, or years.
    retentionValue Number
    Value to associate with retention_unit. Yearly policy must have retention of at least 1 year.

    GetBackupCompliancePolicyPolicyItemMonthly

    FrequencyInterval int
    Desired frequency of the new backup policy item specified by frequency_type (yearly in this case). The supported values for yearly policies are
    FrequencyType string
    Frequency associated with the backup policy item. For yearly policies, the frequency type is defined as yearly. Note that this is a read-only value and not required in plan files - its value is implied from the policy resource type.
    Id string
    Unique identifier of the backup policy item.
    RetentionUnit string
    Scope of the backup policy item: days, weeks, months, or years.
    RetentionValue int
    Value to associate with retention_unit. Yearly policy must have retention of at least 1 year.
    FrequencyInterval int
    Desired frequency of the new backup policy item specified by frequency_type (yearly in this case). The supported values for yearly policies are
    FrequencyType string
    Frequency associated with the backup policy item. For yearly policies, the frequency type is defined as yearly. Note that this is a read-only value and not required in plan files - its value is implied from the policy resource type.
    Id string
    Unique identifier of the backup policy item.
    RetentionUnit string
    Scope of the backup policy item: days, weeks, months, or years.
    RetentionValue int
    Value to associate with retention_unit. Yearly policy must have retention of at least 1 year.
    frequencyInterval Integer
    Desired frequency of the new backup policy item specified by frequency_type (yearly in this case). The supported values for yearly policies are
    frequencyType String
    Frequency associated with the backup policy item. For yearly policies, the frequency type is defined as yearly. Note that this is a read-only value and not required in plan files - its value is implied from the policy resource type.
    id String
    Unique identifier of the backup policy item.
    retentionUnit String
    Scope of the backup policy item: days, weeks, months, or years.
    retentionValue Integer
    Value to associate with retention_unit. Yearly policy must have retention of at least 1 year.
    frequencyInterval number
    Desired frequency of the new backup policy item specified by frequency_type (yearly in this case). The supported values for yearly policies are
    frequencyType string
    Frequency associated with the backup policy item. For yearly policies, the frequency type is defined as yearly. Note that this is a read-only value and not required in plan files - its value is implied from the policy resource type.
    id string
    Unique identifier of the backup policy item.
    retentionUnit string
    Scope of the backup policy item: days, weeks, months, or years.
    retentionValue number
    Value to associate with retention_unit. Yearly policy must have retention of at least 1 year.
    frequency_interval int
    Desired frequency of the new backup policy item specified by frequency_type (yearly in this case). The supported values for yearly policies are
    frequency_type str
    Frequency associated with the backup policy item. For yearly policies, the frequency type is defined as yearly. Note that this is a read-only value and not required in plan files - its value is implied from the policy resource type.
    id str
    Unique identifier of the backup policy item.
    retention_unit str
    Scope of the backup policy item: days, weeks, months, or years.
    retention_value int
    Value to associate with retention_unit. Yearly policy must have retention of at least 1 year.
    frequencyInterval Number
    Desired frequency of the new backup policy item specified by frequency_type (yearly in this case). The supported values for yearly policies are
    frequencyType String
    Frequency associated with the backup policy item. For yearly policies, the frequency type is defined as yearly. Note that this is a read-only value and not required in plan files - its value is implied from the policy resource type.
    id String
    Unique identifier of the backup policy item.
    retentionUnit String
    Scope of the backup policy item: days, weeks, months, or years.
    retentionValue Number
    Value to associate with retention_unit. Yearly policy must have retention of at least 1 year.

    GetBackupCompliancePolicyPolicyItemWeekly

    FrequencyInterval int
    Desired frequency of the new backup policy item specified by frequency_type (yearly in this case). The supported values for yearly policies are
    FrequencyType string
    Frequency associated with the backup policy item. For yearly policies, the frequency type is defined as yearly. Note that this is a read-only value and not required in plan files - its value is implied from the policy resource type.
    Id string
    Unique identifier of the backup policy item.
    RetentionUnit string
    Scope of the backup policy item: days, weeks, months, or years.
    RetentionValue int
    Value to associate with retention_unit. Yearly policy must have retention of at least 1 year.
    FrequencyInterval int
    Desired frequency of the new backup policy item specified by frequency_type (yearly in this case). The supported values for yearly policies are
    FrequencyType string
    Frequency associated with the backup policy item. For yearly policies, the frequency type is defined as yearly. Note that this is a read-only value and not required in plan files - its value is implied from the policy resource type.
    Id string
    Unique identifier of the backup policy item.
    RetentionUnit string
    Scope of the backup policy item: days, weeks, months, or years.
    RetentionValue int
    Value to associate with retention_unit. Yearly policy must have retention of at least 1 year.
    frequencyInterval Integer
    Desired frequency of the new backup policy item specified by frequency_type (yearly in this case). The supported values for yearly policies are
    frequencyType String
    Frequency associated with the backup policy item. For yearly policies, the frequency type is defined as yearly. Note that this is a read-only value and not required in plan files - its value is implied from the policy resource type.
    id String
    Unique identifier of the backup policy item.
    retentionUnit String
    Scope of the backup policy item: days, weeks, months, or years.
    retentionValue Integer
    Value to associate with retention_unit. Yearly policy must have retention of at least 1 year.
    frequencyInterval number
    Desired frequency of the new backup policy item specified by frequency_type (yearly in this case). The supported values for yearly policies are
    frequencyType string
    Frequency associated with the backup policy item. For yearly policies, the frequency type is defined as yearly. Note that this is a read-only value and not required in plan files - its value is implied from the policy resource type.
    id string
    Unique identifier of the backup policy item.
    retentionUnit string
    Scope of the backup policy item: days, weeks, months, or years.
    retentionValue number
    Value to associate with retention_unit. Yearly policy must have retention of at least 1 year.
    frequency_interval int
    Desired frequency of the new backup policy item specified by frequency_type (yearly in this case). The supported values for yearly policies are
    frequency_type str
    Frequency associated with the backup policy item. For yearly policies, the frequency type is defined as yearly. Note that this is a read-only value and not required in plan files - its value is implied from the policy resource type.
    id str
    Unique identifier of the backup policy item.
    retention_unit str
    Scope of the backup policy item: days, weeks, months, or years.
    retention_value int
    Value to associate with retention_unit. Yearly policy must have retention of at least 1 year.
    frequencyInterval Number
    Desired frequency of the new backup policy item specified by frequency_type (yearly in this case). The supported values for yearly policies are
    frequencyType String
    Frequency associated with the backup policy item. For yearly policies, the frequency type is defined as yearly. Note that this is a read-only value and not required in plan files - its value is implied from the policy resource type.
    id String
    Unique identifier of the backup policy item.
    retentionUnit String
    Scope of the backup policy item: days, weeks, months, or years.
    retentionValue Number
    Value to associate with retention_unit. Yearly policy must have retention of at least 1 year.

    GetBackupCompliancePolicyPolicyItemYearly

    FrequencyInterval int
    Desired frequency of the new backup policy item specified by frequency_type (yearly in this case). The supported values for yearly policies are
    FrequencyType string
    Frequency associated with the backup policy item. For yearly policies, the frequency type is defined as yearly. Note that this is a read-only value and not required in plan files - its value is implied from the policy resource type.
    Id string
    Unique identifier of the backup policy item.
    RetentionUnit string
    Scope of the backup policy item: days, weeks, months, or years.
    RetentionValue int
    Value to associate with retention_unit. Yearly policy must have retention of at least 1 year.
    FrequencyInterval int
    Desired frequency of the new backup policy item specified by frequency_type (yearly in this case). The supported values for yearly policies are
    FrequencyType string
    Frequency associated with the backup policy item. For yearly policies, the frequency type is defined as yearly. Note that this is a read-only value and not required in plan files - its value is implied from the policy resource type.
    Id string
    Unique identifier of the backup policy item.
    RetentionUnit string
    Scope of the backup policy item: days, weeks, months, or years.
    RetentionValue int
    Value to associate with retention_unit. Yearly policy must have retention of at least 1 year.
    frequencyInterval Integer
    Desired frequency of the new backup policy item specified by frequency_type (yearly in this case). The supported values for yearly policies are
    frequencyType String
    Frequency associated with the backup policy item. For yearly policies, the frequency type is defined as yearly. Note that this is a read-only value and not required in plan files - its value is implied from the policy resource type.
    id String
    Unique identifier of the backup policy item.
    retentionUnit String
    Scope of the backup policy item: days, weeks, months, or years.
    retentionValue Integer
    Value to associate with retention_unit. Yearly policy must have retention of at least 1 year.
    frequencyInterval number
    Desired frequency of the new backup policy item specified by frequency_type (yearly in this case). The supported values for yearly policies are
    frequencyType string
    Frequency associated with the backup policy item. For yearly policies, the frequency type is defined as yearly. Note that this is a read-only value and not required in plan files - its value is implied from the policy resource type.
    id string
    Unique identifier of the backup policy item.
    retentionUnit string
    Scope of the backup policy item: days, weeks, months, or years.
    retentionValue number
    Value to associate with retention_unit. Yearly policy must have retention of at least 1 year.
    frequency_interval int
    Desired frequency of the new backup policy item specified by frequency_type (yearly in this case). The supported values for yearly policies are
    frequency_type str
    Frequency associated with the backup policy item. For yearly policies, the frequency type is defined as yearly. Note that this is a read-only value and not required in plan files - its value is implied from the policy resource type.
    id str
    Unique identifier of the backup policy item.
    retention_unit str
    Scope of the backup policy item: days, weeks, months, or years.
    retention_value int
    Value to associate with retention_unit. Yearly policy must have retention of at least 1 year.
    frequencyInterval Number
    Desired frequency of the new backup policy item specified by frequency_type (yearly in this case). The supported values for yearly policies are
    frequencyType String
    Frequency associated with the backup policy item. For yearly policies, the frequency type is defined as yearly. Note that this is a read-only value and not required in plan files - its value is implied from the policy resource type.
    id String
    Unique identifier of the backup policy item.
    retentionUnit String
    Scope of the backup policy item: days, weeks, months, or years.
    retentionValue Number
    Value to associate with retention_unit. Yearly policy must have retention of at least 1 year.

    Package Details

    Repository
    MongoDB Atlas pulumi/pulumi-mongodbatlas
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the mongodbatlas Terraform Provider.
    mongodbatlas logo
    MongoDB Atlas v3.20.4 published on Wednesday, Oct 30, 2024 by Pulumi