ALIYUN::HBR::ReplicationVault类型用于配置备份库复制。
语法
{
"Type": "ALIYUN::HBR::ReplicationVault",
"Properties": {
"ReplicationSourceRegionId": String,
"ReplicationSourceVaultId": String,
"VaultName": String,
"Description": String,
"EncryptType": String,
"KmsKeyId": String,
"RedundancyType": String,
"VaultStorageClass": String
}
}
属性
|
属性名称 |
类型 |
必须 |
允许更新 |
描述 |
约束 |
|
ReplicationSourceRegionId |
String |
是 |
否 |
用于复制的源仓库的区域ID。 |
无 |
|
ReplicationSourceVaultId |
String |
是 |
否 |
用于复制的源仓库的ID。 |
无 |
|
VaultName |
String |
是 |
是 |
仓库的名称。 |
长度范围:1-64。 |
|
Description |
String |
否 |
是 |
仓库的描述。 |
长度范围:0-255。 |
|
EncryptType |
String |
否 |
否 |
仓库的加密类型。 |
取值:
|
|
KmsKeyId |
String |
否 |
否 |
用于加密的KMS密钥ID。 |
无 |
|
RedundancyType |
String |
否 |
否 |
仓库的冗余类型。 |
取值:
|
|
VaultStorageClass |
String |
否 |
否 |
仓库的存储类型。 |
取值:
|
返回值
Fn::GetAtt
VaultId:仓库的ID。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
Description:
Type: String
AssociationProperty: TextArea
Description:
en: The description of the vault.
Required: false
MinLength: 0
MaxLength: 255
EncryptType:
Type: String
Description:
en: The encryption type of the vault.
AllowedValues:
- HBR_PRIVATE
- KMS
Required: false
KmsKeyId:
Type: String
Description:
en: The KMS key ID used for encryption.
Required: false
VaultName:
Type: String
Description:
en: The name of the vault.
Required: true
MinLength: 1
MaxLength: 64
VaultStorageClass:
Type: String
Description:
en: The storage class of the vault.
AllowedValues:
- STANDARD
- IA
- ARCHIVE
Required: false
RedundancyType:
Type: String
Description:
en: The redundancy type of the vault.
AllowedValues:
- LRS
- ZRS
Required: false
ReplicationSourceRegionId:
Type: String
Description:
en: The region ID of the source vault for replication.
Required: true
ReplicationSourceVaultId:
Type: String
Description:
en: The ID of the source vault for replication.
Required: true
Resources:
ReplicationVault:
Type: ALIYUN::HBR::ReplicationVault
Properties:
Description:
Ref: Description
EncryptType:
Ref: EncryptType
KmsKeyId:
Ref: KmsKeyId
VaultName:
Ref: VaultName
VaultStorageClass:
Ref: VaultStorageClass
RedundancyType:
Ref: RedundancyType
ReplicationSourceRegionId:
Ref: ReplicationSourceRegionId
ReplicationSourceVaultId:
Ref: ReplicationSourceVaultId
Outputs:
VaultId:
Description: The ID of the vault.
Value:
Fn::GetAtt:
- ReplicationVault
- VaultId
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"Description": {
"Type": "String",
"AssociationProperty": "TextArea",
"Description": {
"en": "The description of the vault."
},
"Required": false,
"MinLength": 0,
"MaxLength": 255
},
"EncryptType": {
"Type": "String",
"Description": {
"en": "The encryption type of the vault."
},
"AllowedValues": [
"HBR_PRIVATE",
"KMS"
],
"Required": false
},
"KmsKeyId": {
"Type": "String",
"Description": {
"en": "The KMS key ID used for encryption."
},
"Required": false
},
"VaultName": {
"Type": "String",
"Description": {
"en": "The name of the vault."
},
"Required": true,
"MinLength": 1,
"MaxLength": 64
},
"VaultStorageClass": {
"Type": "String",
"Description": {
"en": "The storage class of the vault."
},
"AllowedValues": [
"STANDARD",
"IA",
"ARCHIVE"
],
"Required": false
},
"RedundancyType": {
"Type": "String",
"Description": {
"en": "The redundancy type of the vault."
},
"AllowedValues": [
"LRS",
"ZRS"
],
"Required": false
},
"ReplicationSourceRegionId": {
"Type": "String",
"Description": {
"en": "The region ID of the source vault for replication."
},
"Required": true
},
"ReplicationSourceVaultId": {
"Type": "String",
"Description": {
"en": "The ID of the source vault for replication."
},
"Required": true
}
},
"Resources": {
"ReplicationVault": {
"Type": "ALIYUN::HBR::ReplicationVault",
"Properties": {
"Description": {
"Ref": "Description"
},
"EncryptType": {
"Ref": "EncryptType"
},
"KmsKeyId": {
"Ref": "KmsKeyId"
},
"VaultName": {
"Ref": "VaultName"
},
"VaultStorageClass": {
"Ref": "VaultStorageClass"
},
"RedundancyType": {
"Ref": "RedundancyType"
},
"ReplicationSourceRegionId": {
"Ref": "ReplicationSourceRegionId"
},
"ReplicationSourceVaultId": {
"Ref": "ReplicationSourceVaultId"
}
}
}
},
"Outputs": {
"VaultId": {
"Description": "The ID of the vault.",
"Value": {
"Fn::GetAtt": [
"ReplicationVault",
"VaultId"
]
}
}
}
}
该文章对您有帮助吗?