MongoDB Atlas v3.18.0 published on Thursday, Sep 12, 2024 by Pulumi
mongodbatlas.getBackupCompliancePolicy
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const myCluster = new mongodbatlas.AdvancedCluster("my_cluster", {
projectId: "<PROJECT-ID>",
name: "clusterTest",
clusterType: "REPLICASET",
backupEnabled: true,
replicationSpecs: [{
regionConfigs: [{
priority: 7,
providerName: "AWS",
regionName: "EU_CENTRAL_1",
electableSpecs: {
instanceSize: "M10",
nodeCount: 3,
},
}],
}],
});
const testCloudBackupSchedule = new mongodbatlas.CloudBackupSchedule("test", {
projectId: myCluster.projectId,
clusterName: myCluster.name,
referenceHourOfDay: 3,
referenceMinuteOfHour: 45,
restoreWindowDays: 4,
policyItemHourly: {
frequencyInterval: 1,
retentionUnit: "days",
retentionValue: 1,
},
policyItemDaily: {
frequencyInterval: 1,
retentionUnit: "days",
retentionValue: 2,
},
policyItemWeeklies: [{
frequencyInterval: 4,
retentionUnit: "weeks",
retentionValue: 3,
}],
policyItemMonthlies: [{
frequencyInterval: 5,
retentionUnit: "months",
retentionValue: 4,
}],
policyItemYearlies: [{
frequencyInterval: 1,
retentionUnit: "years",
retentionValue: 1,
}],
});
const test = mongodbatlas.getCloudBackupScheduleOutput({
projectId: testCloudBackupSchedule.projectId,
clusterName: testCloudBackupSchedule.clusterName,
});
const backupPolicy = mongodbatlas.getBackupCompliancePolicyOutput({
projectId: testCloudBackupSchedule.id,
});
const backupPolicyBackupCompliancePolicy = new mongodbatlas.BackupCompliancePolicy("backup_policy", {
projectId: "<PROJECT-ID>",
authorizedEmail: "user@email.com",
authorizedUserFirstName: "First",
authorizedUserLastName: "Last",
copyProtectionEnabled: false,
pitEnabled: false,
encryptionAtRestEnabled: false,
restoreWindowDays: 7,
onDemandPolicyItem: {
frequencyInterval: 0,
retentionUnit: "days",
retentionValue: 3,
},
policyItemHourly: {
frequencyInterval: 6,
retentionUnit: "days",
retentionValue: 7,
},
policyItemDaily: {
frequencyInterval: 0,
retentionUnit: "days",
retentionValue: 7,
},
policyItemWeeklies: [{
frequencyInterval: 0,
retentionUnit: "weeks",
retentionValue: 4,
}],
policyItemMonthlies: [{
frequencyInterval: 0,
retentionUnit: "months",
retentionValue: 12,
}],
policyItemYearlies: [{
frequencyInterval: 1,
retentionUnit: "years",
retentionValue: 1,
}],
});
import pulumi
import pulumi_mongodbatlas as mongodbatlas
my_cluster = mongodbatlas.AdvancedCluster("my_cluster",
project_id="<PROJECT-ID>",
name="clusterTest",
cluster_type="REPLICASET",
backup_enabled=True,
replication_specs=[{
"region_configs": [{
"priority": 7,
"provider_name": "AWS",
"region_name": "EU_CENTRAL_1",
"electable_specs": {
"instance_size": "M10",
"node_count": 3,
},
}],
}])
test_cloud_backup_schedule = mongodbatlas.CloudBackupSchedule("test",
project_id=my_cluster.project_id,
cluster_name=my_cluster.name,
reference_hour_of_day=3,
reference_minute_of_hour=45,
restore_window_days=4,
policy_item_hourly={
"frequency_interval": 1,
"retention_unit": "days",
"retention_value": 1,
},
policy_item_daily={
"frequency_interval": 1,
"retention_unit": "days",
"retention_value": 2,
},
policy_item_weeklies=[{
"frequency_interval": 4,
"retention_unit": "weeks",
"retention_value": 3,
}],
policy_item_monthlies=[{
"frequency_interval": 5,
"retention_unit": "months",
"retention_value": 4,
}],
policy_item_yearlies=[{
"frequency_interval": 1,
"retention_unit": "years",
"retention_value": 1,
}])
test = mongodbatlas.get_cloud_backup_schedule_output(project_id=test_cloud_backup_schedule.project_id,
cluster_name=test_cloud_backup_schedule.cluster_name)
backup_policy = mongodbatlas.get_backup_compliance_policy_output(project_id=test_cloud_backup_schedule.id)
backup_policy_backup_compliance_policy = mongodbatlas.BackupCompliancePolicy("backup_policy",
project_id="<PROJECT-ID>",
authorized_email="user@email.com",
authorized_user_first_name="First",
authorized_user_last_name="Last",
copy_protection_enabled=False,
pit_enabled=False,
encryption_at_rest_enabled=False,
restore_window_days=7,
on_demand_policy_item={
"frequency_interval": 0,
"retention_unit": "days",
"retention_value": 3,
},
policy_item_hourly={
"frequency_interval": 6,
"retention_unit": "days",
"retention_value": 7,
},
policy_item_daily={
"frequency_interval": 0,
"retention_unit": "days",
"retention_value": 7,
},
policy_item_weeklies=[{
"frequency_interval": 0,
"retention_unit": "weeks",
"retention_value": 4,
}],
policy_item_monthlies=[{
"frequency_interval": 0,
"retention_unit": "months",
"retention_value": 12,
}],
policy_item_yearlies=[{
"frequency_interval": 1,
"retention_unit": "years",
"retention_value": 1,
}])
package main
import (
"github.com/pulumi/pulumi-mongodbatlas/sdk/v3/go/mongodbatlas"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
myCluster, err := mongodbatlas.NewAdvancedCluster(ctx, "my_cluster", &mongodbatlas.AdvancedClusterArgs{
ProjectId: pulumi.String("<PROJECT-ID>"),
Name: pulumi.String("clusterTest"),
ClusterType: pulumi.String("REPLICASET"),
BackupEnabled: pulumi.Bool(true),
ReplicationSpecs: mongodbatlas.AdvancedClusterReplicationSpecArray{
&mongodbatlas.AdvancedClusterReplicationSpecArgs{
RegionConfigs: mongodbatlas.AdvancedClusterReplicationSpecRegionConfigArray{
&mongodbatlas.AdvancedClusterReplicationSpecRegionConfigArgs{
Priority: pulumi.Int(7),
ProviderName: pulumi.String("AWS"),
RegionName: pulumi.String("EU_CENTRAL_1"),
ElectableSpecs: &mongodbatlas.AdvancedClusterReplicationSpecRegionConfigElectableSpecsArgs{
InstanceSize: pulumi.String("M10"),
NodeCount: pulumi.Int(3),
},
},
},
},
},
})
if err != nil {
return err
}
testCloudBackupSchedule, err := mongodbatlas.NewCloudBackupSchedule(ctx, "test", &mongodbatlas.CloudBackupScheduleArgs{
ProjectId: myCluster.ProjectId,
ClusterName: myCluster.Name,
ReferenceHourOfDay: pulumi.Int(3),
ReferenceMinuteOfHour: pulumi.Int(45),
RestoreWindowDays: pulumi.Int(4),
PolicyItemHourly: &mongodbatlas.CloudBackupSchedulePolicyItemHourlyArgs{
FrequencyInterval: pulumi.Int(1),
RetentionUnit: pulumi.String("days"),
RetentionValue: pulumi.Int(1),
},
PolicyItemDaily: &mongodbatlas.CloudBackupSchedulePolicyItemDailyArgs{
FrequencyInterval: pulumi.Int(1),
RetentionUnit: pulumi.String("days"),
RetentionValue: pulumi.Int(2),
},
PolicyItemWeeklies: mongodbatlas.CloudBackupSchedulePolicyItemWeeklyArray{
&mongodbatlas.CloudBackupSchedulePolicyItemWeeklyArgs{
FrequencyInterval: pulumi.Int(4),
RetentionUnit: pulumi.String("weeks"),
RetentionValue: pulumi.Int(3),
},
},
PolicyItemMonthlies: mongodbatlas.CloudBackupSchedulePolicyItemMonthlyArray{
&mongodbatlas.CloudBackupSchedulePolicyItemMonthlyArgs{
FrequencyInterval: pulumi.Int(5),
RetentionUnit: pulumi.String("months"),
RetentionValue: pulumi.Int(4),
},
},
PolicyItemYearlies: mongodbatlas.CloudBackupSchedulePolicyItemYearlyArray{
&mongodbatlas.CloudBackupSchedulePolicyItemYearlyArgs{
FrequencyInterval: pulumi.Int(1),
RetentionUnit: pulumi.String("years"),
RetentionValue: pulumi.Int(1),
},
},
})
if err != nil {
return err
}
_ = mongodbatlas.LookupCloudBackupScheduleOutput(ctx, mongodbatlas.GetCloudBackupScheduleOutputArgs{
ProjectId: testCloudBackupSchedule.ProjectId,
ClusterName: testCloudBackupSchedule.ClusterName,
}, nil)
_ = mongodbatlas.LookupBackupCompliancePolicyOutput(ctx, mongodbatlas.GetBackupCompliancePolicyOutputArgs{
ProjectId: testCloudBackupSchedule.ID(),
}, nil)
_, err = mongodbatlas.NewBackupCompliancePolicy(ctx, "backup_policy", &mongodbatlas.BackupCompliancePolicyArgs{
ProjectId: pulumi.String("<PROJECT-ID>"),
AuthorizedEmail: pulumi.String("user@email.com"),
AuthorizedUserFirstName: pulumi.String("First"),
AuthorizedUserLastName: pulumi.String("Last"),
CopyProtectionEnabled: pulumi.Bool(false),
PitEnabled: pulumi.Bool(false),
EncryptionAtRestEnabled: pulumi.Bool(false),
RestoreWindowDays: pulumi.Int(7),
OnDemandPolicyItem: &mongodbatlas.BackupCompliancePolicyOnDemandPolicyItemArgs{
FrequencyInterval: pulumi.Int(0),
RetentionUnit: pulumi.String("days"),
RetentionValue: pulumi.Int(3),
},
PolicyItemHourly: &mongodbatlas.BackupCompliancePolicyPolicyItemHourlyArgs{
FrequencyInterval: pulumi.Int(6),
RetentionUnit: pulumi.String("days"),
RetentionValue: pulumi.Int(7),
},
PolicyItemDaily: &mongodbatlas.BackupCompliancePolicyPolicyItemDailyArgs{
FrequencyInterval: pulumi.Int(0),
RetentionUnit: pulumi.String("days"),
RetentionValue: pulumi.Int(7),
},
PolicyItemWeeklies: mongodbatlas.BackupCompliancePolicyPolicyItemWeeklyArray{
&mongodbatlas.BackupCompliancePolicyPolicyItemWeeklyArgs{
FrequencyInterval: pulumi.Int(0),
RetentionUnit: pulumi.String("weeks"),
RetentionValue: pulumi.Int(4),
},
},
PolicyItemMonthlies: mongodbatlas.BackupCompliancePolicyPolicyItemMonthlyArray{
&mongodbatlas.BackupCompliancePolicyPolicyItemMonthlyArgs{
FrequencyInterval: pulumi.Int(0),
RetentionUnit: pulumi.String("months"),
RetentionValue: pulumi.Int(12),
},
},
PolicyItemYearlies: mongodbatlas.BackupCompliancePolicyPolicyItemYearlyArray{
&mongodbatlas.BackupCompliancePolicyPolicyItemYearlyArgs{
FrequencyInterval: pulumi.Int(1),
RetentionUnit: pulumi.String("years"),
RetentionValue: pulumi.Int(1),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Mongodbatlas = Pulumi.Mongodbatlas;
return await Deployment.RunAsync(() =>
{
var myCluster = new Mongodbatlas.AdvancedCluster("my_cluster", new()
{
ProjectId = "<PROJECT-ID>",
Name = "clusterTest",
ClusterType = "REPLICASET",
BackupEnabled = true,
ReplicationSpecs = new[]
{
new Mongodbatlas.Inputs.AdvancedClusterReplicationSpecArgs
{
RegionConfigs = new[]
{
new Mongodbatlas.Inputs.AdvancedClusterReplicationSpecRegionConfigArgs
{
Priority = 7,
ProviderName = "AWS",
RegionName = "EU_CENTRAL_1",
ElectableSpecs = new Mongodbatlas.Inputs.AdvancedClusterReplicationSpecRegionConfigElectableSpecsArgs
{
InstanceSize = "M10",
NodeCount = 3,
},
},
},
},
},
});
var testCloudBackupSchedule = new Mongodbatlas.CloudBackupSchedule("test", new()
{
ProjectId = myCluster.ProjectId,
ClusterName = myCluster.Name,
ReferenceHourOfDay = 3,
ReferenceMinuteOfHour = 45,
RestoreWindowDays = 4,
PolicyItemHourly = new Mongodbatlas.Inputs.CloudBackupSchedulePolicyItemHourlyArgs
{
FrequencyInterval = 1,
RetentionUnit = "days",
RetentionValue = 1,
},
PolicyItemDaily = new Mongodbatlas.Inputs.CloudBackupSchedulePolicyItemDailyArgs
{
FrequencyInterval = 1,
RetentionUnit = "days",
RetentionValue = 2,
},
PolicyItemWeeklies = new[]
{
new Mongodbatlas.Inputs.CloudBackupSchedulePolicyItemWeeklyArgs
{
FrequencyInterval = 4,
RetentionUnit = "weeks",
RetentionValue = 3,
},
},
PolicyItemMonthlies = new[]
{
new Mongodbatlas.Inputs.CloudBackupSchedulePolicyItemMonthlyArgs
{
FrequencyInterval = 5,
RetentionUnit = "months",
RetentionValue = 4,
},
},
PolicyItemYearlies = new[]
{
new Mongodbatlas.Inputs.CloudBackupSchedulePolicyItemYearlyArgs
{
FrequencyInterval = 1,
RetentionUnit = "years",
RetentionValue = 1,
},
},
});
var test = Mongodbatlas.GetCloudBackupSchedule.Invoke(new()
{
ProjectId = testCloudBackupSchedule.ProjectId,
ClusterName = testCloudBackupSchedule.ClusterName,
});
var backupPolicy = Mongodbatlas.GetBackupCompliancePolicy.Invoke(new()
{
ProjectId = testCloudBackupSchedule.Id,
});
var backupPolicyBackupCompliancePolicy = new Mongodbatlas.BackupCompliancePolicy("backup_policy", new()
{
ProjectId = "<PROJECT-ID>",
AuthorizedEmail = "user@email.com",
AuthorizedUserFirstName = "First",
AuthorizedUserLastName = "Last",
CopyProtectionEnabled = false,
PitEnabled = false,
EncryptionAtRestEnabled = false,
RestoreWindowDays = 7,
OnDemandPolicyItem = new Mongodbatlas.Inputs.BackupCompliancePolicyOnDemandPolicyItemArgs
{
FrequencyInterval = 0,
RetentionUnit = "days",
RetentionValue = 3,
},
PolicyItemHourly = new Mongodbatlas.Inputs.BackupCompliancePolicyPolicyItemHourlyArgs
{
FrequencyInterval = 6,
RetentionUnit = "days",
RetentionValue = 7,
},
PolicyItemDaily = new Mongodbatlas.Inputs.BackupCompliancePolicyPolicyItemDailyArgs
{
FrequencyInterval = 0,
RetentionUnit = "days",
RetentionValue = 7,
},
PolicyItemWeeklies = new[]
{
new Mongodbatlas.Inputs.BackupCompliancePolicyPolicyItemWeeklyArgs
{
FrequencyInterval = 0,
RetentionUnit = "weeks",
RetentionValue = 4,
},
},
PolicyItemMonthlies = new[]
{
new Mongodbatlas.Inputs.BackupCompliancePolicyPolicyItemMonthlyArgs
{
FrequencyInterval = 0,
RetentionUnit = "months",
RetentionValue = 12,
},
},
PolicyItemYearlies = new[]
{
new Mongodbatlas.Inputs.BackupCompliancePolicyPolicyItemYearlyArgs
{
FrequencyInterval = 1,
RetentionUnit = "years",
RetentionValue = 1,
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.mongodbatlas.AdvancedCluster;
import com.pulumi.mongodbatlas.AdvancedClusterArgs;
import com.pulumi.mongodbatlas.inputs.AdvancedClusterReplicationSpecArgs;
import com.pulumi.mongodbatlas.CloudBackupSchedule;
import com.pulumi.mongodbatlas.CloudBackupScheduleArgs;
import com.pulumi.mongodbatlas.inputs.CloudBackupSchedulePolicyItemHourlyArgs;
import com.pulumi.mongodbatlas.inputs.CloudBackupSchedulePolicyItemDailyArgs;
import com.pulumi.mongodbatlas.inputs.CloudBackupSchedulePolicyItemWeeklyArgs;
import com.pulumi.mongodbatlas.inputs.CloudBackupSchedulePolicyItemMonthlyArgs;
import com.pulumi.mongodbatlas.inputs.CloudBackupSchedulePolicyItemYearlyArgs;
import com.pulumi.mongodbatlas.MongodbatlasFunctions;
import com.pulumi.mongodbatlas.inputs.GetCloudBackupScheduleArgs;
import com.pulumi.mongodbatlas.inputs.GetBackupCompliancePolicyArgs;
import com.pulumi.mongodbatlas.BackupCompliancePolicy;
import com.pulumi.mongodbatlas.BackupCompliancePolicyArgs;
import com.pulumi.mongodbatlas.inputs.BackupCompliancePolicyOnDemandPolicyItemArgs;
import com.pulumi.mongodbatlas.inputs.BackupCompliancePolicyPolicyItemHourlyArgs;
import com.pulumi.mongodbatlas.inputs.BackupCompliancePolicyPolicyItemDailyArgs;
import com.pulumi.mongodbatlas.inputs.BackupCompliancePolicyPolicyItemWeeklyArgs;
import com.pulumi.mongodbatlas.inputs.BackupCompliancePolicyPolicyItemMonthlyArgs;
import com.pulumi.mongodbatlas.inputs.BackupCompliancePolicyPolicyItemYearlyArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var myCluster = new AdvancedCluster("myCluster", AdvancedClusterArgs.builder()
.projectId("<PROJECT-ID>")
.name("clusterTest")
.clusterType("REPLICASET")
.backupEnabled(true)
.replicationSpecs(AdvancedClusterReplicationSpecArgs.builder()
.regionConfigs(AdvancedClusterReplicationSpecRegionConfigArgs.builder()
.priority(7)
.providerName("AWS")
.regionName("EU_CENTRAL_1")
.electableSpecs(AdvancedClusterReplicationSpecRegionConfigElectableSpecsArgs.builder()
.instanceSize("M10")
.nodeCount(3)
.build())
.build())
.build())
.build());
var testCloudBackupSchedule = new CloudBackupSchedule("testCloudBackupSchedule", CloudBackupScheduleArgs.builder()
.projectId(myCluster.projectId())
.clusterName(myCluster.name())
.referenceHourOfDay(3)
.referenceMinuteOfHour(45)
.restoreWindowDays(4)
.policyItemHourly(CloudBackupSchedulePolicyItemHourlyArgs.builder()
.frequencyInterval(1)
.retentionUnit("days")
.retentionValue(1)
.build())
.policyItemDaily(CloudBackupSchedulePolicyItemDailyArgs.builder()
.frequencyInterval(1)
.retentionUnit("days")
.retentionValue(2)
.build())
.policyItemWeeklies(CloudBackupSchedulePolicyItemWeeklyArgs.builder()
.frequencyInterval(4)
.retentionUnit("weeks")
.retentionValue(3)
.build())
.policyItemMonthlies(CloudBackupSchedulePolicyItemMonthlyArgs.builder()
.frequencyInterval(5)
.retentionUnit("months")
.retentionValue(4)
.build())
.policyItemYearlies(CloudBackupSchedulePolicyItemYearlyArgs.builder()
.frequencyInterval(1)
.retentionUnit("years")
.retentionValue(1)
.build())
.build());
final var test = MongodbatlasFunctions.getCloudBackupSchedule(GetCloudBackupScheduleArgs.builder()
.projectId(testCloudBackupSchedule.projectId())
.clusterName(testCloudBackupSchedule.clusterName())
.build());
final var backupPolicy = MongodbatlasFunctions.getBackupCompliancePolicy(GetBackupCompliancePolicyArgs.builder()
.projectId(testCloudBackupSchedule.id())
.build());
var backupPolicyBackupCompliancePolicy = new BackupCompliancePolicy("backupPolicyBackupCompliancePolicy", BackupCompliancePolicyArgs.builder()
.projectId("<PROJECT-ID>")
.authorizedEmail("user@email.com")
.authorizedUserFirstName("First")
.authorizedUserLastName("Last")
.copyProtectionEnabled(false)
.pitEnabled(false)
.encryptionAtRestEnabled(false)
.restoreWindowDays(7)
.onDemandPolicyItem(BackupCompliancePolicyOnDemandPolicyItemArgs.builder()
.frequencyInterval(0)
.retentionUnit("days")
.retentionValue(3)
.build())
.policyItemHourly(BackupCompliancePolicyPolicyItemHourlyArgs.builder()
.frequencyInterval(6)
.retentionUnit("days")
.retentionValue(7)
.build())
.policyItemDaily(BackupCompliancePolicyPolicyItemDailyArgs.builder()
.frequencyInterval(0)
.retentionUnit("days")
.retentionValue(7)
.build())
.policyItemWeeklies(BackupCompliancePolicyPolicyItemWeeklyArgs.builder()
.frequencyInterval(0)
.retentionUnit("weeks")
.retentionValue(4)
.build())
.policyItemMonthlies(BackupCompliancePolicyPolicyItemMonthlyArgs.builder()
.frequencyInterval(0)
.retentionUnit("months")
.retentionValue(12)
.build())
.policyItemYearlies(BackupCompliancePolicyPolicyItemYearlyArgs.builder()
.frequencyInterval(1)
.retentionUnit("years")
.retentionValue(1)
.build())
.build());
}
}
resources:
myCluster:
type: mongodbatlas:AdvancedCluster
name: my_cluster
properties:
projectId: <PROJECT-ID>
name: clusterTest
clusterType: REPLICASET
backupEnabled: true # enable cloud backup snapshots
replicationSpecs:
- regionConfigs:
- priority: 7
providerName: AWS
regionName: EU_CENTRAL_1
electableSpecs:
instanceSize: M10
nodeCount: 3
testCloudBackupSchedule:
type: mongodbatlas:CloudBackupSchedule
name: test
properties:
projectId: ${myCluster.projectId}
clusterName: ${myCluster.name}
referenceHourOfDay: 3
referenceMinuteOfHour: 45
restoreWindowDays: 4 # This will now add the desired policy items to the existing mongodbatlas_cloud_backup_schedule resource
policyItemHourly:
frequencyInterval: 1
retentionUnit: days
retentionValue: 1
policyItemDaily:
frequencyInterval: 1
retentionUnit: days
retentionValue: 2
policyItemWeeklies:
- frequencyInterval: 4
retentionUnit: weeks
retentionValue: 3
policyItemMonthlies:
- frequencyInterval: 5
retentionUnit: months
retentionValue: 4
policyItemYearlies:
- frequencyInterval: 1
retentionUnit: years
retentionValue: 1
backupPolicyBackupCompliancePolicy:
type: mongodbatlas:BackupCompliancePolicy
name: backup_policy
properties:
projectId: <PROJECT-ID>
authorizedEmail: user@email.com
authorizedUserFirstName: First
authorizedUserLastName: Last
copyProtectionEnabled: false
pitEnabled: false
encryptionAtRestEnabled: false
restoreWindowDays: 7
onDemandPolicyItem:
frequencyInterval: 0
retentionUnit: days
retentionValue: 3
policyItemHourly:
frequencyInterval: 6
retentionUnit: days
retentionValue: 7
policyItemDaily:
frequencyInterval: 0
retentionUnit: days
retentionValue: 7
policyItemWeeklies:
- frequencyInterval: 0
retentionUnit: weeks
retentionValue: 4
policyItemMonthlies:
- frequencyInterval: 0
retentionUnit: months
retentionValue: 12
policyItemYearlies:
- frequencyInterval: 1
retentionUnit: years
retentionValue: 1
variables:
test:
fn::invoke:
Function: mongodbatlas:getCloudBackupSchedule
Arguments:
projectId: ${testCloudBackupSchedule.projectId}
clusterName: ${testCloudBackupSchedule.clusterName}
backupPolicy:
fn::invoke:
Function: mongodbatlas:getBackupCompliancePolicy
Arguments:
projectId: ${testCloudBackupSchedule.id}
Using getBackupCompliancePolicy
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getBackupCompliancePolicy(args: GetBackupCompliancePolicyArgs, opts?: InvokeOptions): Promise<GetBackupCompliancePolicyResult>
function getBackupCompliancePolicyOutput(args: GetBackupCompliancePolicyOutputArgs, opts?: InvokeOptions): Output<GetBackupCompliancePolicyResult>
def get_backup_compliance_policy(project_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetBackupCompliancePolicyResult
def get_backup_compliance_policy_output(project_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetBackupCompliancePolicyResult]
func LookupBackupCompliancePolicy(ctx *Context, args *LookupBackupCompliancePolicyArgs, opts ...InvokeOption) (*LookupBackupCompliancePolicyResult, error)
func LookupBackupCompliancePolicyOutput(ctx *Context, args *LookupBackupCompliancePolicyOutputArgs, opts ...InvokeOption) LookupBackupCompliancePolicyResultOutput
> Note: This function is named LookupBackupCompliancePolicy
in the Go SDK.
public static class GetBackupCompliancePolicy
{
public static Task<GetBackupCompliancePolicyResult> InvokeAsync(GetBackupCompliancePolicyArgs args, InvokeOptions? opts = null)
public static Output<GetBackupCompliancePolicyResult> Invoke(GetBackupCompliancePolicyInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetBackupCompliancePolicyResult> getBackupCompliancePolicy(GetBackupCompliancePolicyArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: mongodbatlas:index/getBackupCompliancePolicy:getBackupCompliancePolicy
arguments:
# arguments dictionary
The following arguments are supported:
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project
- project
Id String - Unique 24-hexadecimal digit string that identifies your project
- project
Id string - Unique 24-hexadecimal digit string that identifies your project
- project_
id str - Unique 24-hexadecimal digit string that identifies your project
- project
Id String - Unique 24-hexadecimal digit string that identifies your project
getBackupCompliancePolicy Result
The following output properties are available:
- string
- Email address of the user who is authorized to update the Backup Compliance Policy settings.
- string
- First name of the user who authorized to update the Backup Compliance Policy settings.
- string
- Last name of the user who authorized to update the Backup Compliance Policy settings.
- Copy
Protection boolEnabled - Flag that indicates whether to enable additional backup copies for the cluster. If unspecified, this value defaults to false.
- Encryption
At boolRest Enabled - Flag that indicates whether Encryption at Rest using Customer Key Management is required for all clusters with a Backup Compliance Policy. If unspecified, this value defaults to false.
- Id string
- The provider-assigned unique ID for this managed resource.
- On
Demand GetPolicy Item Backup Compliance Policy On Demand Policy Item - Pit
Enabled bool - Flag that indicates whether the cluster uses Continuous Cloud Backups with a Backup Compliance Policy. If unspecified, this value defaults to false.
- Policy
Item GetDaily Backup Compliance Policy Policy Item Daily - Policy
Item GetHourly Backup Compliance Policy Policy Item Hourly - Policy
Item List<GetMonthlies Backup Compliance Policy Policy Item Monthly> - Policy
Item List<GetWeeklies Backup Compliance Policy Policy Item Weekly> - Policy
Item List<GetYearlies Backup Compliance Policy Policy Item Yearly> - Project
Id string - Restore
Window intDays - Number of previous days that you can restore back to with Continuous Cloud Backup with a Backup Compliance Policy. You must specify a positive, non-zero integer, and the maximum retention window can't exceed the hourly retention time. This parameter applies only to Continuous Cloud Backups with a Backup Compliance Policy.
- State string
- Label that indicates the state of the Backup Compliance Policy settings. MongoDB Cloud ignores this setting when you enable or update the Backup Compliance Policy settings.
- Updated
Date string - ISO 8601 timestamp format in UTC that indicates when the user updated the Data Protection Policy settings. MongoDB Cloud ignores this setting when you enable or update the Backup Compliance Policy settings.
- Updated
User string - Email address that identifies the user who updated the Backup Compliance Policy settings. MongoDB Cloud ignores this email setting when you enable or update the Backup Compliance Policy settings.
- string
- Email address of the user who is authorized to update the Backup Compliance Policy settings.
- string
- First name of the user who authorized to update the Backup Compliance Policy settings.
- string
- Last name of the user who authorized to update the Backup Compliance Policy settings.
- Copy
Protection boolEnabled - Flag that indicates whether to enable additional backup copies for the cluster. If unspecified, this value defaults to false.
- Encryption
At boolRest Enabled - Flag that indicates whether Encryption at Rest using Customer Key Management is required for all clusters with a Backup Compliance Policy. If unspecified, this value defaults to false.
- Id string
- The provider-assigned unique ID for this managed resource.
- On
Demand GetPolicy Item Backup Compliance Policy On Demand Policy Item - Pit
Enabled bool - Flag that indicates whether the cluster uses Continuous Cloud Backups with a Backup Compliance Policy. If unspecified, this value defaults to false.
- Policy
Item GetDaily Backup Compliance Policy Policy Item Daily - Policy
Item GetHourly Backup Compliance Policy Policy Item Hourly - Policy
Item []GetMonthlies Backup Compliance Policy Policy Item Monthly - Policy
Item []GetWeeklies Backup Compliance Policy Policy Item Weekly - Policy
Item []GetYearlies Backup Compliance Policy Policy Item Yearly - Project
Id string - Restore
Window intDays - Number of previous days that you can restore back to with Continuous Cloud Backup with a Backup Compliance Policy. You must specify a positive, non-zero integer, and the maximum retention window can't exceed the hourly retention time. This parameter applies only to Continuous Cloud Backups with a Backup Compliance Policy.
- State string
- Label that indicates the state of the Backup Compliance Policy settings. MongoDB Cloud ignores this setting when you enable or update the Backup Compliance Policy settings.
- Updated
Date string - ISO 8601 timestamp format in UTC that indicates when the user updated the Data Protection Policy settings. MongoDB Cloud ignores this setting when you enable or update the Backup Compliance Policy settings.
- Updated
User string - Email address that identifies the user who updated the Backup Compliance Policy settings. MongoDB Cloud ignores this email setting when you enable or update the Backup Compliance Policy settings.
- String
- Email address of the user who is authorized to update the Backup Compliance Policy settings.
- String
- First name of the user who authorized to update the Backup Compliance Policy settings.
- String
- Last name of the user who authorized to update the Backup Compliance Policy settings.
- copy
Protection BooleanEnabled - Flag that indicates whether to enable additional backup copies for the cluster. If unspecified, this value defaults to false.
- encryption
At BooleanRest Enabled - Flag that indicates whether Encryption at Rest using Customer Key Management is required for all clusters with a Backup Compliance Policy. If unspecified, this value defaults to false.
- id String
- The provider-assigned unique ID for this managed resource.
- on
Demand GetPolicy Item Backup Compliance Policy On Demand Policy Item - pit
Enabled Boolean - Flag that indicates whether the cluster uses Continuous Cloud Backups with a Backup Compliance Policy. If unspecified, this value defaults to false.
- policy
Item GetDaily Backup Compliance Policy Policy Item Daily - policy
Item GetHourly Backup Compliance Policy Policy Item Hourly - policy
Item List<GetMonthlies Backup Compliance Policy Policy Item Monthly> - policy
Item List<GetWeeklies Backup Compliance Policy Policy Item Weekly> - policy
Item List<GetYearlies Backup Compliance Policy Policy Item Yearly> - project
Id String - restore
Window IntegerDays - Number of previous days that you can restore back to with Continuous Cloud Backup with a Backup Compliance Policy. You must specify a positive, non-zero integer, and the maximum retention window can't exceed the hourly retention time. This parameter applies only to Continuous Cloud Backups with a Backup Compliance Policy.
- state String
- Label that indicates the state of the Backup Compliance Policy settings. MongoDB Cloud ignores this setting when you enable or update the Backup Compliance Policy settings.
- updated
Date String - ISO 8601 timestamp format in UTC that indicates when the user updated the Data Protection Policy settings. MongoDB Cloud ignores this setting when you enable or update the Backup Compliance Policy settings.
- updated
User String - Email address that identifies the user who updated the Backup Compliance Policy settings. MongoDB Cloud ignores this email setting when you enable or update the Backup Compliance Policy settings.
- string
- Email address of the user who is authorized to update the Backup Compliance Policy settings.
- string
- First name of the user who authorized to update the Backup Compliance Policy settings.
- string
- Last name of the user who authorized to update the Backup Compliance Policy settings.
- copy
Protection booleanEnabled - Flag that indicates whether to enable additional backup copies for the cluster. If unspecified, this value defaults to false.
- encryption
At booleanRest Enabled - Flag that indicates whether Encryption at Rest using Customer Key Management is required for all clusters with a Backup Compliance Policy. If unspecified, this value defaults to false.
- id string
- The provider-assigned unique ID for this managed resource.
- on
Demand GetPolicy Item Backup Compliance Policy On Demand Policy Item - pit
Enabled boolean - Flag that indicates whether the cluster uses Continuous Cloud Backups with a Backup Compliance Policy. If unspecified, this value defaults to false.
- policy
Item GetDaily Backup Compliance Policy Policy Item Daily - policy
Item GetHourly Backup Compliance Policy Policy Item Hourly - policy
Item GetMonthlies Backup Compliance Policy Policy Item Monthly[] - policy
Item GetWeeklies Backup Compliance Policy Policy Item Weekly[] - policy
Item GetYearlies Backup Compliance Policy Policy Item Yearly[] - project
Id string - restore
Window numberDays - Number of previous days that you can restore back to with Continuous Cloud Backup with a Backup Compliance Policy. You must specify a positive, non-zero integer, and the maximum retention window can't exceed the hourly retention time. This parameter applies only to Continuous Cloud Backups with a Backup Compliance Policy.
- state string
- Label that indicates the state of the Backup Compliance Policy settings. MongoDB Cloud ignores this setting when you enable or update the Backup Compliance Policy settings.
- updated
Date string - ISO 8601 timestamp format in UTC that indicates when the user updated the Data Protection Policy settings. MongoDB Cloud ignores this setting when you enable or update the Backup Compliance Policy settings.
- updated
User string - Email address that identifies the user who updated the Backup Compliance Policy settings. MongoDB Cloud ignores this email setting when you enable or update the Backup Compliance Policy settings.
- str
- Email address of the user who is authorized to update the Backup Compliance Policy settings.
- str
- First name of the user who authorized to update the Backup Compliance Policy settings.
- str
- Last name of the user who authorized to update the Backup Compliance Policy settings.
- copy_
protection_ boolenabled - Flag that indicates whether to enable additional backup copies for the cluster. If unspecified, this value defaults to false.
- encryption_
at_ boolrest_ enabled - Flag that indicates whether Encryption at Rest using Customer Key Management is required for all clusters with a Backup Compliance Policy. If unspecified, this value defaults to false.
- id str
- The provider-assigned unique ID for this managed resource.
- on_
demand_ Getpolicy_ item Backup Compliance Policy On Demand Policy Item - pit_
enabled bool - Flag that indicates whether the cluster uses Continuous Cloud Backups with a Backup Compliance Policy. If unspecified, this value defaults to false.
- policy_
item_ Getdaily Backup Compliance Policy Policy Item Daily - policy_
item_ Gethourly Backup Compliance Policy Policy Item Hourly - policy_
item_ Sequence[Getmonthlies Backup Compliance Policy Policy Item Monthly] - policy_
item_ Sequence[Getweeklies Backup Compliance Policy Policy Item Weekly] - policy_
item_ Sequence[Getyearlies Backup Compliance Policy Policy Item Yearly] - project_
id str - restore_
window_ intdays - Number of previous days that you can restore back to with Continuous Cloud Backup with a Backup Compliance Policy. You must specify a positive, non-zero integer, and the maximum retention window can't exceed the hourly retention time. This parameter applies only to Continuous Cloud Backups with a Backup Compliance Policy.
- state str
- Label that indicates the state of the Backup Compliance Policy settings. MongoDB Cloud ignores this setting when you enable or update the Backup Compliance Policy settings.
- updated_
date str - ISO 8601 timestamp format in UTC that indicates when the user updated the Data Protection Policy settings. MongoDB Cloud ignores this setting when you enable or update the Backup Compliance Policy settings.
- updated_
user str - Email address that identifies the user who updated the Backup Compliance Policy settings. MongoDB Cloud ignores this email setting when you enable or update the Backup Compliance Policy settings.
- String
- Email address of the user who is authorized to update the Backup Compliance Policy settings.
- String
- First name of the user who authorized to update the Backup Compliance Policy settings.
- String
- Last name of the user who authorized to update the Backup Compliance Policy settings.
- copy
Protection BooleanEnabled - Flag that indicates whether to enable additional backup copies for the cluster. If unspecified, this value defaults to false.
- encryption
At BooleanRest Enabled - Flag that indicates whether Encryption at Rest using Customer Key Management is required for all clusters with a Backup Compliance Policy. If unspecified, this value defaults to false.
- id String
- The provider-assigned unique ID for this managed resource.
- on
Demand Property MapPolicy Item - pit
Enabled Boolean - Flag that indicates whether the cluster uses Continuous Cloud Backups with a Backup Compliance Policy. If unspecified, this value defaults to false.
- policy
Item Property MapDaily - policy
Item Property MapHourly - policy
Item List<Property Map>Monthlies - policy
Item List<Property Map>Weeklies - policy
Item List<Property Map>Yearlies - project
Id String - restore
Window NumberDays - Number of previous days that you can restore back to with Continuous Cloud Backup with a Backup Compliance Policy. You must specify a positive, non-zero integer, and the maximum retention window can't exceed the hourly retention time. This parameter applies only to Continuous Cloud Backups with a Backup Compliance Policy.
- state String
- Label that indicates the state of the Backup Compliance Policy settings. MongoDB Cloud ignores this setting when you enable or update the Backup Compliance Policy settings.
- updated
Date String - ISO 8601 timestamp format in UTC that indicates when the user updated the Data Protection Policy settings. MongoDB Cloud ignores this setting when you enable or update the Backup Compliance Policy settings.
- updated
User String - Email address that identifies the user who updated the Backup Compliance Policy settings. MongoDB Cloud ignores this email setting when you enable or update the Backup Compliance Policy settings.
Supporting Types
GetBackupCompliancePolicyOnDemandPolicyItem
- Frequency
Interval int - Desired frequency of the new backup policy item specified by
frequency_type
(yearly in this case). The supported values for yearly policies are - Frequency
Type 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.
- Retention
Unit string - Scope of the backup policy item:
days
,weeks
,months
, oryears
. - Retention
Value int - Value to associate with
retention_unit
. Yearly policy must have retention of at least 1 year.
- Frequency
Interval int - Desired frequency of the new backup policy item specified by
frequency_type
(yearly in this case). The supported values for yearly policies are - Frequency
Type 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.
- Retention
Unit string - Scope of the backup policy item:
days
,weeks
,months
, oryears
. - Retention
Value int - Value to associate with
retention_unit
. Yearly policy must have retention of at least 1 year.
- frequency
Interval Integer - Desired frequency of the new backup policy item specified by
frequency_type
(yearly in this case). The supported values for yearly policies are - frequency
Type 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.
- retention
Unit String - Scope of the backup policy item:
days
,weeks
,months
, oryears
. - retention
Value Integer - Value to associate with
retention_unit
. Yearly policy must have retention of at least 1 year.
- frequency
Interval number - Desired frequency of the new backup policy item specified by
frequency_type
(yearly in this case). The supported values for yearly policies are - frequency
Type 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.
- retention
Unit string - Scope of the backup policy item:
days
,weeks
,months
, oryears
. - retention
Value number - Value to associate with
retention_unit
. Yearly policy must have retention of at least 1 year.
- frequency_
interval int - Desired frequency of the new backup policy item specified by
frequency_type
(yearly in this case). The supported values for yearly policies are - frequency_
type str - Frequency associated with the backup policy item. For yearly policies, the frequency type is defined as
yearly
. Note that this is a read-only value and not required in plan files - its value is implied from the policy resource type. - id str
- Unique identifier of the backup policy item.
- retention_
unit str - Scope of the backup policy item:
days
,weeks
,months
, oryears
. - retention_
value int - Value to associate with
retention_unit
. Yearly policy must have retention of at least 1 year.
- frequency
Interval Number - Desired frequency of the new backup policy item specified by
frequency_type
(yearly in this case). The supported values for yearly policies are - frequency
Type 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.
- retention
Unit String - Scope of the backup policy item:
days
,weeks
,months
, oryears
. - retention
Value Number - Value to associate with
retention_unit
. Yearly policy must have retention of at least 1 year.
GetBackupCompliancePolicyPolicyItemDaily
- Frequency
Interval int - Desired frequency of the new backup policy item specified by
frequency_type
(yearly in this case). The supported values for yearly policies are - Frequency
Type 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.
- Retention
Unit string - Scope of the backup policy item:
days
,weeks
,months
, oryears
. - Retention
Value int - Value to associate with
retention_unit
. Yearly policy must have retention of at least 1 year.
- Frequency
Interval int - Desired frequency of the new backup policy item specified by
frequency_type
(yearly in this case). The supported values for yearly policies are - Frequency
Type 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.
- Retention
Unit string - Scope of the backup policy item:
days
,weeks
,months
, oryears
. - Retention
Value int - Value to associate with
retention_unit
. Yearly policy must have retention of at least 1 year.
- frequency
Interval Integer - Desired frequency of the new backup policy item specified by
frequency_type
(yearly in this case). The supported values for yearly policies are - frequency
Type 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.
- retention
Unit String - Scope of the backup policy item:
days
,weeks
,months
, oryears
. - retention
Value Integer - Value to associate with
retention_unit
. Yearly policy must have retention of at least 1 year.
- frequency
Interval number - Desired frequency of the new backup policy item specified by
frequency_type
(yearly in this case). The supported values for yearly policies are - frequency
Type 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.
- retention
Unit string - Scope of the backup policy item:
days
,weeks
,months
, oryears
. - retention
Value number - Value to associate with
retention_unit
. Yearly policy must have retention of at least 1 year.
- frequency_
interval int - Desired frequency of the new backup policy item specified by
frequency_type
(yearly in this case). The supported values for yearly policies are - frequency_
type str - Frequency associated with the backup policy item. For yearly policies, the frequency type is defined as
yearly
. Note that this is a read-only value and not required in plan files - its value is implied from the policy resource type. - id str
- Unique identifier of the backup policy item.
- retention_
unit str - Scope of the backup policy item:
days
,weeks
,months
, oryears
. - retention_
value int - Value to associate with
retention_unit
. Yearly policy must have retention of at least 1 year.
- frequency
Interval Number - Desired frequency of the new backup policy item specified by
frequency_type
(yearly in this case). The supported values for yearly policies are - frequency
Type 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.
- retention
Unit String - Scope of the backup policy item:
days
,weeks
,months
, oryears
. - retention
Value Number - Value to associate with
retention_unit
. Yearly policy must have retention of at least 1 year.
GetBackupCompliancePolicyPolicyItemHourly
- Frequency
Interval int - Desired frequency of the new backup policy item specified by
frequency_type
(yearly in this case). The supported values for yearly policies are - Frequency
Type 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.
- Retention
Unit string - Scope of the backup policy item:
days
,weeks
,months
, oryears
. - Retention
Value int - Value to associate with
retention_unit
. Yearly policy must have retention of at least 1 year.
- Frequency
Interval int - Desired frequency of the new backup policy item specified by
frequency_type
(yearly in this case). The supported values for yearly policies are - Frequency
Type 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.
- Retention
Unit string - Scope of the backup policy item:
days
,weeks
,months
, oryears
. - Retention
Value int - Value to associate with
retention_unit
. Yearly policy must have retention of at least 1 year.
- frequency
Interval Integer - Desired frequency of the new backup policy item specified by
frequency_type
(yearly in this case). The supported values for yearly policies are - frequency
Type 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.
- retention
Unit String - Scope of the backup policy item:
days
,weeks
,months
, oryears
. - retention
Value Integer - Value to associate with
retention_unit
. Yearly policy must have retention of at least 1 year.
- frequency
Interval number - Desired frequency of the new backup policy item specified by
frequency_type
(yearly in this case). The supported values for yearly policies are - frequency
Type 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.
- retention
Unit string - Scope of the backup policy item:
days
,weeks
,months
, oryears
. - retention
Value number - Value to associate with
retention_unit
. Yearly policy must have retention of at least 1 year.
- frequency_
interval int - Desired frequency of the new backup policy item specified by
frequency_type
(yearly in this case). The supported values for yearly policies are - frequency_
type str - Frequency associated with the backup policy item. For yearly policies, the frequency type is defined as
yearly
. Note that this is a read-only value and not required in plan files - its value is implied from the policy resource type. - id str
- Unique identifier of the backup policy item.
- retention_
unit str - Scope of the backup policy item:
days
,weeks
,months
, oryears
. - retention_
value int - Value to associate with
retention_unit
. Yearly policy must have retention of at least 1 year.
- frequency
Interval Number - Desired frequency of the new backup policy item specified by
frequency_type
(yearly in this case). The supported values for yearly policies are - frequency
Type 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.
- retention
Unit String - Scope of the backup policy item:
days
,weeks
,months
, oryears
. - retention
Value Number - Value to associate with
retention_unit
. Yearly policy must have retention of at least 1 year.
GetBackupCompliancePolicyPolicyItemMonthly
- Frequency
Interval int - Desired frequency of the new backup policy item specified by
frequency_type
(yearly in this case). The supported values for yearly policies are - Frequency
Type 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.
- Retention
Unit string - Scope of the backup policy item:
days
,weeks
,months
, oryears
. - Retention
Value int - Value to associate with
retention_unit
. Yearly policy must have retention of at least 1 year.
- Frequency
Interval int - Desired frequency of the new backup policy item specified by
frequency_type
(yearly in this case). The supported values for yearly policies are - Frequency
Type 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.
- Retention
Unit string - Scope of the backup policy item:
days
,weeks
,months
, oryears
. - Retention
Value int - Value to associate with
retention_unit
. Yearly policy must have retention of at least 1 year.
- frequency
Interval Integer - Desired frequency of the new backup policy item specified by
frequency_type
(yearly in this case). The supported values for yearly policies are - frequency
Type 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.
- retention
Unit String - Scope of the backup policy item:
days
,weeks
,months
, oryears
. - retention
Value Integer - Value to associate with
retention_unit
. Yearly policy must have retention of at least 1 year.
- frequency
Interval number - Desired frequency of the new backup policy item specified by
frequency_type
(yearly in this case). The supported values for yearly policies are - frequency
Type 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.
- retention
Unit string - Scope of the backup policy item:
days
,weeks
,months
, oryears
. - retention
Value number - Value to associate with
retention_unit
. Yearly policy must have retention of at least 1 year.
- frequency_
interval int - Desired frequency of the new backup policy item specified by
frequency_type
(yearly in this case). The supported values for yearly policies are - frequency_
type str - Frequency associated with the backup policy item. For yearly policies, the frequency type is defined as
yearly
. Note that this is a read-only value and not required in plan files - its value is implied from the policy resource type. - id str
- Unique identifier of the backup policy item.
- retention_
unit str - Scope of the backup policy item:
days
,weeks
,months
, oryears
. - retention_
value int - Value to associate with
retention_unit
. Yearly policy must have retention of at least 1 year.
- frequency
Interval Number - Desired frequency of the new backup policy item specified by
frequency_type
(yearly in this case). The supported values for yearly policies are - frequency
Type 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.
- retention
Unit String - Scope of the backup policy item:
days
,weeks
,months
, oryears
. - retention
Value Number - Value to associate with
retention_unit
. Yearly policy must have retention of at least 1 year.
GetBackupCompliancePolicyPolicyItemWeekly
- Frequency
Interval int - Desired frequency of the new backup policy item specified by
frequency_type
(yearly in this case). The supported values for yearly policies are - Frequency
Type 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.
- Retention
Unit string - Scope of the backup policy item:
days
,weeks
,months
, oryears
. - Retention
Value int - Value to associate with
retention_unit
. Yearly policy must have retention of at least 1 year.
- Frequency
Interval int - Desired frequency of the new backup policy item specified by
frequency_type
(yearly in this case). The supported values for yearly policies are - Frequency
Type 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.
- Retention
Unit string - Scope of the backup policy item:
days
,weeks
,months
, oryears
. - Retention
Value int - Value to associate with
retention_unit
. Yearly policy must have retention of at least 1 year.
- frequency
Interval Integer - Desired frequency of the new backup policy item specified by
frequency_type
(yearly in this case). The supported values for yearly policies are - frequency
Type 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.
- retention
Unit String - Scope of the backup policy item:
days
,weeks
,months
, oryears
. - retention
Value Integer - Value to associate with
retention_unit
. Yearly policy must have retention of at least 1 year.
- frequency
Interval number - Desired frequency of the new backup policy item specified by
frequency_type
(yearly in this case). The supported values for yearly policies are - frequency
Type 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.
- retention
Unit string - Scope of the backup policy item:
days
,weeks
,months
, oryears
. - retention
Value number - Value to associate with
retention_unit
. Yearly policy must have retention of at least 1 year.
- frequency_
interval int - Desired frequency of the new backup policy item specified by
frequency_type
(yearly in this case). The supported values for yearly policies are - frequency_
type str - Frequency associated with the backup policy item. For yearly policies, the frequency type is defined as
yearly
. Note that this is a read-only value and not required in plan files - its value is implied from the policy resource type. - id str
- Unique identifier of the backup policy item.
- retention_
unit str - Scope of the backup policy item:
days
,weeks
,months
, oryears
. - retention_
value int - Value to associate with
retention_unit
. Yearly policy must have retention of at least 1 year.
- frequency
Interval Number - Desired frequency of the new backup policy item specified by
frequency_type
(yearly in this case). The supported values for yearly policies are - frequency
Type 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.
- retention
Unit String - Scope of the backup policy item:
days
,weeks
,months
, oryears
. - retention
Value Number - Value to associate with
retention_unit
. Yearly policy must have retention of at least 1 year.
GetBackupCompliancePolicyPolicyItemYearly
- Frequency
Interval int - Desired frequency of the new backup policy item specified by
frequency_type
(yearly in this case). The supported values for yearly policies are - Frequency
Type 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.
- Retention
Unit string - Scope of the backup policy item:
days
,weeks
,months
, oryears
. - Retention
Value int - Value to associate with
retention_unit
. Yearly policy must have retention of at least 1 year.
- Frequency
Interval int - Desired frequency of the new backup policy item specified by
frequency_type
(yearly in this case). The supported values for yearly policies are - Frequency
Type 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.
- Retention
Unit string - Scope of the backup policy item:
days
,weeks
,months
, oryears
. - Retention
Value int - Value to associate with
retention_unit
. Yearly policy must have retention of at least 1 year.
- frequency
Interval Integer - Desired frequency of the new backup policy item specified by
frequency_type
(yearly in this case). The supported values for yearly policies are - frequency
Type 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.
- retention
Unit String - Scope of the backup policy item:
days
,weeks
,months
, oryears
. - retention
Value Integer - Value to associate with
retention_unit
. Yearly policy must have retention of at least 1 year.
- frequency
Interval number - Desired frequency of the new backup policy item specified by
frequency_type
(yearly in this case). The supported values for yearly policies are - frequency
Type 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.
- retention
Unit string - Scope of the backup policy item:
days
,weeks
,months
, oryears
. - retention
Value number - Value to associate with
retention_unit
. Yearly policy must have retention of at least 1 year.
- frequency_
interval int - Desired frequency of the new backup policy item specified by
frequency_type
(yearly in this case). The supported values for yearly policies are - frequency_
type str - Frequency associated with the backup policy item. For yearly policies, the frequency type is defined as
yearly
. Note that this is a read-only value and not required in plan files - its value is implied from the policy resource type. - id str
- Unique identifier of the backup policy item.
- retention_
unit str - Scope of the backup policy item:
days
,weeks
,months
, oryears
. - retention_
value int - Value to associate with
retention_unit
. Yearly policy must have retention of at least 1 year.
- frequency
Interval Number - Desired frequency of the new backup policy item specified by
frequency_type
(yearly in this case). The supported values for yearly policies are - frequency
Type 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.
- retention
Unit String - Scope of the backup policy item:
days
,weeks
,months
, oryears
. - retention
Value Number - Value to associate with
retention_unit
. Yearly policy must have retention of at least 1 year.
Package Details
- Repository
- MongoDB Atlas pulumi/pulumi-mongodbatlas
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mongodbatlas
Terraform Provider.