You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: mongodbatlas/cloud_provider_snapshot_backup_policies.go
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,8 @@ type CloudProviderSnapshotBackupPolicy struct {
50
50
UpdateSnapshots*bool`json:"updateSnapshots,omitempty"`// Specify true to apply the retention changes in the updated backup policy to snapshots that Atlas took previously.
51
51
NextSnapshotstring`json:"nextSnapshot,omitempty"`// UTC ISO 8601 formatted point in time when Atlas will take the next snapshot.
52
52
Policies []Policy`json:"policies,omitempty"`// A list of policy definitions for the cluster.
53
+
AutoExportEnabled*bool`json:"autoExportEnabled,omitempty"`// Specify true to enable automatic export of cloud backup snapshots to the AWS bucket. You must also define the export policy using export. Specify false to disable automatic export.
54
+
Export*Export`json:"export,omitempty"`// Export struct that represents a policy for automatically exporting cloud backup snapshots to AWS bucket.
53
55
}
54
56
55
57
// Policy represents for the snapshot and an array of backup policy items.
@@ -67,6 +69,12 @@ type PolicyItem struct {
67
69
RetentionValueint`json:"retentionValue,omitempty"`// Duration for which the backup is kept. Associated with retentionUnit.
68
70
}
69
71
72
+
// Export represents a policy for automatically exporting cloud backup snapshots to AWS bucket.
73
+
typeExportstruct {
74
+
ExportBucketIDstring`json:"exportBucketId,omitempty"`// Unique identifier of the AWS bucket to export the cloud backup snapshot to.
75
+
FrequencyTypestring`json:"frequencyType,omitempty"`// Frequency associated with the export policy.
76
+
}
77
+
70
78
// Get gets the current snapshot schedule and retention settings for the cluster with {CLUSTER-NAME}.
71
79
// See more: https://docs.atlas.mongodb.com/reference/api/cloud-provider-snapshot-schedule-get-all/
0 commit comments