Class BackupPolicy
Inherited Members
Namespace: Pulumi.AliCloud.PolarDB
Assembly: Pulumi.AliCloud.dll
Syntax
public class BackupPolicy : CustomResource
Constructors
View SourceBackupPolicy(String, BackupPolicyArgs, CustomResourceOptions)
Create a BackupPolicy resource with the given unique name, arguments, and options.
Declaration
public BackupPolicy(string name, BackupPolicyArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| BackupPolicyArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceBackupRetentionPeriod
Cluster backup retention days, Fixed for 7 days, not modified.
Declaration
public Output<string> BackupRetentionPeriod { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
DbClusterId
The Id of cluster that can run database.
Declaration
public Output<string> DbClusterId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
PreferredBackupPeriods
PolarDB Cluster backup period. Valid values: [Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday]. Default to ["Tuesday", "Thursday", "Saturday"].
Declaration
public Output<ImmutableArray<string>> PreferredBackupPeriods { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
PreferredBackupTime
PolarDB Cluster backup time, in the format of HH:mmZ- HH:mmZ. Time setting interval is one hour. Default to "02:00Z-03:00Z". China time is 8 hours behind it.
Declaration
public Output<string> PreferredBackupTime { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, BackupPolicyState, CustomResourceOptions)
Get an existing BackupPolicy resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static BackupPolicy Get(string name, Input<string> id, BackupPolicyState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| BackupPolicyState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| BackupPolicy |