ALIYUN::DNS::RecoveryPlan

更新时间:
复制为 MD 格式

ALIYUN::DNS::RecoveryPlan类型用于新增容灾预案。

语法

{
  "Type": "ALIYUN::DNS::RecoveryPlan",
  "Properties": {
    "FaultAddrPool": List,
    "Name": String,
    "Lang": String,
    "Remark": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

FaultAddrPool

List

恢复计划的故障地址池。

属性值必须使用UTF-8编码。

Name

String

恢复计划的名称。

属性值长度最多为128字节。值必须使用UTF-8编码。

Lang

String

请求的语言。

Remark

String

恢复计划的备注。

属性值长度最多为256字节。值必须使用UTF-8编码。

返回值

Fn::GetAtt

RecoveryPlanId:恢复计划的ID。

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  FaultAddrPool:
    AssociationPropertyMetadata:
      Parameter:
        Type: String
        Required: false
    AssociationProperty: List[Parameter]
    Type: Json
    Description:
      en: The fault address pool of the recovery plan. The value must be encoded in UTF-8.
      zh: 恢复计划的故障地址池。值必须使用UTF-8编码。
    Required: true
  Name:
    Type: String
    Description:
      en: The name of the recovery plan. The value can be up to 128 bytes in length. The value must be encoded in UTF-8.
      zh: 恢复计划的名称。值长度最多为128字节。值必须使用UTF-8编码。
    Required: true
Resources:
  RecoveryPlan:
    Type: ALIYUN::DNS::RecoveryPlan
    Properties:
      FaultAddrPool:
        Ref: FaultAddrPool
      Name:
        Ref: Name
Outputs:
  RecoveryPlanId:
    Description:
      en: The ID of the recovery plan.
      zh: 恢复计划的ID。
    Value:
      Fn::GetAtt:
        - RecoveryPlan
        - RecoveryPlanId
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "FaultAddrPool": {
      "AssociationPropertyMetadata": {
        "Parameter": {
          "Type": "String",
          "Required": false
        }
      },
      "AssociationProperty": "List[Parameter]",
      "Type": "Json",
      "Description": {
        "en": "The fault address pool of the recovery plan. The value must be encoded in UTF-8.",
        "zh": "恢复计划的故障地址池。值必须使用UTF-8编码。"
      },
      "Required": true
    },
    "Name": {
      "Type": "String",
      "Description": {
        "en": "The name of the recovery plan. The value can be up to 128 bytes in length. The value must be encoded in UTF-8.",
        "zh": "恢复计划的名称。值长度最多为128字节。值必须使用UTF-8编码。"
      },
      "Required": true
    }
  },
  "Resources": {
    "RecoveryPlan": {
      "Type": "ALIYUN::DNS::RecoveryPlan",
      "Properties": {
        "FaultAddrPool": {
          "Ref": "FaultAddrPool"
        },
        "Name": {
          "Ref": "Name"
        }
      }
    }
  },
  "Outputs": {
    "RecoveryPlanId": {
      "Description": {
        "en": "The ID of the recovery plan.",
        "zh": "恢复计划的ID。"
      },
      "Value": {
        "Fn::GetAtt": [
          "RecoveryPlan",
          "RecoveryPlanId"
        ]
      }
    }
  }
}