DbPlan
- Implements: IDbPlan
This class encapsulates and extends the ROS resource type ALIYUN::HBR::DbPlanCreates a database backup plan.
Initializers
import { DbPlan } from '@alicloud/ros-cdk-hbr'
new DbPlan(scope: Construct, id: string, props: DbPlanProps, enableResourcePropertyConstraint?: boolean)
| Name | Type | Description |
|---|---|---|
scope | @alicloud/ros-cdk-core.Construct | No description. |
id | string | No description. |
props | DbPlanProps | No description. |
enableResourcePropertyConstraint | boolean | No description. |
scopeRequired
- Type: @alicloud/ros-cdk-core.Construct
idRequired
- Type: string
propsRequired
- Type: DbPlanProps
enableResourcePropertyConstraintOptional
- Type: boolean
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. |
fetchCondition | No description. |
fetchDependency | No description. |
fetchResourceDesc | No description. |
getAtt | No description. |
setMetadata | No description. |
toString
public toString(): string
Returns a string representation of this construct.
synthesize
public synthesize(session: ISynthesisSession): void
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: @alicloud/ros-cdk-core.ISynthesisSession
The synthesis session.
addCondition
public addCondition(condition: RosCondition): void
- Type: @alicloud/ros-cdk-core.RosCondition
addCount
public addCount(count: number | IResolvable): void
- Type: number | @alicloud/ros-cdk-core.IResolvable
addDependency
public addDependency(resource: Resource): void
- Type: @alicloud/ros-cdk-core.Resource
addResourceDesc
public addResourceDesc(desc: string): void
- Type: string
applyRemovalPolicy
public applyRemovalPolicy(policy: RemovalPolicy): void
- Type: @alicloud/ros-cdk-core.RemovalPolicy
fetchCondition
public fetchCondition(): RosCondition
fetchDependency
public fetchDependency(): string[]
fetchResourceDesc
public fetchResourceDesc(): string
getAtt
public getAtt(name: string): IResolvable
- Type: string
setMetadata
public setMetadata(key: string, value: any): void
- Type: string
- Type: any
Static Functions
| Name | Description |
|---|---|
isConstruct | Return whether the given object is a Construct. |
isConstruct
import { DbPlan } from '@alicloud/ros-cdk-hbr'
DbPlan.isConstruct(x: any)
Return whether the given object is a Construct.
- Type: any
Properties
| Name | Type | Description |
|---|---|---|
node | @alicloud/ros-cdk-core.ConstructNode | The construct tree node associated with this construct. |
env | @alicloud/ros-cdk-core.IResourceEnvironment | The environment this resource belongs to. |
ref | string | No description. |
stack | @alicloud/ros-cdk-core.Stack | The stack in which this resource is defined. |
resource | @alicloud/ros-cdk-core.RosResource | No description. |
attrContinuousPlan | string | @alicloud/ros-cdk-core.IResolvable | Attribute ContinuousPlan: Continuous backup plan schedule. |
attrContinuousUuid | string | @alicloud/ros-cdk-core.IResolvable | Attribute ContinuousUuid: Uuid of continuous backup plan. |
attrCumulativePlan | string | @alicloud/ros-cdk-core.IResolvable | Attribute CumulativePlan: Cumulative plan schedule, only for mssql. |
attrCumulativeUuid | string | @alicloud/ros-cdk-core.IResolvable | Attribute CumulativeUuid: Uuid of cumulative plan. |
attrDbPlanName | string | @alicloud/ros-cdk-core.IResolvable | Attribute DbPlanName: Display name of the backup plan. |
attrFullPlan | string | @alicloud/ros-cdk-core.IResolvable | Attribute FullPlan: Full backup plan schedule. |
attrFullUuid | string | @alicloud/ros-cdk-core.IResolvable | Attribute FullUuid: Uuid of full backup plan. |
attrHostUuid | string | @alicloud/ros-cdk-core.IResolvable | Attribute HostUuid: Uuid of the host of the database instance. |
attrIncPlan | string | @alicloud/ros-cdk-core.IResolvable | Attribute IncPlan: Incremental backup plan schedule. |
attrIncUuid | string | @alicloud/ros-cdk-core.IResolvable | Attribute IncUuid: Uuid of the incremental bakcup plan. |
attrInstanceUuid | string | @alicloud/ros-cdk-core.IResolvable | Attribute InstanceUuid: Uuid of database instance. |
attrLogPlan | string | @alicloud/ros-cdk-core.IResolvable | Attribute LogPlan: Log backup plan schedule.More details see FullPlan. |
attrLogUuid | string | @alicloud/ros-cdk-core.IResolvable | Attribute LogUuid: Uuid of the log backup plan. |
attrMaxRateLimit | string | @alicloud/ros-cdk-core.IResolvable | Attribute MaxRateLimit: Max rate limit for backup job,. |
attrMaxRetrySeconds | string | @alicloud/ros-cdk-core.IResolvable | Attribute MaxRetrySeconds: Max retry seconds on network failure. |
attrOptions | string | @alicloud/ros-cdk-core.IResolvable | Attribute Options: Backup options in json format, different for each type of database. |
attrPlanId | string | @alicloud/ros-cdk-core.IResolvable | Attribute PlanId: Id of the backup plan. |
attrSourceType | string | @alicloud/ros-cdk-core.IResolvable | Attribute SourceType: Database type, allowed value: MYSQL, ORACLE, MSSQL. |
attrTarget | string | @alicloud/ros-cdk-core.IResolvable | Attribute Target: Target vault to backup. |
attrVaultId | string | @alicloud/ros-cdk-core.IResolvable | Attribute VaultId: Vault ID to create backup plan, the backup data will be stored to the vault. |
props | DbPlanProps | No description. |
nodeRequired
public readonly node: ConstructNode;
- Type: @alicloud/ros-cdk-core.ConstructNode
The construct tree node associated with this construct.
envRequired
public readonly env: IResourceEnvironment;
- Type: @alicloud/ros-cdk-core.IResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
refRequired
public readonly ref: string;
- Type: string
stackRequired
public readonly stack: Stack;
- Type: @alicloud/ros-cdk-core.Stack
The stack in which this resource is defined.
resourceOptional
public readonly resource: RosResource;
- Type: @alicloud/ros-cdk-core.RosResource
attrContinuousPlanRequired
public readonly attrContinuousPlan: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute ContinuousPlan: Continuous backup plan schedule.
Use { "type": "continuous" }.
attrContinuousUuidRequired
public readonly attrContinuousUuid: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute ContinuousUuid: Uuid of continuous backup plan.
attrCumulativePlanRequired
public readonly attrCumulativePlan: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute CumulativePlan: Cumulative plan schedule, only for mssql.
More details see FullPlan.
attrCumulativeUuidRequired
public readonly attrCumulativeUuid: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute CumulativeUuid: Uuid of cumulative plan.
attrDbPlanNameRequired
public readonly attrDbPlanName: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute DbPlanName: Display name of the backup plan.
attrFullPlanRequired
public readonly attrFullPlan: string | IResolvable;
- Type: string | @alicloud/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.
attrFullUuidRequired
public readonly attrFullUuid: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute FullUuid: Uuid of full backup plan.
attrHostUuidRequired
public readonly attrHostUuid: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute HostUuid: Uuid of the host of the database instance.
attrIncPlanRequired
public readonly attrIncPlan: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute IncPlan: Incremental backup plan schedule.
Only for mysql and oracle. More details see FullPlan.
attrIncUuidRequired
public readonly attrIncUuid: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute IncUuid: Uuid of the incremental bakcup plan.
attrInstanceUuidRequired
public readonly attrInstanceUuid: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute InstanceUuid: Uuid of database instance.
attrLogPlanRequired
public readonly attrLogPlan: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute LogPlan: Log backup plan schedule.More details see FullPlan.
attrLogUuidRequired
public readonly attrLogUuid: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute LogUuid: Uuid of the log backup plan.
attrMaxRateLimitRequired
public readonly attrMaxRateLimit: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute MaxRateLimit: Max rate limit for backup job,.
attrMaxRetrySecondsRequired
public readonly attrMaxRetrySeconds: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute MaxRetrySeconds: Max retry seconds on network failure.
attrOptionsRequired
public readonly attrOptions: string | IResolvable;
- Type: string | @alicloud/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}.
attrPlanIdRequired
public readonly attrPlanId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute PlanId: Id of the backup plan.
attrSourceTypeRequired
public readonly attrSourceType: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute SourceType: Database type, allowed value: MYSQL, ORACLE, MSSQL.
attrTargetRequired
public readonly attrTarget: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute Target: Target vault to backup.
attrVaultIdRequired
public readonly attrVaultId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute VaultId: Vault ID to create backup plan, the backup data will be stored to the vault.
propsRequired
public readonly props: DbPlanProps;
- Type: DbPlanProps