Vault
- Implements: IVault
This class encapsulates and extends the ROS resource type ALIYUN::HBR::Vault.
Initializers
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkhbr"
alicloudroscdkhbr.NewVault(scope Construct, id *string, props VaultProps, enableResourcePropertyConstraint *bool) Vault
| Name | Type | Description |
|---|---|---|
scope | github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Construct | No description. |
id | *string | No description. |
props | VaultProps | No description. |
enableResourcePropertyConstraint | *bool | No description. |
scopeRequired
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Construct
idRequired
- Type: *string
propsRequired
- Type: VaultProps
enableResourcePropertyConstraintOptional
- 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. |
FetchCondition | No description. |
FetchDependency | No description. |
FetchResourceDesc | No description. |
GetAtt | No description. |
SetMetadata | No description. |
ToString
func ToString() *string
Returns a string representation of this construct.
Synthesize
func Synthesize(session ISynthesisSession)
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: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ISynthesisSession
The synthesis session.
AddCondition
func AddCondition(condition RosCondition)
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosCondition
AddCount
func AddCount(count interface{})
- Type: interface{}
AddDependency
func AddDependency(resource Resource)
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Resource
AddResourceDesc
func AddResourceDesc(desc *string)
- Type: *string
ApplyRemovalPolicy
func ApplyRemovalPolicy(policy RemovalPolicy)
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RemovalPolicy
FetchCondition
func FetchCondition() RosCondition
FetchDependency
func FetchDependency() *[]*string
FetchResourceDesc
func FetchResourceDesc() *string
GetAtt
func GetAtt(name *string) IResolvable
- Type: *string
SetMetadata
func SetMetadata(key *string, value interface{})
- Type: *string
- Type: interface{}
Static Functions
| Name | Description |
|---|---|
IsConstruct | Return whether the given object is a Construct. |
IsConstruct
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkhbr"
alicloudroscdkhbr.Vault_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct.
- Type: interface{}
Properties
| Name | Type | Description |
|---|---|---|
Node | github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ConstructNode | The construct tree node associated with this construct. |
Env | github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResourceEnvironment | The environment this resource belongs to. |
Ref | *string | No description. |
Stack | github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Stack | The stack in which this resource is defined. |
Resource | github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosResource | No description. |
AttrBackupPlanStatistics | interface{} | Attribute BackupPlanStatistics: The statistics of backup plans that use the backup vault. |
AttrBytesDone | interface{} | Attribute BytesDone: The amount of data that is backed up. |
AttrCreateTime | interface{} | Attribute CreateTime: The time when the backup vault was created. |
AttrDedup | interface{} | Attribute Dedup: Indicates whether the deduplication feature is enabled. |
AttrDescription | interface{} | Attribute Description: The description of the backup vault. |
AttrIndexAvailable | interface{} | Attribute IndexAvailable: Indicates whether indexes are available. |
AttrIndexLevel | interface{} | Attribute IndexLevel: The index level. |
AttrIndexUpdateTime | interface{} | Attribute IndexUpdateTime: The time when the index was updated. |
AttrLatestReplicationTime | interface{} | Attribute LatestReplicationTime: The time when the last remote backup was synchronized. |
AttrPaymentType | interface{} | Attribute PaymentType: PaymentType. |
AttrRedundancyType | interface{} | Attribute RedundancyType: The data redundancy type of the backup vault. |
AttrReplication | interface{} | Attribute Replication: Indicates whether the backup vault is a remote backup vault. |
AttrReplicationProgress | interface{} | Attribute ReplicationProgress: The progress of data synchronization from the backup vault to the mirror vault. |
AttrReplicationSourceRegionId | interface{} | Attribute ReplicationSourceRegionId: The ID of the region where the remote backup vault resides. |
AttrReplicationSourceVaultId | interface{} | Attribute ReplicationSourceVaultId: The ID of the source vault that corresponds to the remote backup vault. |
AttrResourceGroupId | interface{} | Attribute ResourceGroupId: The ID of the resource group. |
AttrRetention | interface{} | Attribute Retention: The retention period of the backup vault. |
AttrSearchEnabled | interface{} | Attribute SearchEnabled: Indicates whether the backup search feature is enabled. |
AttrSourceTypes | interface{} | Attribute SourceTypes: The information about the data source. |
AttrStorageSize | interface{} | Attribute StorageSize: The usage of the backup vault. |
AttrTags | interface{} | Attribute Tags: The tags of the backup vault. |
AttrTrialInfo | interface{} | Attribute TrialInfo: The free trial information. |
AttrUpdatedTime | interface{} | Attribute UpdatedTime: The time when the backup vault was updated. |
AttrVaultId | interface{} | Attribute VaultId: The ID of the backup vault. |
AttrVaultName | interface{} | Attribute VaultName: The name of the backup vault. |
AttrVaultStatusMessage | interface{} | Attribute VaultStatusMessage: The status message that is returned when the backup vault is in the ERROR state. |
AttrVaultStorageClass | interface{} | Attribute VaultStorageClass: The storage type of the backup vault. |
AttrVaultType | interface{} | Attribute VaultType: The type of the backup vault. |
Props | VaultProps | No description. |
NodeRequired
func Node() ConstructNode
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ConstructNode
The construct tree node associated with this construct.
EnvRequired
func Env() IResourceEnvironment
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.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
func Ref() *string
- Type: *string
StackRequired
func Stack() Stack
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Stack
The stack in which this resource is defined.
ResourceOptional
func Resource() RosResource
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosResource
AttrBackupPlanStatisticsRequired
func AttrBackupPlanStatistics() interface{}
- Type: interface{}
Attribute BackupPlanStatistics: The statistics of backup plans that use the backup vault.
AttrBytesDoneRequired
func AttrBytesDone() interface{}
- Type: interface{}
Attribute BytesDone: The amount of data that is backed up.
Unit: bytes.
AttrCreateTimeRequired
func AttrCreateTime() interface{}
- Type: interface{}
Attribute CreateTime: The time when the backup vault was created.
This value is a UNIX timestamp. Unit: seconds.
AttrDedupRequired
func AttrDedup() interface{}
- Type: interface{}
Attribute Dedup: Indicates whether the deduplication feature is enabled.
AttrDescriptionRequired
func AttrDescription() interface{}
- Type: interface{}
Attribute Description: The description of the backup vault.
AttrIndexAvailableRequired
func AttrIndexAvailable() interface{}
- Type: interface{}
Attribute IndexAvailable: Indicates whether indexes are available.
Indexes are available when they are not being updated.
AttrIndexLevelRequired
func AttrIndexLevel() interface{}
- Type: interface{}
Attribute IndexLevel: The index level.
- OFF: No indexes are created.
- META: Metadata indexes are created.
- ALL: Full-text indexes are created.
AttrIndexUpdateTimeRequired
func AttrIndexUpdateTime() interface{}
- Type: interface{}
Attribute IndexUpdateTime: The time when the index was updated.
AttrLatestReplicationTimeRequired
func AttrLatestReplicationTime() interface{}
- Type: interface{}
Attribute LatestReplicationTime: The time when the last remote backup was synchronized.
This value is a UNIX timestamp. Unit: seconds.
AttrPaymentTypeRequired
func AttrPaymentType() interface{}
- Type: interface{}
Attribute PaymentType: PaymentType.
AttrRedundancyTypeRequired
func AttrRedundancyType() interface{}
- Type: interface{}
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
func AttrReplication() interface{}
- Type: interface{}
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
func AttrReplicationProgress() interface{}
- Type: interface{}
Attribute ReplicationProgress: The progress of data synchronization from the backup vault to the mirror vault.
AttrReplicationSourceRegionIdRequired
func AttrReplicationSourceRegionId() interface{}
- Type: interface{}
Attribute ReplicationSourceRegionId: The ID of the region where the remote backup vault resides.
AttrReplicationSourceVaultIdRequired
func AttrReplicationSourceVaultId() interface{}
- Type: interface{}
Attribute ReplicationSourceVaultId: The ID of the source vault that corresponds to the remote backup vault.
AttrResourceGroupIdRequired
func AttrResourceGroupId() interface{}
- Type: interface{}
Attribute ResourceGroupId: The ID of the resource group.
AttrRetentionRequired
func AttrRetention() interface{}
- Type: interface{}
Attribute Retention: The retention period of the backup vault.
Unit: days.
AttrSearchEnabledRequired
func AttrSearchEnabled() interface{}
- Type: interface{}
Attribute SearchEnabled: Indicates whether the backup search feature is enabled.
AttrSourceTypesRequired
func AttrSourceTypes() interface{}
- Type: interface{}
Attribute SourceTypes: The information about the data source.
AttrStorageSizeRequired
func AttrStorageSize() interface{}
- Type: interface{}
Attribute StorageSize: The usage of the backup vault.
Unit: bytes.
AttrTagsRequired
func AttrTags() interface{}
- Type: interface{}
Attribute Tags: The tags of the backup vault.
AttrTrialInfoRequired
func AttrTrialInfo() interface{}
- Type: interface{}
Attribute TrialInfo: The free trial information.
AttrUpdatedTimeRequired
func AttrUpdatedTime() interface{}
- Type: interface{}
Attribute UpdatedTime: The time when the backup vault was updated.
This value is a UNIX timestamp. Unit: seconds.
AttrVaultIdRequired
func AttrVaultId() interface{}
- Type: interface{}
Attribute VaultId: The ID of the backup vault.
AttrVaultNameRequired
func AttrVaultName() interface{}
- Type: interface{}
Attribute VaultName: The name of the backup vault.
AttrVaultStatusMessageRequired
func AttrVaultStatusMessage() interface{}
- Type: interface{}
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
func AttrVaultStorageClass() interface{}
- Type: interface{}
Attribute VaultStorageClass: The storage type of the backup vault.
Valid value: STANDARD, which indicates standard storage.
AttrVaultTypeRequired
func AttrVaultType() interface{}
- Type: interface{}
Attribute VaultType: The type of the backup vault.
Valid value: STANDARD, which indicates a standard backup vault.
PropsRequired
func Props() VaultProps
- Type: VaultProps