Skip to content

Vault

This class encapsulates and extends the ROS resource type ALIYUN::HBR::Vault.

Initializers

import { Vault } from '@alicloud/ros-cdk-hbr'
new Vault(scope: Construct, id: string, props: VaultProps, enableResourcePropertyConstraint?: boolean)
Name Type Description
scope @alicloud/ros-cdk-core.Construct No description.
id string No description.
props VaultProps 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 { Vault } from '@alicloud/ros-cdk-hbr'
Vault.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.
attrBackupPlanStatistics string | @alicloud/ros-cdk-core.IResolvable Attribute BackupPlanStatistics: The statistics of backup plans that use the backup vault.
attrBytesDone string | @alicloud/ros-cdk-core.IResolvable Attribute BytesDone: The amount of data that is backed up.
attrCreateTime string | @alicloud/ros-cdk-core.IResolvable Attribute CreateTime: The time when the backup vault was created.
attrDedup string | @alicloud/ros-cdk-core.IResolvable Attribute Dedup: Indicates whether the deduplication feature is enabled.
attrDescription string | @alicloud/ros-cdk-core.IResolvable Attribute Description: The description of the backup vault.
attrIndexAvailable string | @alicloud/ros-cdk-core.IResolvable Attribute IndexAvailable: Indicates whether indexes are available.
attrIndexLevel string | @alicloud/ros-cdk-core.IResolvable Attribute IndexLevel: The index level.
attrIndexUpdateTime string | @alicloud/ros-cdk-core.IResolvable Attribute IndexUpdateTime: The time when the index was updated.
attrLatestReplicationTime string | @alicloud/ros-cdk-core.IResolvable Attribute LatestReplicationTime: The time when the last remote backup was synchronized.
attrPaymentType string | @alicloud/ros-cdk-core.IResolvable Attribute PaymentType: PaymentType.
attrRedundancyType string | @alicloud/ros-cdk-core.IResolvable Attribute RedundancyType: The data redundancy type of the backup vault.
attrReplication string | @alicloud/ros-cdk-core.IResolvable Attribute Replication: Indicates whether the backup vault is a remote backup vault.
attrReplicationProgress string | @alicloud/ros-cdk-core.IResolvable Attribute ReplicationProgress: The progress of data synchronization from the backup vault to the mirror vault.
attrReplicationSourceRegionId string | @alicloud/ros-cdk-core.IResolvable Attribute ReplicationSourceRegionId: The ID of the region where the remote backup vault resides.
attrReplicationSourceVaultId string | @alicloud/ros-cdk-core.IResolvable Attribute ReplicationSourceVaultId: The ID of the source vault that corresponds to the remote backup vault.
attrResourceGroupId string | @alicloud/ros-cdk-core.IResolvable Attribute ResourceGroupId: The ID of the resource group.
attrRetention string | @alicloud/ros-cdk-core.IResolvable Attribute Retention: The retention period of the backup vault.
attrSearchEnabled string | @alicloud/ros-cdk-core.IResolvable Attribute SearchEnabled: Indicates whether the backup search feature is enabled.
attrSourceTypes string | @alicloud/ros-cdk-core.IResolvable Attribute SourceTypes: The information about the data source.
attrStorageSize string | @alicloud/ros-cdk-core.IResolvable Attribute StorageSize: The usage of the backup vault.
attrTags string | @alicloud/ros-cdk-core.IResolvable Attribute Tags: The tags of the backup vault.
attrTrialInfo string | @alicloud/ros-cdk-core.IResolvable Attribute TrialInfo: The free trial information.
attrUpdatedTime string | @alicloud/ros-cdk-core.IResolvable Attribute UpdatedTime: The time when the backup vault was updated.
attrVaultId string | @alicloud/ros-cdk-core.IResolvable Attribute VaultId: The ID of the backup vault.
attrVaultName string | @alicloud/ros-cdk-core.IResolvable Attribute VaultName: The name of the backup vault.
attrVaultStatusMessage string | @alicloud/ros-cdk-core.IResolvable Attribute VaultStatusMessage: The status message that is returned when the backup vault is in the ERROR state.
attrVaultStorageClass string | @alicloud/ros-cdk-core.IResolvable Attribute VaultStorageClass: The storage type of the backup vault.
attrVaultType string | @alicloud/ros-cdk-core.IResolvable Attribute VaultType: The type of the backup vault.
props VaultProps 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

attrBackupPlanStatisticsRequired

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

Attribute BackupPlanStatistics: The statistics of backup plans that use the backup vault.


attrBytesDoneRequired

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

Attribute BytesDone: The amount of data that is backed up.

Unit: bytes.


attrCreateTimeRequired

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

Attribute CreateTime: The time when the backup vault was created.

This value is a UNIX timestamp. Unit: seconds.


attrDedupRequired

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

Attribute Dedup: Indicates whether the deduplication feature is enabled.


attrDescriptionRequired

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

Attribute Description: The description of the backup vault.


attrIndexAvailableRequired

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

Attribute IndexAvailable: Indicates whether indexes are available.

Indexes are available when they are not being updated.


attrIndexLevelRequired

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

Attribute IndexLevel: The index level.

OFF: No indexes are created. - META: Metadata indexes are created. - ALL: Full-text indexes are created.


attrIndexUpdateTimeRequired

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

Attribute IndexUpdateTime: The time when the index was updated.


attrLatestReplicationTimeRequired

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

Attribute LatestReplicationTime: The time when the last remote backup was synchronized.

This value is a UNIX timestamp. Unit: seconds.


attrPaymentTypeRequired

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

Attribute PaymentType: PaymentType.


attrRedundancyTypeRequired

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

Attribute RedundancyType: The data redundancy type of the backup vault.

Valid values: - LRS: Locally redundant storage (LRS) is enabled for the backup vault. HBR stores the copies of each object on multiple devices of different facilities in the same zone. This way, HBR ensures data durability and availability even if hardware failures occur. - ZRS: Zone-redundant storage (ZRS) is enabled for the backup vault. HBR uses the multi-zone mechanism to distribute data across three zones within the same region. If a zone fails, the data that is stored in the other two zones is still accessible.


attrReplicationRequired

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

Attribute Replication: Indicates whether the backup vault is a remote backup vault.

Valid values: - true: The backup vault is a remote backup vault. - false: The backup vault is an on-premises backup vault.


attrReplicationProgressRequired

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

Attribute ReplicationProgress: The progress of data synchronization from the backup vault to the mirror vault.


attrReplicationSourceRegionIdRequired

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

Attribute ReplicationSourceRegionId: The ID of the region where the remote backup vault resides.


attrReplicationSourceVaultIdRequired

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

Attribute ReplicationSourceVaultId: The ID of the source vault that corresponds to the remote backup vault.


attrResourceGroupIdRequired

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

Attribute ResourceGroupId: The ID of the resource group.


attrRetentionRequired

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

Attribute Retention: The retention period of the backup vault.

Unit: days.


attrSearchEnabledRequired

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

Attribute SearchEnabled: Indicates whether the backup search feature is enabled.


attrSourceTypesRequired

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

Attribute SourceTypes: The information about the data source.


attrStorageSizeRequired

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

Attribute StorageSize: The usage of the backup vault.

Unit: bytes.


attrTagsRequired

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

Attribute Tags: The tags of the backup vault.


attrTrialInfoRequired

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

Attribute TrialInfo: The free trial information.


attrUpdatedTimeRequired

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

Attribute UpdatedTime: The time when the backup vault was updated.

This value is a UNIX timestamp. Unit: seconds.


attrVaultIdRequired

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

Attribute VaultId: The ID of the backup vault.


attrVaultNameRequired

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

Attribute VaultName: The name of the backup vault.


attrVaultStatusMessageRequired

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

Attribute VaultStatusMessage: The status message that is returned when the backup vault is in the ERROR state.

This parameter is available only for remote backup vaults. Valid values: - UNKNOWN_ERROR*: An unknown error occurs. - SOURCE_VAULT_ALREADY_HAS_REPLICATION**: A mirror vault is configured for the source vault.


attrVaultStorageClassRequired

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

Attribute VaultStorageClass: The storage type of the backup vault.

Valid value: STANDARD, which indicates standard storage.


attrVaultTypeRequired

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

Attribute VaultType: The type of the backup vault.

Valid value: STANDARD, which indicates a standard backup vault.


propsRequired

public readonly props: VaultProps;