DbPlan
This class encapsulates and extends the ROS resource type ALIYUN::HBR::DbPlan
, which is used to create a backup plan.
Initializers
using AlibabaCloud.SDK.ROS.CDK.Hbr;
new DbPlan(Construct Scope, string Id, DbPlanProps Props, bool EnableResourcePropertyConstraint = null);
Name | Type | Description |
---|---|---|
Scope |
AlibabaCloud.SDK.ROS.CDK.Core.Construct |
No description. |
Id |
string |
No description. |
Props |
DbPlanProps |
No description. |
EnableResourcePropertyConstraint |
bool |
No description. |
Scope
Required
- Type: AlibabaCloud.SDK.ROS.CDK.Core.Construct
Id
Required
- Type: string
Props
Required
- Type: DbPlanProps
EnableResourcePropertyConstraint
Optional
- Type: bool
Methods
Name | Description |
---|---|
ToString |
Returns a string representation of this construct. |
Synthesize |
Allows this construct to emit artifacts into the cloud assembly during synthesis. |
AddCondition |
No description. |
AddCount |
No description. |
AddDependency |
No description. |
AddResourceDesc |
No description. |
ApplyRemovalPolicy |
No description. |
GetAtt |
No description. |
SetMetadata |
No description. |
ToString
private string ToString()
Returns a string representation of this construct.
Synthesize
private void Synthesize(ISynthesisSession Session)
Allows this construct to emit artifacts into the cloud assembly during synthesis.
This method is usually implemented by framework-level constructs such as Stack
and Asset
as they participate in synthesizing the cloud assembly.
- Type: AlibabaCloud.SDK.ROS.CDK.Core.ISynthesisSession
The synthesis session.
AddCondition
private void AddCondition(RosCondition Condition)
- Type: AlibabaCloud.SDK.ROS.CDK.Core.RosCondition
AddCount
private void AddCount(object Count)
- Type: object
AddDependency
private void AddDependency(Resource Resource)
- Type: AlibabaCloud.SDK.ROS.CDK.Core.Resource
AddResourceDesc
private void AddResourceDesc(string Desc)
- Type: string
ApplyRemovalPolicy
private void ApplyRemovalPolicy(RemovalPolicy Policy)
- Type: AlibabaCloud.SDK.ROS.CDK.Core.RemovalPolicy
GetAtt
private IResolvable GetAtt(string Name)
- Type: string
SetMetadata
private void SetMetadata(string Key, object Value)
- Type: string
- Type: object
Static Functions
Name | Description |
---|---|
IsConstruct |
Return whether the given object is a Construct. |
IsConstruct
using AlibabaCloud.SDK.ROS.CDK.Hbr;
DbPlan.IsConstruct(object X);
Return whether the given object is a Construct.
- Type: object
Properties
Name | Type | Description |
---|---|---|
Node |
AlibabaCloud.SDK.ROS.CDK.Core.ConstructNode |
The construct tree node associated with this construct. |
Ref |
string |
No description. |
Stack |
AlibabaCloud.SDK.ROS.CDK.Core.Stack |
The stack in which this resource is defined. |
Resource |
AlibabaCloud.SDK.ROS.CDK.Core.RosResource |
No description. |
AttrContinuousPlan |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute ContinuousPlan: Continuous backup plan schedule. |
AttrContinuousUuid |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute ContinuousUuid: Uuid of continuous backup plan. |
AttrCumulativePlan |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute CumulativePlan: Cumulative plan schedule, only for mssql. |
AttrCumulativeUuid |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute CumulativeUuid: Uuid of cumulative plan. |
AttrDbPlanName |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute DbPlanName: Display name of the backup plan. |
AttrFullPlan |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute FullPlan: Full backup plan schedule. |
AttrFullUuid |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute FullUuid: Uuid of full backup plan. |
AttrHostUuid |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute HostUuid: Uuid of the host of the database instance. |
AttrIncPlan |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute IncPlan: Incremental backup plan schedule. |
AttrIncUuid |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute IncUuid: Uuid of the incremental bakcup plan. |
AttrInstanceUuid |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute InstanceUuid: Uuid of database instance. |
AttrLogPlan |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute LogPlan: Log backup plan schedule.More details see FullPlan. |
AttrLogUuid |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute LogUuid: Uuid of the log backup plan. |
AttrMaxRateLimit |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute MaxRateLimit: Max rate limit for backup job,. |
AttrMaxRetrySeconds |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute MaxRetrySeconds: Max retry seconds on network failure. |
AttrOptions |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute Options: Backup options in json format, different for each type of database. |
AttrPlanId |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute PlanId: Id of the backup plan. |
AttrSourceType |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute SourceType: Database type, allowed value: MYSQL, ORACLE, MSSQL. |
AttrTarget |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute Target: Target vault to backup. |
AttrVaultId |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute VaultId: Vault ID to create backup plan, the backup data will be stored to the vault. |
Node
Required
public ConstructNode Node { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.ConstructNode
The construct tree node associated with this construct.
Ref
Required
public string Ref { get; }
- Type: string
Stack
Required
public Stack Stack { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.Stack
The stack in which this resource is defined.
Resource
Optional
public RosResource Resource { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.RosResource
AttrContinuousPlan
Required
public IResolvable AttrContinuousPlan { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute ContinuousPlan: Continuous backup plan schedule.
Use { "type": "continuous" }.
AttrContinuousUuid
Required
public IResolvable AttrContinuousUuid { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute ContinuousUuid: Uuid of continuous backup plan.
AttrCumulativePlan
Required
public IResolvable AttrCumulativePlan { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute CumulativePlan: Cumulative plan schedule, only for mssql.
More details see FullPlan.
AttrCumulativeUuid
Required
public IResolvable AttrCumulativeUuid { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute CumulativeUuid: Uuid of cumulative plan.
AttrDbPlanName
Required
public IResolvable AttrDbPlanName { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute DbPlanName: Display name of the backup plan.
AttrFullPlan
Required
public IResolvable AttrFullPlan { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute FullPlan: Full backup plan schedule.
daily: {"type": "daily", "start": "00:00:00", "interval": 3}, weekly {"type":"weekly","start": "03:00:00","days": [1,2,3,4,5],"interval": 1}, days can be 0 - 6, 0 means Sunday, and interval can be 1 - 52.
AttrFullUuid
Required
public IResolvable AttrFullUuid { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute FullUuid: Uuid of full backup plan.
AttrHostUuid
Required
public IResolvable AttrHostUuid { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute HostUuid: Uuid of the host of the database instance.
AttrIncPlan
Required
public IResolvable AttrIncPlan { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute IncPlan: Incremental backup plan schedule.
Only for mysql and oracle. More details see FullPlan.
AttrIncUuid
Required
public IResolvable AttrIncUuid { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute IncUuid: Uuid of the incremental bakcup plan.
AttrInstanceUuid
Required
public IResolvable AttrInstanceUuid { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute InstanceUuid: Uuid of database instance.
AttrLogPlan
Required
public IResolvable AttrLogPlan { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute LogPlan: Log backup plan schedule.More details see FullPlan.
AttrLogUuid
Required
public IResolvable AttrLogUuid { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute LogUuid: Uuid of the log backup plan.
AttrMaxRateLimit
Required
public IResolvable AttrMaxRateLimit { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute MaxRateLimit: Max rate limit for backup job,.
AttrMaxRetrySeconds
Required
public IResolvable AttrMaxRetrySeconds { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute MaxRetrySeconds: Max retry seconds on network failure.
AttrOptions
Required
public IResolvable AttrOptions { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute Options: Backup options in json format, different for each type of database.
For Oracle, use {"channels":4,"compression":"lzop","offline_backup":false,"archivelog_reserve_hours":24,"custom_commands":""}, "channels" means numbers of concurrent theads, "archivelog_reserve_hours" means how long before the archive log will be deleted after backup job completed, other paramters should use the default vaule. For Mysql, use {"channels":4,"compression":"lzop","del_binlog":false}, "del_binlog" means whether the binlog will be deleted after backup completed, only take effect for log or continuous backup. For SQL Server, use {"channels":4,"verify":false,"compression":"lzop","backup_new_databases":false}.
AttrPlanId
Required
public IResolvable AttrPlanId { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute PlanId: Id of the backup plan.
AttrSourceType
Required
public IResolvable AttrSourceType { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute SourceType: Database type, allowed value: MYSQL, ORACLE, MSSQL.
AttrTarget
Required
public IResolvable AttrTarget { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute Target: Target vault to backup.
AttrVaultId
Required
public IResolvable AttrVaultId { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute VaultId: Vault ID to create backup plan, the backup data will be stored to the vault.