mongodbatlas.CloudProviderSnapshotBackupPolicy
Import
Cloud Backup Snapshot Policy entries can be imported using project project_id and cluster_name, in the format PROJECTID-CLUSTERNAME
, e.g.
$ pulumi import mongodbatlas:index/cloudProviderSnapshotBackupPolicy:CloudProviderSnapshotBackupPolicy test 5d0f1f73cf09a29120e173cf-MyClusterTest
For more information seeMongoDB Atlas API Reference.
Create CloudProviderSnapshotBackupPolicy Resource
new CloudProviderSnapshotBackupPolicy(name: string, args: CloudProviderSnapshotBackupPolicyArgs, opts?: CustomResourceOptions);
@overload
def CloudProviderSnapshotBackupPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_name: Optional[str] = None,
policies: Optional[Sequence[CloudProviderSnapshotBackupPolicyPolicyArgs]] = 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)
@overload
def CloudProviderSnapshotBackupPolicy(resource_name: str,
args: CloudProviderSnapshotBackupPolicyArgs,
opts: Optional[ResourceOptions] = None)
func NewCloudProviderSnapshotBackupPolicy(ctx *Context, name string, args CloudProviderSnapshotBackupPolicyArgs, opts ...ResourceOption) (*CloudProviderSnapshotBackupPolicy, error)
public CloudProviderSnapshotBackupPolicy(string name, CloudProviderSnapshotBackupPolicyArgs args, CustomResourceOptions? opts = null)
public CloudProviderSnapshotBackupPolicy(String name, CloudProviderSnapshotBackupPolicyArgs args)
public CloudProviderSnapshotBackupPolicy(String name, CloudProviderSnapshotBackupPolicyArgs args, CustomResourceOptions options)
type: mongodbatlas:CloudProviderSnapshotBackupPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CloudProviderSnapshotBackupPolicyArgs
- 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 CloudProviderSnapshotBackupPolicyArgs
- 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 CloudProviderSnapshotBackupPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CloudProviderSnapshotBackupPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CloudProviderSnapshotBackupPolicyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CloudProviderSnapshotBackupPolicy Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The CloudProviderSnapshotBackupPolicy resource accepts the following input properties:
- Cluster
Name string The name of the Atlas cluster that contains the snapshot backup policy you want to retrieve.
- Policies
List<Cloud
Provider Snapshot Backup Policy Policy Args> - Project
Id string The unique identifier of the project for the Atlas cluster.
- Reference
Hour intOf Day 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 intOf Hour UTC Minutes after referenceHourOfDay that Atlas takes snapshots for backup policy items. Must be between 0 and 59, inclusive.
- Restore
Window intDays 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.
- Cluster
Name string The name of the Atlas cluster that contains the snapshot backup policy you want to retrieve.
- Policies
[]Cloud
Provider Snapshot Backup Policy Policy Args - Project
Id string The unique identifier of the project for the Atlas cluster.
- Reference
Hour intOf Day 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 intOf Hour UTC Minutes after referenceHourOfDay that Atlas takes snapshots for backup policy items. Must be between 0 and 59, inclusive.
- Restore
Window intDays 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.
- cluster
Name String The name of the Atlas cluster that contains the snapshot backup policy you want to retrieve.
- policies
List<Cloud
Provider Snapshot Backup Policy Policy Args> - project
Id String The unique identifier of the project for the Atlas cluster.
- reference
Hour IntegerOf Day 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 IntegerOf Hour UTC Minutes after referenceHourOfDay that Atlas takes snapshots for backup policy items. Must be between 0 and 59, inclusive.
- restore
Window IntegerDays Number of days back in time you can restore to with point-in-time accuracy. Must be a positive, non-zero integer.
- update
Snapshots Boolean Specify true to apply the retention changes in the updated backup policy to snapshots that Atlas took previously.
- cluster
Name string The name of the Atlas cluster that contains the snapshot backup policy you want to retrieve.
- policies
Cloud
Provider Snapshot Backup Policy Policy Args[] - project
Id string The unique identifier of the project for the Atlas cluster.
- reference
Hour numberOf Day 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 numberOf Hour UTC Minutes after referenceHourOfDay that Atlas takes snapshots for backup policy items. Must be between 0 and 59, inclusive.
- restore
Window numberDays Number of days back in time you can restore to with point-in-time accuracy. Must be a positive, non-zero integer.
- update
Snapshots boolean Specify true to apply the retention changes in the updated backup policy to snapshots that Atlas took previously.
- cluster_
name str The name of the Atlas cluster that contains the snapshot backup policy you want to retrieve.
- policies
Sequence[Cloud
Provider Snapshot Backup Policy Policy Args] - project_
id str The unique identifier of the project for the Atlas cluster.
- reference_
hour_ intof_ day 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_ intof_ hour UTC Minutes after referenceHourOfDay that Atlas takes snapshots for backup policy items. Must be between 0 and 59, inclusive.
- restore_
window_ intdays 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.
- cluster
Name String The name of the Atlas cluster that contains the snapshot backup policy you want to retrieve.
- policies List<Property Map>
- project
Id String The unique identifier of the project for the Atlas cluster.
- reference
Hour NumberOf Day 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 NumberOf Hour UTC Minutes after referenceHourOfDay that Atlas takes snapshots for backup policy items. Must be between 0 and 59, inclusive.
- restore
Window NumberDays Number of days back in time you can restore to with point-in-time accuracy. Must be a positive, non-zero integer.
- update
Snapshots Boolean Specify true to apply the retention changes in the updated backup policy to snapshots that Atlas took previously.
Outputs
All input properties are implicitly available as output properties. Additionally, the CloudProviderSnapshotBackupPolicy resource produces the following output properties:
- Cluster
Id string Unique identifier of the Atlas cluster.
- Id string
The provider-assigned unique ID for this managed resource.
- Next
Snapshot string Timestamp in the number of seconds that have elapsed since the UNIX epoch when Atlas takes the next snapshot.
- Cluster
Id string Unique identifier of the Atlas cluster.
- Id string
The provider-assigned unique ID for this managed resource.
- Next
Snapshot string Timestamp in the number of seconds that have elapsed since the UNIX epoch when Atlas takes the next snapshot.
- cluster
Id String Unique identifier of the Atlas cluster.
- id String
The provider-assigned unique ID for this managed resource.
- next
Snapshot String Timestamp in the number of seconds that have elapsed since the UNIX epoch when Atlas takes the next snapshot.
- cluster
Id string Unique identifier of the Atlas cluster.
- id string
The provider-assigned unique ID for this managed resource.
- next
Snapshot 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.
- next_
snapshot str Timestamp in the number of seconds that have elapsed since the UNIX epoch when Atlas takes the next snapshot.
- cluster
Id String Unique identifier of the Atlas cluster.
- id String
The provider-assigned unique ID for this managed resource.
- next
Snapshot String Timestamp in the number of seconds that have elapsed since the UNIX epoch when Atlas takes the next snapshot.
Look up Existing CloudProviderSnapshotBackupPolicy Resource
Get an existing CloudProviderSnapshotBackupPolicy 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?: CloudProviderSnapshotBackupPolicyState, opts?: CustomResourceOptions): CloudProviderSnapshotBackupPolicy
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
cluster_name: Optional[str] = None,
next_snapshot: Optional[str] = None,
policies: Optional[Sequence[CloudProviderSnapshotBackupPolicyPolicyArgs]] = 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) -> CloudProviderSnapshotBackupPolicy
func GetCloudProviderSnapshotBackupPolicy(ctx *Context, name string, id IDInput, state *CloudProviderSnapshotBackupPolicyState, opts ...ResourceOption) (*CloudProviderSnapshotBackupPolicy, error)
public static CloudProviderSnapshotBackupPolicy Get(string name, Input<string> id, CloudProviderSnapshotBackupPolicyState? state, CustomResourceOptions? opts = null)
public static CloudProviderSnapshotBackupPolicy get(String name, Output<String> id, CloudProviderSnapshotBackupPolicyState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Cluster
Id string Unique identifier of the Atlas cluster.
- Cluster
Name string The name of the Atlas cluster that contains the snapshot backup policy you want to retrieve.
- Next
Snapshot string Timestamp in the number of seconds that have elapsed since the UNIX epoch when Atlas takes the next snapshot.
- Policies
List<Cloud
Provider Snapshot Backup Policy Policy Args> - Project
Id string The unique identifier of the project for the Atlas cluster.
- Reference
Hour intOf Day 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 intOf Hour UTC Minutes after referenceHourOfDay that Atlas takes snapshots for backup policy items. Must be between 0 and 59, inclusive.
- Restore
Window intDays 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.
- Cluster
Id string Unique identifier of the Atlas cluster.
- Cluster
Name string The name of the Atlas cluster that contains the snapshot backup policy you want to retrieve.
- Next
Snapshot string Timestamp in the number of seconds that have elapsed since the UNIX epoch when Atlas takes the next snapshot.
- Policies
[]Cloud
Provider Snapshot Backup Policy Policy Args - Project
Id string The unique identifier of the project for the Atlas cluster.
- Reference
Hour intOf Day 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 intOf Hour UTC Minutes after referenceHourOfDay that Atlas takes snapshots for backup policy items. Must be between 0 and 59, inclusive.
- Restore
Window intDays 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.
- cluster
Id String Unique identifier of the Atlas cluster.
- cluster
Name String The name of the Atlas cluster that contains the snapshot backup policy you want to retrieve.
- next
Snapshot String Timestamp in the number of seconds that have elapsed since the UNIX epoch when Atlas takes the next snapshot.
- policies
List<Cloud
Provider Snapshot Backup Policy Policy Args> - project
Id String The unique identifier of the project for the Atlas cluster.
- reference
Hour IntegerOf Day 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 IntegerOf Hour UTC Minutes after referenceHourOfDay that Atlas takes snapshots for backup policy items. Must be between 0 and 59, inclusive.
- restore
Window IntegerDays Number of days back in time you can restore to with point-in-time accuracy. Must be a positive, non-zero integer.
- update
Snapshots Boolean Specify true to apply the retention changes in the updated backup policy to snapshots that Atlas took previously.
- cluster
Id string Unique identifier of the Atlas cluster.
- cluster
Name string The name of the Atlas cluster that contains the snapshot backup policy you want to retrieve.
- next
Snapshot string Timestamp in the number of seconds that have elapsed since the UNIX epoch when Atlas takes the next snapshot.
- policies
Cloud
Provider Snapshot Backup Policy Policy Args[] - project
Id string The unique identifier of the project for the Atlas cluster.
- reference
Hour numberOf Day 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 numberOf Hour UTC Minutes after referenceHourOfDay that Atlas takes snapshots for backup policy items. Must be between 0 and 59, inclusive.
- restore
Window numberDays Number of days back in time you can restore to with point-in-time accuracy. Must be a positive, non-zero integer.
- update
Snapshots boolean Specify true to apply the retention changes in the updated backup policy to snapshots that Atlas took previously.
- 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.
- next_
snapshot str Timestamp in the number of seconds that have elapsed since the UNIX epoch when Atlas takes the next snapshot.
- policies
Sequence[Cloud
Provider Snapshot Backup Policy Policy Args] - project_
id str The unique identifier of the project for the Atlas cluster.
- reference_
hour_ intof_ day 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_ intof_ hour UTC Minutes after referenceHourOfDay that Atlas takes snapshots for backup policy items. Must be between 0 and 59, inclusive.
- restore_
window_ intdays 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.
- cluster
Id String Unique identifier of the Atlas cluster.
- cluster
Name String The name of the Atlas cluster that contains the snapshot backup policy you want to retrieve.
- next
Snapshot String Timestamp in the number of seconds that have elapsed since the UNIX epoch when Atlas takes the next snapshot.
- policies List<Property Map>
- project
Id String The unique identifier of the project for the Atlas cluster.
- reference
Hour NumberOf Day 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 NumberOf Hour UTC Minutes after referenceHourOfDay that Atlas takes snapshots for backup policy items. Must be between 0 and 59, inclusive.
- restore
Window NumberDays Number of days back in time you can restore to with point-in-time accuracy. Must be a positive, non-zero integer.
- update
Snapshots Boolean Specify true to apply the retention changes in the updated backup policy to snapshots that Atlas took previously.
Supporting Types
CloudProviderSnapshotBackupPolicyPolicy
- id String
- policy
Items List<Property Map>
CloudProviderSnapshotBackupPolicyPolicyPolicyItem
- Frequency
Interval int - Frequency
Type string - Id string
- Retention
Unit string - Retention
Value int
- Frequency
Interval int - Frequency
Type string - Id string
- Retention
Unit string - Retention
Value int
- frequency
Interval Integer - frequency
Type String - id String
- retention
Unit String - retention
Value Integer
- frequency
Interval number - frequency
Type string - id string
- retention
Unit string - retention
Value number
- frequency_
interval int - frequency_
type str - id str
- retention_
unit str - retention_
value int
- frequency
Interval Number - frequency
Type String - id String
- retention
Unit String - retention
Value Number
Package Details
- Repository
- MongoDB Atlas pulumi/pulumi-mongodbatlas
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
mongodbatlas
Terraform Provider.