ALIYUN::HBR::ReplicationVault

更新时间:
复制为 MD 格式

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

仓库的加密类型。

取值:

  • HBR_PRIVATE

  • KMS

KmsKeyId

String

用于加密的KMS密钥ID。

RedundancyType

String

仓库的冗余类型。

取值:

  • LRS

  • ZRS

VaultStorageClass

String

仓库的存储类型。

取值:

  • STANDARD

  • IA

  • ARCHIVE

返回值

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"
        ]
      }
    }
  }
}