1. Packages
  2. Mongodbatlas Provider
  3. API Docs
  4. CloudBackupSchedule
Viewing docs for MongoDB Atlas v4.5.0
published on Thursday, Mar 12, 2026 by Pulumi
mongodbatlas logo
Viewing docs for MongoDB Atlas v4.5.0
published on Thursday, Mar 12, 2026 by Pulumi

    mongodbatlas.CloudBackupSchedule provides a cloud backup schedule resource. The resource lets you create, read, update and delete a cloud backup schedule.

    NOTE Groups and projects are synonymous terms. You may find groupId in the official documentation.

    NOTE: If Backup Compliance Policy is enabled for the project for which this backup schedule is defined, you cannot modify the backup schedule for an individual cluster below the minimum requirements set in the Backup Compliance Policy. See Backup Compliance Policy Prohibited Actions and Considerations.

    NOTE: If you need to remove the mongodbatlas.CloudBackupSchedule, read this guide.

    NOTE: When creating a backup schedule you must either use the depends_on clause to indicate the cluster to which it refers or specify the values of project_id and cluster_name as reference of the cluster resource (e.g. cluster_name </span>= mongodbatlas_advanced_cluster.my_cluster.name - see the example below). Failure in doing so will result in an error when executing the plan.

    In the Terraform MongoDB Atlas Provider 1.0.0 we have re-architected the way in which Cloud Backup Policies are managed with Terraform to significantly reduce the complexity. Due to this change we’ve provided the following examples to help express how this resource functions.

    Example Usage

    Create A Cluster With 2 Policies Items

    You can create a new cluster with cloud_backup enabled and then immediately overwrite the default cloud backup policy that Atlas creates by default at the same time with this example.

    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 test = 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,
        },
    });
    
    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 = 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,
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-mongodbatlas/sdk/v4/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
    		}
    		_, 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),
    			},
    		})
    		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 test = 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,
            },
        });
    
    });
    
    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 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 test = new CloudBackupSchedule("test", 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())
                .build());
    
        }
    }
    
    resources:
      myCluster:
        type: mongodbatlas:AdvancedCluster
        name: my_cluster
        properties:
          projectId: <PROJECT-ID>
          name: clusterTest
          clusterType: REPLICASET
          backupEnabled: true # must be enabled in order to use cloud_backup_schedule resource
          replicationSpecs:
            - regionConfigs:
                - priority: 7
                  providerName: AWS
                  regionName: EU_CENTRAL_1
                  electableSpecs:
                    instanceSize: M10
                    nodeCount: 3
      test:
        type: mongodbatlas:CloudBackupSchedule
        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
    

    Create A Cluster With Cloud Backup Enabled But No Policy Items

    You can enable cloud_backup in the Cluster resource and then use the cloud_backup_schedule resource with no policy items to remove the default policy that Atlas creates when you enable Cloud Backup. This allows you to then create a policy when you are ready to via Terraform.

    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 test = new mongodbatlas.CloudBackupSchedule("test", {
        projectId: myCluster.projectId,
        clusterName: myCluster.name,
        referenceHourOfDay: 3,
        referenceMinuteOfHour: 45,
        restoreWindowDays: 4,
    });
    
    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 = 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)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-mongodbatlas/sdk/v4/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
    		}
    		_, 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),
    		})
    		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 test = new Mongodbatlas.CloudBackupSchedule("test", new()
        {
            ProjectId = myCluster.ProjectId,
            ClusterName = myCluster.Name,
            ReferenceHourOfDay = 3,
            ReferenceMinuteOfHour = 45,
            RestoreWindowDays = 4,
        });
    
    });
    
    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 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 test = new CloudBackupSchedule("test", CloudBackupScheduleArgs.builder()
                .projectId(myCluster.projectId())
                .clusterName(myCluster.name())
                .referenceHourOfDay(3)
                .referenceMinuteOfHour(45)
                .restoreWindowDays(4)
                .build());
    
        }
    }
    
    resources:
      myCluster:
        type: mongodbatlas:AdvancedCluster
        name: my_cluster
        properties:
          projectId: <PROJECT-ID>
          name: clusterTest
          clusterType: REPLICASET
          backupEnabled: true # must be enabled in order to use cloud_backup_schedule resource
          replicationSpecs:
            - regionConfigs:
                - priority: 7
                  providerName: AWS
                  regionName: EU_CENTRAL_1
                  electableSpecs:
                    instanceSize: M10
                    nodeCount: 3
      test:
        type: mongodbatlas:CloudBackupSchedule
        properties:
          projectId: ${myCluster.projectId}
          clusterName: ${myCluster.name}
          referenceHourOfDay: 3
          referenceMinuteOfHour: 45
          restoreWindowDays: 4
    

    Add 4 Policies Items To A Cluster With Cloud Backup Previously Enabled But With No Policy Items

    If you followed the example to Create a Cluster with Cloud Backup Enabled but No Policy Items and then want to add policy items later to the mongodbatlas.CloudBackupSchedule this example shows how.

    The cluster already exists with cloud_backup enabled

    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 test = 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,
        }],
    });
    
    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 = 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,
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-mongodbatlas/sdk/v4/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
    		}
    		_, 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
    		}
    		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 test = 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,
                },
            },
        });
    
    });
    
    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 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 test = new CloudBackupSchedule("test", 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());
    
        }
    }
    
    resources:
      myCluster:
        type: mongodbatlas:AdvancedCluster
        name: my_cluster
        properties:
          projectId: <PROJECT-ID>
          name: clusterTest
          clusterType: REPLICASET
          backupEnabled: true # must be enabled in order to use cloud_backup_schedule resource
          replicationSpecs:
            - regionConfigs:
                - priority: 7
                  providerName: AWS
                  regionName: EU_CENTRAL_1
                  electableSpecs:
                    instanceSize: M10
                    nodeCount: 3
      test:
        type: mongodbatlas:CloudBackupSchedule
        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
    

    Create A Cluster With Cloud Backup Enabled With Snapshot Distribution

    You can enable cloud_backup in the Cluster resource and then use the cloud_backup_schedule resource with a basic policy for Cloud Backup.

    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 test = new mongodbatlas.CloudBackupSchedule("test", {
        projectId: myCluster.projectId,
        clusterName: myCluster.name,
        referenceHourOfDay: 3,
        referenceMinuteOfHour: 45,
        restoreWindowDays: 4,
        policyItemDaily: {
            frequencyInterval: 1,
            retentionUnit: "days",
            retentionValue: 14,
        },
        copySettings: [{
            cloudProvider: "AWS",
            frequencies: [
                "HOURLY",
                "DAILY",
                "WEEKLY",
                "MONTHLY",
                "YEARLY",
                "ON_DEMAND",
            ],
            regionName: "US_EAST_1",
            zoneId: myCluster.replicationSpecs.apply(replicationSpecs => replicationSpecs.map(__item => __item.zoneId?.[0])),
            shouldCopyOplogs: false,
        }],
    });
    
    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 = 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_daily={
            "frequency_interval": 1,
            "retention_unit": "days",
            "retention_value": 14,
        },
        copy_settings=[{
            "cloud_provider": "AWS",
            "frequencies": [
                "HOURLY",
                "DAILY",
                "WEEKLY",
                "MONTHLY",
                "YEARLY",
                "ON_DEMAND",
            ],
            "region_name": "US_EAST_1",
            "zone_id": my_cluster.replication_specs.apply(lambda replication_specs: [__item.zone_id[0] for __item in replication_specs]),
            "should_copy_oplogs": False,
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-mongodbatlas/sdk/v4/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
    }
    _, 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),
    PolicyItemDaily: &mongodbatlas.CloudBackupSchedulePolicyItemDailyArgs{
    FrequencyInterval: pulumi.Int(1),
    RetentionUnit: pulumi.String("days"),
    RetentionValue: pulumi.Int(14),
    },
    CopySettings: mongodbatlas.CloudBackupScheduleCopySettingArray{
    &mongodbatlas.CloudBackupScheduleCopySettingArgs{
    CloudProvider: pulumi.String("AWS"),
    Frequencies: pulumi.StringArray{
    pulumi.String("HOURLY"),
    pulumi.String("DAILY"),
    pulumi.String("WEEKLY"),
    pulumi.String("MONTHLY"),
    pulumi.String("YEARLY"),
    pulumi.String("ON_DEMAND"),
    },
    RegionName: pulumi.String("US_EAST_1"),
    ZoneId: pulumi.String(myCluster.ReplicationSpecs.ApplyT(func(replicationSpecs []mongodbatlas.AdvancedClusterReplicationSpec) ([]interface{}, error) {
    var splat0 []interface{}
    for _, val0 := range replicationSpecs {
    splat0 = append(splat0, val0.ZoneId[0])
    }
    return splat0, nil
    }).(pulumi.[]interface{}Output)),
    ShouldCopyOplogs: pulumi.Bool(false),
    },
    },
    })
    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 test = new Mongodbatlas.CloudBackupSchedule("test", new()
        {
            ProjectId = myCluster.ProjectId,
            ClusterName = myCluster.Name,
            ReferenceHourOfDay = 3,
            ReferenceMinuteOfHour = 45,
            RestoreWindowDays = 4,
            PolicyItemDaily = new Mongodbatlas.Inputs.CloudBackupSchedulePolicyItemDailyArgs
            {
                FrequencyInterval = 1,
                RetentionUnit = "days",
                RetentionValue = 14,
            },
            CopySettings = new[]
            {
                new Mongodbatlas.Inputs.CloudBackupScheduleCopySettingArgs
                {
                    CloudProvider = "AWS",
                    Frequencies = new[]
                    {
                        "HOURLY",
                        "DAILY",
                        "WEEKLY",
                        "MONTHLY",
                        "YEARLY",
                        "ON_DEMAND",
                    },
                    RegionName = "US_EAST_1",
                    ZoneId = myCluster.ReplicationSpecs.Apply(replicationSpecs => replicationSpecs.Select(__item => __item.ZoneId[0]).ToList()),
                    ShouldCopyOplogs = false,
                },
            },
        });
    
    });
    
    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.CloudBackupSchedulePolicyItemDailyArgs;
    import com.pulumi.mongodbatlas.inputs.CloudBackupScheduleCopySettingArgs;
    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 test = new CloudBackupSchedule("test", CloudBackupScheduleArgs.builder()
                .projectId(myCluster.projectId())
                .clusterName(myCluster.name())
                .referenceHourOfDay(3)
                .referenceMinuteOfHour(45)
                .restoreWindowDays(4)
                .policyItemDaily(CloudBackupSchedulePolicyItemDailyArgs.builder()
                    .frequencyInterval(1)
                    .retentionUnit("days")
                    .retentionValue(14)
                    .build())
                .copySettings(CloudBackupScheduleCopySettingArgs.builder()
                    .cloudProvider("AWS")
                    .frequencies(                
                        "HOURLY",
                        "DAILY",
                        "WEEKLY",
                        "MONTHLY",
                        "YEARLY",
                        "ON_DEMAND")
                    .regionName("US_EAST_1")
                    .zoneId(myCluster.replicationSpecs().applyValue(_replicationSpecs -> _replicationSpecs.stream().map(element -> element.zoneId()[0]).collect(toList())))
                    .shouldCopyOplogs(false)
                    .build())
                .build());
    
        }
    }
    
    Example coming soon!
    

    Further Examples

    • Cloud Backup Schedule

    Create CloudBackupSchedule Resource

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

    Constructor syntax

    new CloudBackupSchedule(name: string, args: CloudBackupScheduleArgs, opts?: CustomResourceOptions);
    @overload
    def CloudBackupSchedule(resource_name: str,
                            args: CloudBackupScheduleArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def CloudBackupSchedule(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            project_id: Optional[str] = None,
                            cluster_name: Optional[str] = None,
                            export: Optional[CloudBackupScheduleExportArgs] = None,
                            auto_export_enabled: Optional[bool] = None,
                            policy_item_daily: Optional[CloudBackupSchedulePolicyItemDailyArgs] = None,
                            policy_item_hourly: Optional[CloudBackupSchedulePolicyItemHourlyArgs] = None,
                            policy_item_monthlies: Optional[Sequence[CloudBackupSchedulePolicyItemMonthlyArgs]] = None,
                            policy_item_weeklies: Optional[Sequence[CloudBackupSchedulePolicyItemWeeklyArgs]] = None,
                            policy_item_yearlies: Optional[Sequence[CloudBackupSchedulePolicyItemYearlyArgs]] = None,
                            copy_settings: Optional[Sequence[CloudBackupScheduleCopySettingArgs]] = None,
                            reference_hour_of_day: Optional[int] = None,
                            reference_minute_of_hour: Optional[int] = None,
                            restore_window_days: Optional[int] = None,
                            update_snapshots: Optional[bool] = None,
                            use_org_and_group_names_in_export_prefix: Optional[bool] = None)
    func NewCloudBackupSchedule(ctx *Context, name string, args CloudBackupScheduleArgs, opts ...ResourceOption) (*CloudBackupSchedule, error)
    public CloudBackupSchedule(string name, CloudBackupScheduleArgs args, CustomResourceOptions? opts = null)
    public CloudBackupSchedule(String name, CloudBackupScheduleArgs args)
    public CloudBackupSchedule(String name, CloudBackupScheduleArgs args, CustomResourceOptions options)
    
    type: mongodbatlas:CloudBackupSchedule
    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 CloudBackupScheduleArgs
    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 CloudBackupScheduleArgs
    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 CloudBackupScheduleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CloudBackupScheduleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CloudBackupScheduleArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

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

    var cloudBackupScheduleResource = new Mongodbatlas.CloudBackupSchedule("cloudBackupScheduleResource", new()
    {
        ProjectId = "string",
        ClusterName = "string",
        Export = new Mongodbatlas.Inputs.CloudBackupScheduleExportArgs
        {
            ExportBucketId = "string",
            FrequencyType = "string",
        },
        AutoExportEnabled = false,
        PolicyItemDaily = new Mongodbatlas.Inputs.CloudBackupSchedulePolicyItemDailyArgs
        {
            FrequencyInterval = 0,
            RetentionUnit = "string",
            RetentionValue = 0,
            FrequencyType = "string",
            Id = "string",
        },
        PolicyItemHourly = new Mongodbatlas.Inputs.CloudBackupSchedulePolicyItemHourlyArgs
        {
            FrequencyInterval = 0,
            RetentionUnit = "string",
            RetentionValue = 0,
            FrequencyType = "string",
            Id = "string",
        },
        PolicyItemMonthlies = new[]
        {
            new Mongodbatlas.Inputs.CloudBackupSchedulePolicyItemMonthlyArgs
            {
                FrequencyInterval = 0,
                RetentionUnit = "string",
                RetentionValue = 0,
                FrequencyType = "string",
                Id = "string",
            },
        },
        PolicyItemWeeklies = new[]
        {
            new Mongodbatlas.Inputs.CloudBackupSchedulePolicyItemWeeklyArgs
            {
                FrequencyInterval = 0,
                RetentionUnit = "string",
                RetentionValue = 0,
                FrequencyType = "string",
                Id = "string",
            },
        },
        PolicyItemYearlies = new[]
        {
            new Mongodbatlas.Inputs.CloudBackupSchedulePolicyItemYearlyArgs
            {
                FrequencyInterval = 0,
                RetentionUnit = "string",
                RetentionValue = 0,
                FrequencyType = "string",
                Id = "string",
            },
        },
        CopySettings = new[]
        {
            new Mongodbatlas.Inputs.CloudBackupScheduleCopySettingArgs
            {
                CloudProvider = "string",
                Frequencies = new[]
                {
                    "string",
                },
                RegionName = "string",
                ShouldCopyOplogs = false,
                ZoneId = "string",
            },
        },
        ReferenceHourOfDay = 0,
        ReferenceMinuteOfHour = 0,
        RestoreWindowDays = 0,
        UpdateSnapshots = false,
        UseOrgAndGroupNamesInExportPrefix = false,
    });
    
    example, err := mongodbatlas.NewCloudBackupSchedule(ctx, "cloudBackupScheduleResource", &mongodbatlas.CloudBackupScheduleArgs{
    	ProjectId:   pulumi.String("string"),
    	ClusterName: pulumi.String("string"),
    	Export: &mongodbatlas.CloudBackupScheduleExportArgs{
    		ExportBucketId: pulumi.String("string"),
    		FrequencyType:  pulumi.String("string"),
    	},
    	AutoExportEnabled: pulumi.Bool(false),
    	PolicyItemDaily: &mongodbatlas.CloudBackupSchedulePolicyItemDailyArgs{
    		FrequencyInterval: pulumi.Int(0),
    		RetentionUnit:     pulumi.String("string"),
    		RetentionValue:    pulumi.Int(0),
    		FrequencyType:     pulumi.String("string"),
    		Id:                pulumi.String("string"),
    	},
    	PolicyItemHourly: &mongodbatlas.CloudBackupSchedulePolicyItemHourlyArgs{
    		FrequencyInterval: pulumi.Int(0),
    		RetentionUnit:     pulumi.String("string"),
    		RetentionValue:    pulumi.Int(0),
    		FrequencyType:     pulumi.String("string"),
    		Id:                pulumi.String("string"),
    	},
    	PolicyItemMonthlies: mongodbatlas.CloudBackupSchedulePolicyItemMonthlyArray{
    		&mongodbatlas.CloudBackupSchedulePolicyItemMonthlyArgs{
    			FrequencyInterval: pulumi.Int(0),
    			RetentionUnit:     pulumi.String("string"),
    			RetentionValue:    pulumi.Int(0),
    			FrequencyType:     pulumi.String("string"),
    			Id:                pulumi.String("string"),
    		},
    	},
    	PolicyItemWeeklies: mongodbatlas.CloudBackupSchedulePolicyItemWeeklyArray{
    		&mongodbatlas.CloudBackupSchedulePolicyItemWeeklyArgs{
    			FrequencyInterval: pulumi.Int(0),
    			RetentionUnit:     pulumi.String("string"),
    			RetentionValue:    pulumi.Int(0),
    			FrequencyType:     pulumi.String("string"),
    			Id:                pulumi.String("string"),
    		},
    	},
    	PolicyItemYearlies: mongodbatlas.CloudBackupSchedulePolicyItemYearlyArray{
    		&mongodbatlas.CloudBackupSchedulePolicyItemYearlyArgs{
    			FrequencyInterval: pulumi.Int(0),
    			RetentionUnit:     pulumi.String("string"),
    			RetentionValue:    pulumi.Int(0),
    			FrequencyType:     pulumi.String("string"),
    			Id:                pulumi.String("string"),
    		},
    	},
    	CopySettings: mongodbatlas.CloudBackupScheduleCopySettingArray{
    		&mongodbatlas.CloudBackupScheduleCopySettingArgs{
    			CloudProvider: pulumi.String("string"),
    			Frequencies: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			RegionName:       pulumi.String("string"),
    			ShouldCopyOplogs: pulumi.Bool(false),
    			ZoneId:           pulumi.String("string"),
    		},
    	},
    	ReferenceHourOfDay:                pulumi.Int(0),
    	ReferenceMinuteOfHour:             pulumi.Int(0),
    	RestoreWindowDays:                 pulumi.Int(0),
    	UpdateSnapshots:                   pulumi.Bool(false),
    	UseOrgAndGroupNamesInExportPrefix: pulumi.Bool(false),
    })
    
    var cloudBackupScheduleResource = new CloudBackupSchedule("cloudBackupScheduleResource", CloudBackupScheduleArgs.builder()
        .projectId("string")
        .clusterName("string")
        .export(CloudBackupScheduleExportArgs.builder()
            .exportBucketId("string")
            .frequencyType("string")
            .build())
        .autoExportEnabled(false)
        .policyItemDaily(CloudBackupSchedulePolicyItemDailyArgs.builder()
            .frequencyInterval(0)
            .retentionUnit("string")
            .retentionValue(0)
            .frequencyType("string")
            .id("string")
            .build())
        .policyItemHourly(CloudBackupSchedulePolicyItemHourlyArgs.builder()
            .frequencyInterval(0)
            .retentionUnit("string")
            .retentionValue(0)
            .frequencyType("string")
            .id("string")
            .build())
        .policyItemMonthlies(CloudBackupSchedulePolicyItemMonthlyArgs.builder()
            .frequencyInterval(0)
            .retentionUnit("string")
            .retentionValue(0)
            .frequencyType("string")
            .id("string")
            .build())
        .policyItemWeeklies(CloudBackupSchedulePolicyItemWeeklyArgs.builder()
            .frequencyInterval(0)
            .retentionUnit("string")
            .retentionValue(0)
            .frequencyType("string")
            .id("string")
            .build())
        .policyItemYearlies(CloudBackupSchedulePolicyItemYearlyArgs.builder()
            .frequencyInterval(0)
            .retentionUnit("string")
            .retentionValue(0)
            .frequencyType("string")
            .id("string")
            .build())
        .copySettings(CloudBackupScheduleCopySettingArgs.builder()
            .cloudProvider("string")
            .frequencies("string")
            .regionName("string")
            .shouldCopyOplogs(false)
            .zoneId("string")
            .build())
        .referenceHourOfDay(0)
        .referenceMinuteOfHour(0)
        .restoreWindowDays(0)
        .updateSnapshots(false)
        .useOrgAndGroupNamesInExportPrefix(false)
        .build());
    
    cloud_backup_schedule_resource = mongodbatlas.CloudBackupSchedule("cloudBackupScheduleResource",
        project_id="string",
        cluster_name="string",
        export={
            "export_bucket_id": "string",
            "frequency_type": "string",
        },
        auto_export_enabled=False,
        policy_item_daily={
            "frequency_interval": 0,
            "retention_unit": "string",
            "retention_value": 0,
            "frequency_type": "string",
            "id": "string",
        },
        policy_item_hourly={
            "frequency_interval": 0,
            "retention_unit": "string",
            "retention_value": 0,
            "frequency_type": "string",
            "id": "string",
        },
        policy_item_monthlies=[{
            "frequency_interval": 0,
            "retention_unit": "string",
            "retention_value": 0,
            "frequency_type": "string",
            "id": "string",
        }],
        policy_item_weeklies=[{
            "frequency_interval": 0,
            "retention_unit": "string",
            "retention_value": 0,
            "frequency_type": "string",
            "id": "string",
        }],
        policy_item_yearlies=[{
            "frequency_interval": 0,
            "retention_unit": "string",
            "retention_value": 0,
            "frequency_type": "string",
            "id": "string",
        }],
        copy_settings=[{
            "cloud_provider": "string",
            "frequencies": ["string"],
            "region_name": "string",
            "should_copy_oplogs": False,
            "zone_id": "string",
        }],
        reference_hour_of_day=0,
        reference_minute_of_hour=0,
        restore_window_days=0,
        update_snapshots=False,
        use_org_and_group_names_in_export_prefix=False)
    
    const cloudBackupScheduleResource = new mongodbatlas.CloudBackupSchedule("cloudBackupScheduleResource", {
        projectId: "string",
        clusterName: "string",
        "export": {
            exportBucketId: "string",
            frequencyType: "string",
        },
        autoExportEnabled: false,
        policyItemDaily: {
            frequencyInterval: 0,
            retentionUnit: "string",
            retentionValue: 0,
            frequencyType: "string",
            id: "string",
        },
        policyItemHourly: {
            frequencyInterval: 0,
            retentionUnit: "string",
            retentionValue: 0,
            frequencyType: "string",
            id: "string",
        },
        policyItemMonthlies: [{
            frequencyInterval: 0,
            retentionUnit: "string",
            retentionValue: 0,
            frequencyType: "string",
            id: "string",
        }],
        policyItemWeeklies: [{
            frequencyInterval: 0,
            retentionUnit: "string",
            retentionValue: 0,
            frequencyType: "string",
            id: "string",
        }],
        policyItemYearlies: [{
            frequencyInterval: 0,
            retentionUnit: "string",
            retentionValue: 0,
            frequencyType: "string",
            id: "string",
        }],
        copySettings: [{
            cloudProvider: "string",
            frequencies: ["string"],
            regionName: "string",
            shouldCopyOplogs: false,
            zoneId: "string",
        }],
        referenceHourOfDay: 0,
        referenceMinuteOfHour: 0,
        restoreWindowDays: 0,
        updateSnapshots: false,
        useOrgAndGroupNamesInExportPrefix: false,
    });
    
    type: mongodbatlas:CloudBackupSchedule
    properties:
        autoExportEnabled: false
        clusterName: string
        copySettings:
            - cloudProvider: string
              frequencies:
                - string
              regionName: string
              shouldCopyOplogs: false
              zoneId: string
        export:
            exportBucketId: string
            frequencyType: string
        policyItemDaily:
            frequencyInterval: 0
            frequencyType: string
            id: string
            retentionUnit: string
            retentionValue: 0
        policyItemHourly:
            frequencyInterval: 0
            frequencyType: string
            id: string
            retentionUnit: string
            retentionValue: 0
        policyItemMonthlies:
            - frequencyInterval: 0
              frequencyType: string
              id: string
              retentionUnit: string
              retentionValue: 0
        policyItemWeeklies:
            - frequencyInterval: 0
              frequencyType: string
              id: string
              retentionUnit: string
              retentionValue: 0
        policyItemYearlies:
            - frequencyInterval: 0
              frequencyType: string
              id: string
              retentionUnit: string
              retentionValue: 0
        projectId: string
        referenceHourOfDay: 0
        referenceMinuteOfHour: 0
        restoreWindowDays: 0
        updateSnapshots: false
        useOrgAndGroupNamesInExportPrefix: false
    

    CloudBackupSchedule Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The CloudBackupSchedule resource accepts the following input properties:

    ClusterName string
    The name of the Atlas cluster that contains the snapshot backup policy you want to retrieve.
    ProjectId string
    The unique identifier of the project for the Atlas cluster.
    AutoExportEnabled bool
    Flag that indicates whether MongoDB Cloud automatically exports Cloud Backup Snapshots to the Export Bucket. Value can be one of the following:

    • true - Enables automatic export of cloud backup snapshots to the Export Bucket.
    • false - Disables automatic export of cloud backup snapshots to the Export Bucket. (default)
    CopySettings List<CloudBackupScheduleCopySetting>
    List that contains a document for each copy setting item in the desired backup policy. See below
    Export CloudBackupScheduleExport
    Policy for automatically exporting Cloud Backup Snapshots. See below
    PolicyItemDaily CloudBackupSchedulePolicyItemDaily
    Daily policy item. See below
    PolicyItemHourly CloudBackupSchedulePolicyItemHourly
    Hourly policy item. See below
    PolicyItemMonthlies List<CloudBackupSchedulePolicyItemMonthly>
    Monthly policy item. See below
    PolicyItemWeeklies List<CloudBackupSchedulePolicyItemWeekly>
    Weekly policy item. See below
    PolicyItemYearlies List<CloudBackupSchedulePolicyItemYearly>
    Yearly policy item. See below
    ReferenceHourOfDay int
    UTC Hour of day between 0 and 23, inclusive, representing which hour of the day that Atlas takes snapshots for backup policy items.
    ReferenceMinuteOfHour int
    UTC Minutes after reference_hour_of_day that Atlas takes snapshots for backup policy items. Must be between 0 and 59, inclusive.
    RestoreWindowDays int
    Number of days back in time you can restore to with point-in-time accuracy. Must be a positive, non-zero integer.
    UpdateSnapshots bool

    Specify true to apply the retention changes in the updated backup policy to snapshots that Atlas took previously.

    Note This parameter does not return updates on return from API, this is a feature of the MongoDB Atlas Admin API itself and not Terraform. For more details about this resource see Cloud Backup Schedule.

    UseOrgAndGroupNamesInExportPrefix bool
    Specify true to use organization and project names instead of organization and project UUIDs in the path for the metadata files that Atlas uploads to your bucket after it finishes exporting the snapshots. To learn more about the metadata files that Atlas uploads, see Export Cloud Backup Snapshot.
    ClusterName string
    The name of the Atlas cluster that contains the snapshot backup policy you want to retrieve.
    ProjectId string
    The unique identifier of the project for the Atlas cluster.
    AutoExportEnabled bool
    Flag that indicates whether MongoDB Cloud automatically exports Cloud Backup Snapshots to the Export Bucket. Value can be one of the following:

    • true - Enables automatic export of cloud backup snapshots to the Export Bucket.
    • false - Disables automatic export of cloud backup snapshots to the Export Bucket. (default)
    CopySettings []CloudBackupScheduleCopySettingArgs
    List that contains a document for each copy setting item in the desired backup policy. See below
    Export CloudBackupScheduleExportArgs
    Policy for automatically exporting Cloud Backup Snapshots. See below
    PolicyItemDaily CloudBackupSchedulePolicyItemDailyArgs
    Daily policy item. See below
    PolicyItemHourly CloudBackupSchedulePolicyItemHourlyArgs
    Hourly policy item. See below
    PolicyItemMonthlies []CloudBackupSchedulePolicyItemMonthlyArgs
    Monthly policy item. See below
    PolicyItemWeeklies []CloudBackupSchedulePolicyItemWeeklyArgs
    Weekly policy item. See below
    PolicyItemYearlies []CloudBackupSchedulePolicyItemYearlyArgs
    Yearly policy item. See below
    ReferenceHourOfDay int
    UTC Hour of day between 0 and 23, inclusive, representing which hour of the day that Atlas takes snapshots for backup policy items.
    ReferenceMinuteOfHour int
    UTC Minutes after reference_hour_of_day that Atlas takes snapshots for backup policy items. Must be between 0 and 59, inclusive.
    RestoreWindowDays int
    Number of days back in time you can restore to with point-in-time accuracy. Must be a positive, non-zero integer.
    UpdateSnapshots bool

    Specify true to apply the retention changes in the updated backup policy to snapshots that Atlas took previously.

    Note This parameter does not return updates on return from API, this is a feature of the MongoDB Atlas Admin API itself and not Terraform. For more details about this resource see Cloud Backup Schedule.

    UseOrgAndGroupNamesInExportPrefix bool
    Specify true to use organization and project names instead of organization and project UUIDs in the path for the metadata files that Atlas uploads to your bucket after it finishes exporting the snapshots. To learn more about the metadata files that Atlas uploads, see Export Cloud Backup Snapshot.
    clusterName String
    The name of the Atlas cluster that contains the snapshot backup policy you want to retrieve.
    projectId String
    The unique identifier of the project for the Atlas cluster.
    autoExportEnabled Boolean
    Flag that indicates whether MongoDB Cloud automatically exports Cloud Backup Snapshots to the Export Bucket. Value can be one of the following:

    • true - Enables automatic export of cloud backup snapshots to the Export Bucket.
    • false - Disables automatic export of cloud backup snapshots to the Export Bucket. (default)
    copySettings List<CloudBackupScheduleCopySetting>
    List that contains a document for each copy setting item in the desired backup policy. See below
    export CloudBackupScheduleExport
    Policy for automatically exporting Cloud Backup Snapshots. See below
    policyItemDaily CloudBackupSchedulePolicyItemDaily
    Daily policy item. See below
    policyItemHourly CloudBackupSchedulePolicyItemHourly
    Hourly policy item. See below
    policyItemMonthlies List<CloudBackupSchedulePolicyItemMonthly>
    Monthly policy item. See below
    policyItemWeeklies List<CloudBackupSchedulePolicyItemWeekly>
    Weekly policy item. See below
    policyItemYearlies List<CloudBackupSchedulePolicyItemYearly>
    Yearly policy item. See below
    referenceHourOfDay Integer
    UTC Hour of day between 0 and 23, inclusive, representing which hour of the day that Atlas takes snapshots for backup policy items.
    referenceMinuteOfHour Integer
    UTC Minutes after reference_hour_of_day that Atlas takes snapshots for backup policy items. Must be between 0 and 59, inclusive.
    restoreWindowDays Integer
    Number of days back in time you can restore to with point-in-time accuracy. Must be a positive, non-zero integer.
    updateSnapshots Boolean

    Specify true to apply the retention changes in the updated backup policy to snapshots that Atlas took previously.

    Note This parameter does not return updates on return from API, this is a feature of the MongoDB Atlas Admin API itself and not Terraform. For more details about this resource see Cloud Backup Schedule.

    useOrgAndGroupNamesInExportPrefix Boolean
    Specify true to use organization and project names instead of organization and project UUIDs in the path for the metadata files that Atlas uploads to your bucket after it finishes exporting the snapshots. To learn more about the metadata files that Atlas uploads, see Export Cloud Backup Snapshot.
    clusterName string
    The name of the Atlas cluster that contains the snapshot backup policy you want to retrieve.
    projectId string
    The unique identifier of the project for the Atlas cluster.
    autoExportEnabled boolean
    Flag that indicates whether MongoDB Cloud automatically exports Cloud Backup Snapshots to the Export Bucket. Value can be one of the following:

    • true - Enables automatic export of cloud backup snapshots to the Export Bucket.
    • false - Disables automatic export of cloud backup snapshots to the Export Bucket. (default)
    copySettings CloudBackupScheduleCopySetting[]
    List that contains a document for each copy setting item in the desired backup policy. See below
    export CloudBackupScheduleExport
    Policy for automatically exporting Cloud Backup Snapshots. See below
    policyItemDaily CloudBackupSchedulePolicyItemDaily
    Daily policy item. See below
    policyItemHourly CloudBackupSchedulePolicyItemHourly
    Hourly policy item. See below
    policyItemMonthlies CloudBackupSchedulePolicyItemMonthly[]
    Monthly policy item. See below
    policyItemWeeklies CloudBackupSchedulePolicyItemWeekly[]
    Weekly policy item. See below
    policyItemYearlies CloudBackupSchedulePolicyItemYearly[]
    Yearly policy item. See below
    referenceHourOfDay number
    UTC Hour of day between 0 and 23, inclusive, representing which hour of the day that Atlas takes snapshots for backup policy items.
    referenceMinuteOfHour number
    UTC Minutes after reference_hour_of_day that Atlas takes snapshots for backup policy items. Must be between 0 and 59, inclusive.
    restoreWindowDays number
    Number of days back in time you can restore to with point-in-time accuracy. Must be a positive, non-zero integer.
    updateSnapshots boolean

    Specify true to apply the retention changes in the updated backup policy to snapshots that Atlas took previously.

    Note This parameter does not return updates on return from API, this is a feature of the MongoDB Atlas Admin API itself and not Terraform. For more details about this resource see Cloud Backup Schedule.

    useOrgAndGroupNamesInExportPrefix boolean
    Specify true to use organization and project names instead of organization and project UUIDs in the path for the metadata files that Atlas uploads to your bucket after it finishes exporting the snapshots. To learn more about the metadata files that Atlas uploads, see Export Cloud Backup Snapshot.
    cluster_name str
    The name of the Atlas cluster that contains the snapshot backup policy you want to retrieve.
    project_id str
    The unique identifier of the project for the Atlas cluster.
    auto_export_enabled bool
    Flag that indicates whether MongoDB Cloud automatically exports Cloud Backup Snapshots to the Export Bucket. Value can be one of the following:

    • true - Enables automatic export of cloud backup snapshots to the Export Bucket.
    • false - Disables automatic export of cloud backup snapshots to the Export Bucket. (default)
    copy_settings Sequence[CloudBackupScheduleCopySettingArgs]
    List that contains a document for each copy setting item in the desired backup policy. See below
    export CloudBackupScheduleExportArgs
    Policy for automatically exporting Cloud Backup Snapshots. See below
    policy_item_daily CloudBackupSchedulePolicyItemDailyArgs
    Daily policy item. See below
    policy_item_hourly CloudBackupSchedulePolicyItemHourlyArgs
    Hourly policy item. See below
    policy_item_monthlies Sequence[CloudBackupSchedulePolicyItemMonthlyArgs]
    Monthly policy item. See below
    policy_item_weeklies Sequence[CloudBackupSchedulePolicyItemWeeklyArgs]
    Weekly policy item. See below
    policy_item_yearlies Sequence[CloudBackupSchedulePolicyItemYearlyArgs]
    Yearly policy item. See below
    reference_hour_of_day int
    UTC Hour of day between 0 and 23, inclusive, representing which hour of the day that Atlas takes snapshots for backup policy items.
    reference_minute_of_hour int
    UTC Minutes after reference_hour_of_day that Atlas takes snapshots for backup policy items. Must be between 0 and 59, inclusive.
    restore_window_days int
    Number of days back in time you can restore to with point-in-time accuracy. Must be a positive, non-zero integer.
    update_snapshots bool

    Specify true to apply the retention changes in the updated backup policy to snapshots that Atlas took previously.

    Note This parameter does not return updates on return from API, this is a feature of the MongoDB Atlas Admin API itself and not Terraform. For more details about this resource see Cloud Backup Schedule.

    use_org_and_group_names_in_export_prefix bool
    Specify true to use organization and project names instead of organization and project UUIDs in the path for the metadata files that Atlas uploads to your bucket after it finishes exporting the snapshots. To learn more about the metadata files that Atlas uploads, see Export Cloud Backup Snapshot.
    clusterName String
    The name of the Atlas cluster that contains the snapshot backup policy you want to retrieve.
    projectId String
    The unique identifier of the project for the Atlas cluster.
    autoExportEnabled Boolean
    Flag that indicates whether MongoDB Cloud automatically exports Cloud Backup Snapshots to the Export Bucket. Value can be one of the following:

    • true - Enables automatic export of cloud backup snapshots to the Export Bucket.
    • false - Disables automatic export of cloud backup snapshots to the Export Bucket. (default)
    copySettings List<Property Map>
    List that contains a document for each copy setting item in the desired backup policy. See below
    export Property Map
    Policy for automatically exporting Cloud Backup Snapshots. See below
    policyItemDaily Property Map
    Daily policy item. See below
    policyItemHourly Property Map
    Hourly policy item. See below
    policyItemMonthlies List<Property Map>
    Monthly policy item. See below
    policyItemWeeklies List<Property Map>
    Weekly policy item. See below
    policyItemYearlies List<Property Map>
    Yearly policy item. See below
    referenceHourOfDay Number
    UTC Hour of day between 0 and 23, inclusive, representing which hour of the day that Atlas takes snapshots for backup policy items.
    referenceMinuteOfHour Number
    UTC Minutes after reference_hour_of_day that Atlas takes snapshots for backup policy items. Must be between 0 and 59, inclusive.
    restoreWindowDays Number
    Number of days back in time you can restore to with point-in-time accuracy. Must be a positive, non-zero integer.
    updateSnapshots Boolean

    Specify true to apply the retention changes in the updated backup policy to snapshots that Atlas took previously.

    Note This parameter does not return updates on return from API, this is a feature of the MongoDB Atlas Admin API itself and not Terraform. For more details about this resource see Cloud Backup Schedule.

    useOrgAndGroupNamesInExportPrefix Boolean
    Specify true to use organization and project names instead of organization and project UUIDs in the path for the metadata files that Atlas uploads to your bucket after it finishes exporting the snapshots. To learn more about the metadata files that Atlas uploads, see Export Cloud Backup Snapshot.

    Outputs

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

    ClusterId string
    Unique identifier of the Atlas cluster.
    Id string
    The provider-assigned unique ID for this managed resource.
    IdPolicy string
    Unique identifier of the backup policy.
    NextSnapshot string
    Timestamp in the number of seconds that have elapsed since the UNIX epoch when Atlas takes the next snapshot.
    ClusterId string
    Unique identifier of the Atlas cluster.
    Id string
    The provider-assigned unique ID for this managed resource.
    IdPolicy string
    Unique identifier of the backup policy.
    NextSnapshot string
    Timestamp in the number of seconds that have elapsed since the UNIX epoch when Atlas takes the next snapshot.
    clusterId String
    Unique identifier of the Atlas cluster.
    id String
    The provider-assigned unique ID for this managed resource.
    idPolicy String
    Unique identifier of the backup policy.
    nextSnapshot String
    Timestamp in the number of seconds that have elapsed since the UNIX epoch when Atlas takes the next snapshot.
    clusterId string
    Unique identifier of the Atlas cluster.
    id string
    The provider-assigned unique ID for this managed resource.
    idPolicy string
    Unique identifier of the backup policy.
    nextSnapshot string
    Timestamp in the number of seconds that have elapsed since the UNIX epoch when Atlas takes the next snapshot.
    cluster_id str
    Unique identifier of the Atlas cluster.
    id str
    The provider-assigned unique ID for this managed resource.
    id_policy str
    Unique identifier of the backup policy.
    next_snapshot str
    Timestamp in the number of seconds that have elapsed since the UNIX epoch when Atlas takes the next snapshot.
    clusterId String
    Unique identifier of the Atlas cluster.
    id String
    The provider-assigned unique ID for this managed resource.
    idPolicy String
    Unique identifier of the backup policy.
    nextSnapshot String
    Timestamp in the number of seconds that have elapsed since the UNIX epoch when Atlas takes the next snapshot.

    Look up Existing CloudBackupSchedule Resource

    Get an existing CloudBackupSchedule resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: CloudBackupScheduleState, opts?: CustomResourceOptions): CloudBackupSchedule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            auto_export_enabled: Optional[bool] = None,
            cluster_id: Optional[str] = None,
            cluster_name: Optional[str] = None,
            copy_settings: Optional[Sequence[CloudBackupScheduleCopySettingArgs]] = None,
            export: Optional[CloudBackupScheduleExportArgs] = None,
            id_policy: Optional[str] = None,
            next_snapshot: Optional[str] = None,
            policy_item_daily: Optional[CloudBackupSchedulePolicyItemDailyArgs] = None,
            policy_item_hourly: Optional[CloudBackupSchedulePolicyItemHourlyArgs] = None,
            policy_item_monthlies: Optional[Sequence[CloudBackupSchedulePolicyItemMonthlyArgs]] = None,
            policy_item_weeklies: Optional[Sequence[CloudBackupSchedulePolicyItemWeeklyArgs]] = None,
            policy_item_yearlies: Optional[Sequence[CloudBackupSchedulePolicyItemYearlyArgs]] = None,
            project_id: Optional[str] = None,
            reference_hour_of_day: Optional[int] = None,
            reference_minute_of_hour: Optional[int] = None,
            restore_window_days: Optional[int] = None,
            update_snapshots: Optional[bool] = None,
            use_org_and_group_names_in_export_prefix: Optional[bool] = None) -> CloudBackupSchedule
    func GetCloudBackupSchedule(ctx *Context, name string, id IDInput, state *CloudBackupScheduleState, opts ...ResourceOption) (*CloudBackupSchedule, error)
    public static CloudBackupSchedule Get(string name, Input<string> id, CloudBackupScheduleState? state, CustomResourceOptions? opts = null)
    public static CloudBackupSchedule get(String name, Output<String> id, CloudBackupScheduleState state, CustomResourceOptions options)
    resources:  _:    type: mongodbatlas:CloudBackupSchedule    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AutoExportEnabled bool
    Flag that indicates whether MongoDB Cloud automatically exports Cloud Backup Snapshots to the Export Bucket. Value can be one of the following:

    • true - Enables automatic export of cloud backup snapshots to the Export Bucket.
    • false - Disables automatic export of cloud backup snapshots to the Export Bucket. (default)
    ClusterId string
    Unique identifier of the Atlas cluster.
    ClusterName string
    The name of the Atlas cluster that contains the snapshot backup policy you want to retrieve.
    CopySettings List<CloudBackupScheduleCopySetting>
    List that contains a document for each copy setting item in the desired backup policy. See below
    Export CloudBackupScheduleExport
    Policy for automatically exporting Cloud Backup Snapshots. See below
    IdPolicy string
    Unique identifier of the backup policy.
    NextSnapshot string
    Timestamp in the number of seconds that have elapsed since the UNIX epoch when Atlas takes the next snapshot.
    PolicyItemDaily CloudBackupSchedulePolicyItemDaily
    Daily policy item. See below
    PolicyItemHourly CloudBackupSchedulePolicyItemHourly
    Hourly policy item. See below
    PolicyItemMonthlies List<CloudBackupSchedulePolicyItemMonthly>
    Monthly policy item. See below
    PolicyItemWeeklies List<CloudBackupSchedulePolicyItemWeekly>
    Weekly policy item. See below
    PolicyItemYearlies List<CloudBackupSchedulePolicyItemYearly>
    Yearly policy item. See below
    ProjectId string
    The unique identifier of the project for the Atlas cluster.
    ReferenceHourOfDay int
    UTC Hour of day between 0 and 23, inclusive, representing which hour of the day that Atlas takes snapshots for backup policy items.
    ReferenceMinuteOfHour int
    UTC Minutes after reference_hour_of_day that Atlas takes snapshots for backup policy items. Must be between 0 and 59, inclusive.
    RestoreWindowDays int
    Number of days back in time you can restore to with point-in-time accuracy. Must be a positive, non-zero integer.
    UpdateSnapshots bool

    Specify true to apply the retention changes in the updated backup policy to snapshots that Atlas took previously.

    Note This parameter does not return updates on return from API, this is a feature of the MongoDB Atlas Admin API itself and not Terraform. For more details about this resource see Cloud Backup Schedule.

    UseOrgAndGroupNamesInExportPrefix bool
    Specify true to use organization and project names instead of organization and project UUIDs in the path for the metadata files that Atlas uploads to your bucket after it finishes exporting the snapshots. To learn more about the metadata files that Atlas uploads, see Export Cloud Backup Snapshot.
    AutoExportEnabled bool
    Flag that indicates whether MongoDB Cloud automatically exports Cloud Backup Snapshots to the Export Bucket. Value can be one of the following:

    • true - Enables automatic export of cloud backup snapshots to the Export Bucket.
    • false - Disables automatic export of cloud backup snapshots to the Export Bucket. (default)
    ClusterId string
    Unique identifier of the Atlas cluster.
    ClusterName string
    The name of the Atlas cluster that contains the snapshot backup policy you want to retrieve.
    CopySettings []CloudBackupScheduleCopySettingArgs
    List that contains a document for each copy setting item in the desired backup policy. See below
    Export CloudBackupScheduleExportArgs
    Policy for automatically exporting Cloud Backup Snapshots. See below
    IdPolicy string
    Unique identifier of the backup policy.
    NextSnapshot string
    Timestamp in the number of seconds that have elapsed since the UNIX epoch when Atlas takes the next snapshot.
    PolicyItemDaily CloudBackupSchedulePolicyItemDailyArgs
    Daily policy item. See below
    PolicyItemHourly CloudBackupSchedulePolicyItemHourlyArgs
    Hourly policy item. See below
    PolicyItemMonthlies []CloudBackupSchedulePolicyItemMonthlyArgs
    Monthly policy item. See below
    PolicyItemWeeklies []CloudBackupSchedulePolicyItemWeeklyArgs
    Weekly policy item. See below
    PolicyItemYearlies []CloudBackupSchedulePolicyItemYearlyArgs
    Yearly policy item. See below
    ProjectId string
    The unique identifier of the project for the Atlas cluster.
    ReferenceHourOfDay int
    UTC Hour of day between 0 and 23, inclusive, representing which hour of the day that Atlas takes snapshots for backup policy items.
    ReferenceMinuteOfHour int
    UTC Minutes after reference_hour_of_day that Atlas takes snapshots for backup policy items. Must be between 0 and 59, inclusive.
    RestoreWindowDays int
    Number of days back in time you can restore to with point-in-time accuracy. Must be a positive, non-zero integer.
    UpdateSnapshots bool

    Specify true to apply the retention changes in the updated backup policy to snapshots that Atlas took previously.

    Note This parameter does not return updates on return from API, this is a feature of the MongoDB Atlas Admin API itself and not Terraform. For more details about this resource see Cloud Backup Schedule.

    UseOrgAndGroupNamesInExportPrefix bool
    Specify true to use organization and project names instead of organization and project UUIDs in the path for the metadata files that Atlas uploads to your bucket after it finishes exporting the snapshots. To learn more about the metadata files that Atlas uploads, see Export Cloud Backup Snapshot.
    autoExportEnabled Boolean
    Flag that indicates whether MongoDB Cloud automatically exports Cloud Backup Snapshots to the Export Bucket. Value can be one of the following:

    • true - Enables automatic export of cloud backup snapshots to the Export Bucket.
    • false - Disables automatic export of cloud backup snapshots to the Export Bucket. (default)
    clusterId String
    Unique identifier of the Atlas cluster.
    clusterName String
    The name of the Atlas cluster that contains the snapshot backup policy you want to retrieve.
    copySettings List<CloudBackupScheduleCopySetting>
    List that contains a document for each copy setting item in the desired backup policy. See below
    export CloudBackupScheduleExport
    Policy for automatically exporting Cloud Backup Snapshots. See below
    idPolicy String
    Unique identifier of the backup policy.
    nextSnapshot String
    Timestamp in the number of seconds that have elapsed since the UNIX epoch when Atlas takes the next snapshot.
    policyItemDaily CloudBackupSchedulePolicyItemDaily
    Daily policy item. See below
    policyItemHourly CloudBackupSchedulePolicyItemHourly
    Hourly policy item. See below
    policyItemMonthlies List<CloudBackupSchedulePolicyItemMonthly>
    Monthly policy item. See below
    policyItemWeeklies List<CloudBackupSchedulePolicyItemWeekly>
    Weekly policy item. See below
    policyItemYearlies List<CloudBackupSchedulePolicyItemYearly>
    Yearly policy item. See below
    projectId String
    The unique identifier of the project for the Atlas cluster.
    referenceHourOfDay Integer
    UTC Hour of day between 0 and 23, inclusive, representing which hour of the day that Atlas takes snapshots for backup policy items.
    referenceMinuteOfHour Integer
    UTC Minutes after reference_hour_of_day that Atlas takes snapshots for backup policy items. Must be between 0 and 59, inclusive.
    restoreWindowDays Integer
    Number of days back in time you can restore to with point-in-time accuracy. Must be a positive, non-zero integer.
    updateSnapshots Boolean

    Specify true to apply the retention changes in the updated backup policy to snapshots that Atlas took previously.

    Note This parameter does not return updates on return from API, this is a feature of the MongoDB Atlas Admin API itself and not Terraform. For more details about this resource see Cloud Backup Schedule.

    useOrgAndGroupNamesInExportPrefix Boolean
    Specify true to use organization and project names instead of organization and project UUIDs in the path for the metadata files that Atlas uploads to your bucket after it finishes exporting the snapshots. To learn more about the metadata files that Atlas uploads, see Export Cloud Backup Snapshot.
    autoExportEnabled boolean
    Flag that indicates whether MongoDB Cloud automatically exports Cloud Backup Snapshots to the Export Bucket. Value can be one of the following:

    • true - Enables automatic export of cloud backup snapshots to the Export Bucket.
    • false - Disables automatic export of cloud backup snapshots to the Export Bucket. (default)
    clusterId string
    Unique identifier of the Atlas cluster.
    clusterName string
    The name of the Atlas cluster that contains the snapshot backup policy you want to retrieve.
    copySettings CloudBackupScheduleCopySetting[]
    List that contains a document for each copy setting item in the desired backup policy. See below
    export CloudBackupScheduleExport
    Policy for automatically exporting Cloud Backup Snapshots. See below
    idPolicy string
    Unique identifier of the backup policy.
    nextSnapshot string
    Timestamp in the number of seconds that have elapsed since the UNIX epoch when Atlas takes the next snapshot.
    policyItemDaily CloudBackupSchedulePolicyItemDaily
    Daily policy item. See below
    policyItemHourly CloudBackupSchedulePolicyItemHourly
    Hourly policy item. See below
    policyItemMonthlies CloudBackupSchedulePolicyItemMonthly[]
    Monthly policy item. See below
    policyItemWeeklies CloudBackupSchedulePolicyItemWeekly[]
    Weekly policy item. See below
    policyItemYearlies CloudBackupSchedulePolicyItemYearly[]
    Yearly policy item. See below
    projectId string
    The unique identifier of the project for the Atlas cluster.
    referenceHourOfDay number
    UTC Hour of day between 0 and 23, inclusive, representing which hour of the day that Atlas takes snapshots for backup policy items.
    referenceMinuteOfHour number
    UTC Minutes after reference_hour_of_day that Atlas takes snapshots for backup policy items. Must be between 0 and 59, inclusive.
    restoreWindowDays number
    Number of days back in time you can restore to with point-in-time accuracy. Must be a positive, non-zero integer.
    updateSnapshots boolean

    Specify true to apply the retention changes in the updated backup policy to snapshots that Atlas took previously.

    Note This parameter does not return updates on return from API, this is a feature of the MongoDB Atlas Admin API itself and not Terraform. For more details about this resource see Cloud Backup Schedule.

    useOrgAndGroupNamesInExportPrefix boolean
    Specify true to use organization and project names instead of organization and project UUIDs in the path for the metadata files that Atlas uploads to your bucket after it finishes exporting the snapshots. To learn more about the metadata files that Atlas uploads, see Export Cloud Backup Snapshot.
    auto_export_enabled bool
    Flag that indicates whether MongoDB Cloud automatically exports Cloud Backup Snapshots to the Export Bucket. Value can be one of the following:

    • true - Enables automatic export of cloud backup snapshots to the Export Bucket.
    • false - Disables automatic export of cloud backup snapshots to the Export Bucket. (default)
    cluster_id str
    Unique identifier of the Atlas cluster.
    cluster_name str
    The name of the Atlas cluster that contains the snapshot backup policy you want to retrieve.
    copy_settings Sequence[CloudBackupScheduleCopySettingArgs]
    List that contains a document for each copy setting item in the desired backup policy. See below
    export CloudBackupScheduleExportArgs
    Policy for automatically exporting Cloud Backup Snapshots. See below
    id_policy str
    Unique identifier of the backup policy.
    next_snapshot str
    Timestamp in the number of seconds that have elapsed since the UNIX epoch when Atlas takes the next snapshot.
    policy_item_daily CloudBackupSchedulePolicyItemDailyArgs
    Daily policy item. See below
    policy_item_hourly CloudBackupSchedulePolicyItemHourlyArgs
    Hourly policy item. See below
    policy_item_monthlies Sequence[CloudBackupSchedulePolicyItemMonthlyArgs]
    Monthly policy item. See below
    policy_item_weeklies Sequence[CloudBackupSchedulePolicyItemWeeklyArgs]
    Weekly policy item. See below
    policy_item_yearlies Sequence[CloudBackupSchedulePolicyItemYearlyArgs]
    Yearly policy item. See below
    project_id str
    The unique identifier of the project for the Atlas cluster.
    reference_hour_of_day int
    UTC Hour of day between 0 and 23, inclusive, representing which hour of the day that Atlas takes snapshots for backup policy items.
    reference_minute_of_hour int
    UTC Minutes after reference_hour_of_day that Atlas takes snapshots for backup policy items. Must be between 0 and 59, inclusive.
    restore_window_days int
    Number of days back in time you can restore to with point-in-time accuracy. Must be a positive, non-zero integer.
    update_snapshots bool

    Specify true to apply the retention changes in the updated backup policy to snapshots that Atlas took previously.

    Note This parameter does not return updates on return from API, this is a feature of the MongoDB Atlas Admin API itself and not Terraform. For more details about this resource see Cloud Backup Schedule.

    use_org_and_group_names_in_export_prefix bool
    Specify true to use organization and project names instead of organization and project UUIDs in the path for the metadata files that Atlas uploads to your bucket after it finishes exporting the snapshots. To learn more about the metadata files that Atlas uploads, see Export Cloud Backup Snapshot.
    autoExportEnabled Boolean
    Flag that indicates whether MongoDB Cloud automatically exports Cloud Backup Snapshots to the Export Bucket. Value can be one of the following:

    • true - Enables automatic export of cloud backup snapshots to the Export Bucket.
    • false - Disables automatic export of cloud backup snapshots to the Export Bucket. (default)
    clusterId String
    Unique identifier of the Atlas cluster.
    clusterName String
    The name of the Atlas cluster that contains the snapshot backup policy you want to retrieve.
    copySettings List<Property Map>
    List that contains a document for each copy setting item in the desired backup policy. See below
    export Property Map
    Policy for automatically exporting Cloud Backup Snapshots. See below
    idPolicy String
    Unique identifier of the backup policy.
    nextSnapshot String
    Timestamp in the number of seconds that have elapsed since the UNIX epoch when Atlas takes the next snapshot.
    policyItemDaily Property Map
    Daily policy item. See below
    policyItemHourly Property Map
    Hourly policy item. See below
    policyItemMonthlies List<Property Map>
    Monthly policy item. See below
    policyItemWeeklies List<Property Map>
    Weekly policy item. See below
    policyItemYearlies List<Property Map>
    Yearly policy item. See below
    projectId String
    The unique identifier of the project for the Atlas cluster.
    referenceHourOfDay Number
    UTC Hour of day between 0 and 23, inclusive, representing which hour of the day that Atlas takes snapshots for backup policy items.
    referenceMinuteOfHour Number
    UTC Minutes after reference_hour_of_day that Atlas takes snapshots for backup policy items. Must be between 0 and 59, inclusive.
    restoreWindowDays Number
    Number of days back in time you can restore to with point-in-time accuracy. Must be a positive, non-zero integer.
    updateSnapshots Boolean

    Specify true to apply the retention changes in the updated backup policy to snapshots that Atlas took previously.

    Note This parameter does not return updates on return from API, this is a feature of the MongoDB Atlas Admin API itself and not Terraform. For more details about this resource see Cloud Backup Schedule.

    useOrgAndGroupNamesInExportPrefix Boolean
    Specify true to use organization and project names instead of organization and project UUIDs in the path for the metadata files that Atlas uploads to your bucket after it finishes exporting the snapshots. To learn more about the metadata files that Atlas uploads, see Export Cloud Backup Snapshot.

    Supporting Types

    CloudBackupScheduleCopySetting, CloudBackupScheduleCopySettingArgs

    CloudProvider string
    Human-readable label that identifies the cloud provider that stores the snapshot copy. i.e. "AWS" "AZURE" "GCP"
    Frequencies List<string>
    List that describes which types of snapshots to copy. i.e. "HOURLY" "DAILY" "WEEKLY" "MONTHLY" "ON_DEMAND"
    RegionName string
    Target region to copy snapshots belonging to replicationSpecId to. Please supply the 'Atlas Region' which can be found under https://www.mongodb.com/docs/atlas/reference/cloud-providers/ 'regions' link
    ShouldCopyOplogs bool
    Flag that indicates whether to copy the oplogs to the target region. You can use the oplogs to perform point-in-time restores.
    ZoneId string
    Unique 24-hexadecimal digit string that identifies the zone in a cluster. For global clusters, there can be multiple zones to choose from. For sharded clusters and replica set clusters, there is only one zone in the cluster. To find appropriate value for zone_id, do a GET request to Return One Cluster from One Project and consult the replicationSpecs array Return One Cluster From One Project. Alternately, use mongodbatlas.AdvancedCluster data source or resource and reference replication_specs.#.zone_id.
    CloudProvider string
    Human-readable label that identifies the cloud provider that stores the snapshot copy. i.e. "AWS" "AZURE" "GCP"
    Frequencies []string
    List that describes which types of snapshots to copy. i.e. "HOURLY" "DAILY" "WEEKLY" "MONTHLY" "ON_DEMAND"
    RegionName string
    Target region to copy snapshots belonging to replicationSpecId to. Please supply the 'Atlas Region' which can be found under https://www.mongodb.com/docs/atlas/reference/cloud-providers/ 'regions' link
    ShouldCopyOplogs bool
    Flag that indicates whether to copy the oplogs to the target region. You can use the oplogs to perform point-in-time restores.
    ZoneId string
    Unique 24-hexadecimal digit string that identifies the zone in a cluster. For global clusters, there can be multiple zones to choose from. For sharded clusters and replica set clusters, there is only one zone in the cluster. To find appropriate value for zone_id, do a GET request to Return One Cluster from One Project and consult the replicationSpecs array Return One Cluster From One Project. Alternately, use mongodbatlas.AdvancedCluster data source or resource and reference replication_specs.#.zone_id.
    cloudProvider String
    Human-readable label that identifies the cloud provider that stores the snapshot copy. i.e. "AWS" "AZURE" "GCP"
    frequencies List<String>
    List that describes which types of snapshots to copy. i.e. "HOURLY" "DAILY" "WEEKLY" "MONTHLY" "ON_DEMAND"
    regionName String
    Target region to copy snapshots belonging to replicationSpecId to. Please supply the 'Atlas Region' which can be found under https://www.mongodb.com/docs/atlas/reference/cloud-providers/ 'regions' link
    shouldCopyOplogs Boolean
    Flag that indicates whether to copy the oplogs to the target region. You can use the oplogs to perform point-in-time restores.
    zoneId String
    Unique 24-hexadecimal digit string that identifies the zone in a cluster. For global clusters, there can be multiple zones to choose from. For sharded clusters and replica set clusters, there is only one zone in the cluster. To find appropriate value for zone_id, do a GET request to Return One Cluster from One Project and consult the replicationSpecs array Return One Cluster From One Project. Alternately, use mongodbatlas.AdvancedCluster data source or resource and reference replication_specs.#.zone_id.
    cloudProvider string
    Human-readable label that identifies the cloud provider that stores the snapshot copy. i.e. "AWS" "AZURE" "GCP"
    frequencies string[]
    List that describes which types of snapshots to copy. i.e. "HOURLY" "DAILY" "WEEKLY" "MONTHLY" "ON_DEMAND"
    regionName string
    Target region to copy snapshots belonging to replicationSpecId to. Please supply the 'Atlas Region' which can be found under https://www.mongodb.com/docs/atlas/reference/cloud-providers/ 'regions' link
    shouldCopyOplogs boolean
    Flag that indicates whether to copy the oplogs to the target region. You can use the oplogs to perform point-in-time restores.
    zoneId string
    Unique 24-hexadecimal digit string that identifies the zone in a cluster. For global clusters, there can be multiple zones to choose from. For sharded clusters and replica set clusters, there is only one zone in the cluster. To find appropriate value for zone_id, do a GET request to Return One Cluster from One Project and consult the replicationSpecs array Return One Cluster From One Project. Alternately, use mongodbatlas.AdvancedCluster data source or resource and reference replication_specs.#.zone_id.
    cloud_provider str
    Human-readable label that identifies the cloud provider that stores the snapshot copy. i.e. "AWS" "AZURE" "GCP"
    frequencies Sequence[str]
    List that describes which types of snapshots to copy. i.e. "HOURLY" "DAILY" "WEEKLY" "MONTHLY" "ON_DEMAND"
    region_name str
    Target region to copy snapshots belonging to replicationSpecId to. Please supply the 'Atlas Region' which can be found under https://www.mongodb.com/docs/atlas/reference/cloud-providers/ 'regions' link
    should_copy_oplogs bool
    Flag that indicates whether to copy the oplogs to the target region. You can use the oplogs to perform point-in-time restores.
    zone_id str
    Unique 24-hexadecimal digit string that identifies the zone in a cluster. For global clusters, there can be multiple zones to choose from. For sharded clusters and replica set clusters, there is only one zone in the cluster. To find appropriate value for zone_id, do a GET request to Return One Cluster from One Project and consult the replicationSpecs array Return One Cluster From One Project. Alternately, use mongodbatlas.AdvancedCluster data source or resource and reference replication_specs.#.zone_id.
    cloudProvider String
    Human-readable label that identifies the cloud provider that stores the snapshot copy. i.e. "AWS" "AZURE" "GCP"
    frequencies List<String>
    List that describes which types of snapshots to copy. i.e. "HOURLY" "DAILY" "WEEKLY" "MONTHLY" "ON_DEMAND"
    regionName String
    Target region to copy snapshots belonging to replicationSpecId to. Please supply the 'Atlas Region' which can be found under https://www.mongodb.com/docs/atlas/reference/cloud-providers/ 'regions' link
    shouldCopyOplogs Boolean
    Flag that indicates whether to copy the oplogs to the target region. You can use the oplogs to perform point-in-time restores.
    zoneId String
    Unique 24-hexadecimal digit string that identifies the zone in a cluster. For global clusters, there can be multiple zones to choose from. For sharded clusters and replica set clusters, there is only one zone in the cluster. To find appropriate value for zone_id, do a GET request to Return One Cluster from One Project and consult the replicationSpecs array Return One Cluster From One Project. Alternately, use mongodbatlas.AdvancedCluster data source or resource and reference replication_specs.#.zone_id.

    CloudBackupScheduleExport, CloudBackupScheduleExportArgs

    ExportBucketId string
    Unique identifier of the mongodbatlas.CloudBackupSnapshotExportBucket export_bucket_id value.
    FrequencyType string
    Frequency associated with the export snapshot item: weekly, monthly, yearly, daily (requires reaching out to Customer Support)
    ExportBucketId string
    Unique identifier of the mongodbatlas.CloudBackupSnapshotExportBucket export_bucket_id value.
    FrequencyType string
    Frequency associated with the export snapshot item: weekly, monthly, yearly, daily (requires reaching out to Customer Support)
    exportBucketId String
    Unique identifier of the mongodbatlas.CloudBackupSnapshotExportBucket export_bucket_id value.
    frequencyType String
    Frequency associated with the export snapshot item: weekly, monthly, yearly, daily (requires reaching out to Customer Support)
    exportBucketId string
    Unique identifier of the mongodbatlas.CloudBackupSnapshotExportBucket export_bucket_id value.
    frequencyType string
    Frequency associated with the export snapshot item: weekly, monthly, yearly, daily (requires reaching out to Customer Support)
    export_bucket_id str
    Unique identifier of the mongodbatlas.CloudBackupSnapshotExportBucket export_bucket_id value.
    frequency_type str
    Frequency associated with the export snapshot item: weekly, monthly, yearly, daily (requires reaching out to Customer Support)
    exportBucketId String
    Unique identifier of the mongodbatlas.CloudBackupSnapshotExportBucket export_bucket_id value.
    frequencyType String
    Frequency associated with the export snapshot item: weekly, monthly, yearly, daily (requires reaching out to Customer Support)

    CloudBackupSchedulePolicyItemDaily, CloudBackupSchedulePolicyItemDailyArgs

    FrequencyInterval int
    Desired frequency of the new backup policy item specified by frequency_type (daily in this case). The only supported value for daily policies is 1 day.
    RetentionUnit string
    Scope of the backup policy item: days, weeks, months, or years.
    RetentionValue int
    Value to associate with retention_unit. Note that for less frequent policy items, Atlas requires that you specify a retention period greater than or equal to the retention period specified for more frequent policy items. For example: If the hourly policy item specifies a retention of two days, the daily retention policy must specify two days or greater.
    FrequencyType string
    Frequency associated with the backup policy item. For daily policies, the frequency type is defined as daily. 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.
    FrequencyInterval int
    Desired frequency of the new backup policy item specified by frequency_type (daily in this case). The only supported value for daily policies is 1 day.
    RetentionUnit string
    Scope of the backup policy item: days, weeks, months, or years.
    RetentionValue int
    Value to associate with retention_unit. Note that for less frequent policy items, Atlas requires that you specify a retention period greater than or equal to the retention period specified for more frequent policy items. For example: If the hourly policy item specifies a retention of two days, the daily retention policy must specify two days or greater.
    FrequencyType string
    Frequency associated with the backup policy item. For daily policies, the frequency type is defined as daily. 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.
    frequencyInterval Integer
    Desired frequency of the new backup policy item specified by frequency_type (daily in this case). The only supported value for daily policies is 1 day.
    retentionUnit String
    Scope of the backup policy item: days, weeks, months, or years.
    retentionValue Integer
    Value to associate with retention_unit. Note that for less frequent policy items, Atlas requires that you specify a retention period greater than or equal to the retention period specified for more frequent policy items. For example: If the hourly policy item specifies a retention of two days, the daily retention policy must specify two days or greater.
    frequencyType String
    Frequency associated with the backup policy item. For daily policies, the frequency type is defined as daily. 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.
    frequencyInterval number
    Desired frequency of the new backup policy item specified by frequency_type (daily in this case). The only supported value for daily policies is 1 day.
    retentionUnit string
    Scope of the backup policy item: days, weeks, months, or years.
    retentionValue number
    Value to associate with retention_unit. Note that for less frequent policy items, Atlas requires that you specify a retention period greater than or equal to the retention period specified for more frequent policy items. For example: If the hourly policy item specifies a retention of two days, the daily retention policy must specify two days or greater.
    frequencyType string
    Frequency associated with the backup policy item. For daily policies, the frequency type is defined as daily. 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.
    frequency_interval int
    Desired frequency of the new backup policy item specified by frequency_type (daily in this case). The only supported value for daily policies is 1 day.
    retention_unit str
    Scope of the backup policy item: days, weeks, months, or years.
    retention_value int
    Value to associate with retention_unit. Note that for less frequent policy items, Atlas requires that you specify a retention period greater than or equal to the retention period specified for more frequent policy items. For example: If the hourly policy item specifies a retention of two days, the daily retention policy must specify two days or greater.
    frequency_type str
    Frequency associated with the backup policy item. For daily policies, the frequency type is defined as daily. 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.
    frequencyInterval Number
    Desired frequency of the new backup policy item specified by frequency_type (daily in this case). The only supported value for daily policies is 1 day.
    retentionUnit String
    Scope of the backup policy item: days, weeks, months, or years.
    retentionValue Number
    Value to associate with retention_unit. Note that for less frequent policy items, Atlas requires that you specify a retention period greater than or equal to the retention period specified for more frequent policy items. For example: If the hourly policy item specifies a retention of two days, the daily retention policy must specify two days or greater.
    frequencyType String
    Frequency associated with the backup policy item. For daily policies, the frequency type is defined as daily. 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.

    CloudBackupSchedulePolicyItemHourly, CloudBackupSchedulePolicyItemHourlyArgs

    FrequencyInterval int
    Desired frequency of the new backup policy item specified by frequency_type (hourly in this case). The supported values for hourly policies are 1, 2, 4, 6, 8 or 12 hours. Note that 12 hours is the only accepted value for NVMe clusters.
    RetentionUnit string
    Scope of the backup policy item: days, weeks, months, or years.
    RetentionValue int
    Value to associate with retention_unit.
    FrequencyType string
    Frequency associated with the backup policy item. For hourly policies, the frequency type is defined as hourly. 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.
    FrequencyInterval int
    Desired frequency of the new backup policy item specified by frequency_type (hourly in this case). The supported values for hourly policies are 1, 2, 4, 6, 8 or 12 hours. Note that 12 hours is the only accepted value for NVMe clusters.
    RetentionUnit string
    Scope of the backup policy item: days, weeks, months, or years.
    RetentionValue int
    Value to associate with retention_unit.
    FrequencyType string
    Frequency associated with the backup policy item. For hourly policies, the frequency type is defined as hourly. 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.
    frequencyInterval Integer
    Desired frequency of the new backup policy item specified by frequency_type (hourly in this case). The supported values for hourly policies are 1, 2, 4, 6, 8 or 12 hours. Note that 12 hours is the only accepted value for NVMe clusters.
    retentionUnit String
    Scope of the backup policy item: days, weeks, months, or years.
    retentionValue Integer
    Value to associate with retention_unit.
    frequencyType String
    Frequency associated with the backup policy item. For hourly policies, the frequency type is defined as hourly. 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.
    frequencyInterval number
    Desired frequency of the new backup policy item specified by frequency_type (hourly in this case). The supported values for hourly policies are 1, 2, 4, 6, 8 or 12 hours. Note that 12 hours is the only accepted value for NVMe clusters.
    retentionUnit string
    Scope of the backup policy item: days, weeks, months, or years.
    retentionValue number
    Value to associate with retention_unit.
    frequencyType string
    Frequency associated with the backup policy item. For hourly policies, the frequency type is defined as hourly. 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.
    frequency_interval int
    Desired frequency of the new backup policy item specified by frequency_type (hourly in this case). The supported values for hourly policies are 1, 2, 4, 6, 8 or 12 hours. Note that 12 hours is the only accepted value for NVMe clusters.
    retention_unit str
    Scope of the backup policy item: days, weeks, months, or years.
    retention_value int
    Value to associate with retention_unit.
    frequency_type str
    Frequency associated with the backup policy item. For hourly policies, the frequency type is defined as hourly. 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.
    frequencyInterval Number
    Desired frequency of the new backup policy item specified by frequency_type (hourly in this case). The supported values for hourly policies are 1, 2, 4, 6, 8 or 12 hours. Note that 12 hours is the only accepted value for NVMe clusters.
    retentionUnit String
    Scope of the backup policy item: days, weeks, months, or years.
    retentionValue Number
    Value to associate with retention_unit.
    frequencyType String
    Frequency associated with the backup policy item. For hourly policies, the frequency type is defined as hourly. 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.

    CloudBackupSchedulePolicyItemMonthly, CloudBackupSchedulePolicyItemMonthlyArgs

    FrequencyInterval int
    Desired frequency of the new backup policy item specified by frequency_type (monthly in this case). The supported values for weekly policies are
    RetentionUnit string
    Scope of the backup policy item: days, weeks, months, or years.
    RetentionValue int
    Value to associate with retention_unit. Monthly policy must have retention days of at least 31 days or 5 weeks or 1 month. Note that for less frequent policy items, Atlas requires that you specify a retention period greater than or equal to the retention period specified for more frequent policy items. For example: If the weekly policy item specifies a retention of two weeks, the montly retention policy must specify two weeks or greater.
    FrequencyType string
    Frequency associated with the backup policy item. For monthly policies, the frequency type is defined as monthly. 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.
    FrequencyInterval int
    Desired frequency of the new backup policy item specified by frequency_type (monthly in this case). The supported values for weekly policies are
    RetentionUnit string
    Scope of the backup policy item: days, weeks, months, or years.
    RetentionValue int
    Value to associate with retention_unit. Monthly policy must have retention days of at least 31 days or 5 weeks or 1 month. Note that for less frequent policy items, Atlas requires that you specify a retention period greater than or equal to the retention period specified for more frequent policy items. For example: If the weekly policy item specifies a retention of two weeks, the montly retention policy must specify two weeks or greater.
    FrequencyType string
    Frequency associated with the backup policy item. For monthly policies, the frequency type is defined as monthly. 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.
    frequencyInterval Integer
    Desired frequency of the new backup policy item specified by frequency_type (monthly in this case). The supported values for weekly policies are
    retentionUnit String
    Scope of the backup policy item: days, weeks, months, or years.
    retentionValue Integer
    Value to associate with retention_unit. Monthly policy must have retention days of at least 31 days or 5 weeks or 1 month. Note that for less frequent policy items, Atlas requires that you specify a retention period greater than or equal to the retention period specified for more frequent policy items. For example: If the weekly policy item specifies a retention of two weeks, the montly retention policy must specify two weeks or greater.
    frequencyType String
    Frequency associated with the backup policy item. For monthly policies, the frequency type is defined as monthly. 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.
    frequencyInterval number
    Desired frequency of the new backup policy item specified by frequency_type (monthly in this case). The supported values for weekly policies are
    retentionUnit string
    Scope of the backup policy item: days, weeks, months, or years.
    retentionValue number
    Value to associate with retention_unit. Monthly policy must have retention days of at least 31 days or 5 weeks or 1 month. Note that for less frequent policy items, Atlas requires that you specify a retention period greater than or equal to the retention period specified for more frequent policy items. For example: If the weekly policy item specifies a retention of two weeks, the montly retention policy must specify two weeks or greater.
    frequencyType string
    Frequency associated with the backup policy item. For monthly policies, the frequency type is defined as monthly. 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.
    frequency_interval int
    Desired frequency of the new backup policy item specified by frequency_type (monthly in this case). The supported values for weekly policies are
    retention_unit str
    Scope of the backup policy item: days, weeks, months, or years.
    retention_value int
    Value to associate with retention_unit. Monthly policy must have retention days of at least 31 days or 5 weeks or 1 month. Note that for less frequent policy items, Atlas requires that you specify a retention period greater than or equal to the retention period specified for more frequent policy items. For example: If the weekly policy item specifies a retention of two weeks, the montly retention policy must specify two weeks or greater.
    frequency_type str
    Frequency associated with the backup policy item. For monthly policies, the frequency type is defined as monthly. 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.
    frequencyInterval Number
    Desired frequency of the new backup policy item specified by frequency_type (monthly in this case). The supported values for weekly policies are
    retentionUnit String
    Scope of the backup policy item: days, weeks, months, or years.
    retentionValue Number
    Value to associate with retention_unit. Monthly policy must have retention days of at least 31 days or 5 weeks or 1 month. Note that for less frequent policy items, Atlas requires that you specify a retention period greater than or equal to the retention period specified for more frequent policy items. For example: If the weekly policy item specifies a retention of two weeks, the montly retention policy must specify two weeks or greater.
    frequencyType String
    Frequency associated with the backup policy item. For monthly policies, the frequency type is defined as monthly. 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.

    CloudBackupSchedulePolicyItemWeekly, CloudBackupSchedulePolicyItemWeeklyArgs

    FrequencyInterval int
    Desired frequency of the new backup policy item specified by frequency_type (weekly in this case). The supported values for weekly policies are 1 through 7, where 1 represents Monday and 7 represents Sunday.
    RetentionUnit string
    Scope of the backup policy item: days, weeks, months, or years.
    RetentionValue int
    Value to associate with retention_unit. Weekly policy must have retention of at least 7 days or 1 week. Note that for less frequent policy items, Atlas requires that you specify a retention period greater than or equal to the retention period specified for more frequent policy items. For example: If the daily policy item specifies a retention of two weeks, the weekly retention policy must specify two weeks or greater.
    FrequencyType string
    Frequency associated with the backup policy item. For weekly policies, the frequency type is defined as weekly. 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.
    FrequencyInterval int
    Desired frequency of the new backup policy item specified by frequency_type (weekly in this case). The supported values for weekly policies are 1 through 7, where 1 represents Monday and 7 represents Sunday.
    RetentionUnit string
    Scope of the backup policy item: days, weeks, months, or years.
    RetentionValue int
    Value to associate with retention_unit. Weekly policy must have retention of at least 7 days or 1 week. Note that for less frequent policy items, Atlas requires that you specify a retention period greater than or equal to the retention period specified for more frequent policy items. For example: If the daily policy item specifies a retention of two weeks, the weekly retention policy must specify two weeks or greater.
    FrequencyType string
    Frequency associated with the backup policy item. For weekly policies, the frequency type is defined as weekly. 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.
    frequencyInterval Integer
    Desired frequency of the new backup policy item specified by frequency_type (weekly in this case). The supported values for weekly policies are 1 through 7, where 1 represents Monday and 7 represents Sunday.
    retentionUnit String
    Scope of the backup policy item: days, weeks, months, or years.
    retentionValue Integer
    Value to associate with retention_unit. Weekly policy must have retention of at least 7 days or 1 week. Note that for less frequent policy items, Atlas requires that you specify a retention period greater than or equal to the retention period specified for more frequent policy items. For example: If the daily policy item specifies a retention of two weeks, the weekly retention policy must specify two weeks or greater.
    frequencyType String
    Frequency associated with the backup policy item. For weekly policies, the frequency type is defined as weekly. 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.
    frequencyInterval number
    Desired frequency of the new backup policy item specified by frequency_type (weekly in this case). The supported values for weekly policies are 1 through 7, where 1 represents Monday and 7 represents Sunday.
    retentionUnit string
    Scope of the backup policy item: days, weeks, months, or years.
    retentionValue number
    Value to associate with retention_unit. Weekly policy must have retention of at least 7 days or 1 week. Note that for less frequent policy items, Atlas requires that you specify a retention period greater than or equal to the retention period specified for more frequent policy items. For example: If the daily policy item specifies a retention of two weeks, the weekly retention policy must specify two weeks or greater.
    frequencyType string
    Frequency associated with the backup policy item. For weekly policies, the frequency type is defined as weekly. 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.
    frequency_interval int
    Desired frequency of the new backup policy item specified by frequency_type (weekly in this case). The supported values for weekly policies are 1 through 7, where 1 represents Monday and 7 represents Sunday.
    retention_unit str
    Scope of the backup policy item: days, weeks, months, or years.
    retention_value int
    Value to associate with retention_unit. Weekly policy must have retention of at least 7 days or 1 week. Note that for less frequent policy items, Atlas requires that you specify a retention period greater than or equal to the retention period specified for more frequent policy items. For example: If the daily policy item specifies a retention of two weeks, the weekly retention policy must specify two weeks or greater.
    frequency_type str
    Frequency associated with the backup policy item. For weekly policies, the frequency type is defined as weekly. 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.
    frequencyInterval Number
    Desired frequency of the new backup policy item specified by frequency_type (weekly in this case). The supported values for weekly policies are 1 through 7, where 1 represents Monday and 7 represents Sunday.
    retentionUnit String
    Scope of the backup policy item: days, weeks, months, or years.
    retentionValue Number
    Value to associate with retention_unit. Weekly policy must have retention of at least 7 days or 1 week. Note that for less frequent policy items, Atlas requires that you specify a retention period greater than or equal to the retention period specified for more frequent policy items. For example: If the daily policy item specifies a retention of two weeks, the weekly retention policy must specify two weeks or greater.
    frequencyType String
    Frequency associated with the backup policy item. For weekly policies, the frequency type is defined as weekly. 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.

    CloudBackupSchedulePolicyItemYearly, CloudBackupSchedulePolicyItemYearlyArgs

    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
    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.
    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.
    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
    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.
    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.
    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
    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.
    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.
    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
    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.
    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.
    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
    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.
    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.
    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
    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.
    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.

    Import

    Cloud Backup Schedule entries can be imported using project_id and cluster_name, in the format PROJECTID-CLUSTERNAME, e.g.

    $ pulumi import mongodbatlas:index/cloudBackupSchedule:CloudBackupSchedule test 5d0f1f73cf09a29120e173cf-MyClusterTest
    

    For more information see: MongoDB Atlas API Reference.

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

    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
    Viewing docs for MongoDB Atlas v4.5.0
    published on Thursday, Mar 12, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.