Skip to content

BackupPlan

  • Implements: @alicloud/ros-cdk-dbs.datasource.IBackupPlan

This class encapsulates and extends the ROS resource type DATASOURCE::DBS::BackupPlan.

Initializers

import { datasource } from '@alicloud/ros-cdk-dbs'
new datasource.BackupPlan(scope: Construct, id: string, props: BackupPlanProps, enableResourcePropertyConstraint?: boolean)
Name Type Description
scope @alicloud/ros-cdk-core.Construct No description.
id string No description.
props BackupPlanProps No description.
enableResourcePropertyConstraint boolean No description.

scopeRequired

  • Type: @alicloud/ros-cdk-core.Construct

idRequired

  • Type: string

propsRequired


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.

sessionRequired

  • Type: @alicloud/ros-cdk-core.ISynthesisSession

The synthesis session.


addCondition

public addCondition(condition: RosCondition): void

conditionRequired

  • Type: @alicloud/ros-cdk-core.RosCondition

addCount

public addCount(count: number | IResolvable): void

countRequired

  • Type: number | @alicloud/ros-cdk-core.IResolvable

addDependency

public addDependency(resource: Resource): void

resourceRequired

  • Type: @alicloud/ros-cdk-core.Resource

addResourceDesc

public addResourceDesc(desc: string): void

descRequired

  • Type: string

applyRemovalPolicy

public applyRemovalPolicy(policy: RemovalPolicy): void

policyRequired

  • Type: @alicloud/ros-cdk-core.RemovalPolicy

fetchCondition

public fetchCondition(): RosCondition

fetchDependency

public fetchDependency(): string[]

fetchResourceDesc

public fetchResourceDesc(): string

getAtt

public getAtt(name: string): IResolvable

nameRequired

  • Type: string

setMetadata

public setMetadata(key: string, value: any): void

keyRequired

  • Type: string

valueRequired

  • Type: any

Static Functions

Name Description
isConstruct Return whether the given object is a Construct.

isConstruct

import { datasource } from '@alicloud/ros-cdk-dbs'
datasource.BackupPlan.isConstruct(x: any)

Return whether the given object is a Construct.

xRequired

  • 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.
attrBackupGatewayId string | @alicloud/ros-cdk-core.IResolvable Attribute BackupGatewayId: The ID of the backup gateway.
attrBackupMethod string | @alicloud/ros-cdk-core.IResolvable Attribute BackupMethod: Backup method.
attrBackupObjects string | @alicloud/ros-cdk-core.IResolvable Attribute BackupObjects: The backup object.
attrBackupPeriod string | @alicloud/ros-cdk-core.IResolvable Attribute BackupPeriod: Full backup cycle.
attrBackupPlanId string | @alicloud/ros-cdk-core.IResolvable Attribute BackupPlanId: The ID of the backup plan.
attrBackupPlanName string | @alicloud/ros-cdk-core.IResolvable Attribute BackupPlanName: The name of the backup plan.
attrBackupRetentionPeriod string | @alicloud/ros-cdk-core.IResolvable Attribute BackupRetentionPeriod: The retention time of backup data.
attrBackupStartTime string | @alicloud/ros-cdk-core.IResolvable Attribute BackupStartTime: The start time of full Backup.
attrBackupStorageType string | @alicloud/ros-cdk-core.IResolvable Attribute BackupStorageType: Built-in storage type:.
attrCreateTime string | @alicloud/ros-cdk-core.IResolvable Attribute CreateTime: The creation time of the backup plans.
attrCrossAliyunId string | @alicloud/ros-cdk-core.IResolvable Attribute CrossAliyunId: The UID that is backed up across Alibaba cloud accounts.
attrCrossRoleName string | @alicloud/ros-cdk-core.IResolvable Attribute CrossRoleName: The name of the RAM role that is backed up across Alibaba cloud accounts.
attrDatabaseType string | @alicloud/ros-cdk-core.IResolvable Attribute DatabaseType: Database type.
attrDuplicationArchivePeriod string | @alicloud/ros-cdk-core.IResolvable Attribute DuplicationArchivePeriod: The storage time for conversion to archive cold standby is 365 days by default.
attrDuplicationInfrequentAccessPeriod string | @alicloud/ros-cdk-core.IResolvable Attribute DuplicationInfrequentAccessPeriod: The storage time is converted to low-frequency access.
attrEnableBackupLog string | @alicloud/ros-cdk-core.IResolvable Attribute EnableBackupLog: Whether to enable incremental log Backup.
attrInstanceClass string | @alicloud/ros-cdk-core.IResolvable Attribute InstanceClass: Instance class.
attrOssBucketName string | @alicloud/ros-cdk-core.IResolvable Attribute OssBucketName: OSS Bucket name.
attrPaymentType string | @alicloud/ros-cdk-core.IResolvable Attribute PaymentType: The payment type of the resource.
attrResourceGroupId string | @alicloud/ros-cdk-core.IResolvable Attribute ResourceGroupId: The ID of the resource group.
attrSourceEndpointDatabaseName string | @alicloud/ros-cdk-core.IResolvable Attribute SourceEndpointDatabaseName: The name of the database.
attrSourceEndpointInstanceId string | @alicloud/ros-cdk-core.IResolvable Attribute SourceEndpointInstanceId: The ID of the database instance.
attrSourceEndpointInstanceType string | @alicloud/ros-cdk-core.IResolvable Attribute SourceEndpointInstanceType: The location of the database.
attrSourceEndpointRegion string | @alicloud/ros-cdk-core.IResolvable Attribute SourceEndpointRegion: The region of the database.
attrSourceEndpointSid string | @alicloud/ros-cdk-core.IResolvable Attribute SourceEndpointSid: Oracle SID name.
attrSourceEndpointUserName string | @alicloud/ros-cdk-core.IResolvable Attribute SourceEndpointUserName: Database account.
props BackupPlanProps 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

attrBackupGatewayIdRequired

public readonly attrBackupGatewayId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute BackupGatewayId: The ID of the backup gateway.


attrBackupMethodRequired

public readonly attrBackupMethod: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute BackupMethod: Backup method.


attrBackupObjectsRequired

public readonly attrBackupObjects: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute BackupObjects: The backup object.


attrBackupPeriodRequired

public readonly attrBackupPeriod: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute BackupPeriod: Full backup cycle.


attrBackupPlanIdRequired

public readonly attrBackupPlanId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute BackupPlanId: The ID of the backup plan.


attrBackupPlanNameRequired

public readonly attrBackupPlanName: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute BackupPlanName: The name of the backup plan.


attrBackupRetentionPeriodRequired

public readonly attrBackupRetentionPeriod: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute BackupRetentionPeriod: The retention time of backup data.

Valid values: 0 to 1825. Default value: 730 days.


attrBackupStartTimeRequired

public readonly attrBackupStartTime: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute BackupStartTime: The start time of full Backup.


attrBackupStorageTypeRequired

public readonly attrBackupStorageType: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute BackupStorageType: Built-in storage type:.


attrCreateTimeRequired

public readonly attrCreateTime: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute CreateTime: The creation time of the backup plans.


attrCrossAliyunIdRequired

public readonly attrCrossAliyunId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute CrossAliyunId: The UID that is backed up across Alibaba cloud accounts.


attrCrossRoleNameRequired

public readonly attrCrossRoleName: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute CrossRoleName: The name of the RAM role that is backed up across Alibaba cloud accounts.


attrDatabaseTypeRequired

public readonly attrDatabaseType: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute DatabaseType: Database type.


attrDuplicationArchivePeriodRequired

public readonly attrDuplicationArchivePeriod: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute DuplicationArchivePeriod: The storage time for conversion to archive cold standby is 365 days by default.


attrDuplicationInfrequentAccessPeriodRequired

public readonly attrDuplicationInfrequentAccessPeriod: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute DuplicationInfrequentAccessPeriod: The storage time is converted to low-frequency access.

The default time is 180 days.


attrEnableBackupLogRequired

public readonly attrEnableBackupLog: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute EnableBackupLog: Whether to enable incremental log Backup.


attrInstanceClassRequired

public readonly attrInstanceClass: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute InstanceClass: Instance class.


attrOssBucketNameRequired

public readonly attrOssBucketName: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute OssBucketName: OSS Bucket name.


attrPaymentTypeRequired

public readonly attrPaymentType: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute PaymentType: The payment type of the resource.


attrResourceGroupIdRequired

public readonly attrResourceGroupId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute ResourceGroupId: The ID of the resource group.


attrSourceEndpointDatabaseNameRequired

public readonly attrSourceEndpointDatabaseName: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute SourceEndpointDatabaseName: The name of the database.


attrSourceEndpointInstanceIdRequired

public readonly attrSourceEndpointInstanceId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute SourceEndpointInstanceId: The ID of the database instance.


attrSourceEndpointInstanceTypeRequired

public readonly attrSourceEndpointInstanceType: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute SourceEndpointInstanceType: The location of the database.


attrSourceEndpointRegionRequired

public readonly attrSourceEndpointRegion: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute SourceEndpointRegion: The region of the database.


attrSourceEndpointSidRequired

public readonly attrSourceEndpointSid: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute SourceEndpointSid: Oracle SID name.


attrSourceEndpointUserNameRequired

public readonly attrSourceEndpointUserName: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute SourceEndpointUserName: Database account.


propsRequired

public readonly props: BackupPlanProps;