The ALIYUN::DNS::RecoveryPlan resource creates a recovery plan.
Syntax
{
"Type": "ALIYUN::DNS::RecoveryPlan",
"Properties": {
"FaultAddrPool": List,
"Name": String,
"Lang": String,
"Remark": String
}
}
Properties
|
Parameter |
Type |
Required |
Update allowed |
Description |
Constraints |
|
FaultAddrPool |
List |
Yes |
Yes |
The fault address pool of the recovery plan. |
The value must be encoded in UTF-8. |
|
Name |
String |
Yes |
Yes |
The name of the recovery plan. |
The value must be a UTF-8 encoded string up to 128 bytes in length. |
|
Lang |
String |
No |
No |
The language of the request. |
None |
|
Remark |
String |
No |
Yes |
A remark for the recovery plan. |
The value must be a UTF-8 encoded string up to 256 bytes in length. |
Return values
Fn::GetAtt
RecoveryPlanId: The ID of the recovery plan.
Examples
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
FaultAddrPool:
AssociationPropertyMetadata:
Parameter:
Type: String
Required: false
AssociationProperty: List[Parameter]
Type: Json
Description: The fault address pool of the recovery plan. The value must be encoded in UTF-8.
Required: true
Name:
Type: String
Description: The name of the recovery plan. The value can be up to 128 bytes in length. The value must be encoded in UTF-8.
Required: true
Resources:
RecoveryPlan:
Type: ALIYUN::DNS::RecoveryPlan
Properties:
FaultAddrPool:
Ref: FaultAddrPool
Name:
Ref: Name
Outputs:
RecoveryPlanId:
Description: The ID of the recovery plan.
Value:
Fn::GetAtt:
- RecoveryPlan
- RecoveryPlanId
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"FaultAddrPool": {
"AssociationPropertyMetadata": {
"Parameter": {
"Type": "String",
"Required": false
}
},
"AssociationProperty": "List[Parameter]",
"Type": "Json",
"Description": "The fault address pool of the recovery plan. The value must be encoded in UTF-8.",
"Required": true
},
"Name": {
"Type": "String",
"Description": "The name of the recovery plan. The value can be up to 128 bytes in length. The value must be encoded in UTF-8.",
"Required": true
}
},
"Resources": {
"RecoveryPlan": {
"Type": "ALIYUN::DNS::RecoveryPlan",
"Properties": {
"FaultAddrPool": {
"Ref": "FaultAddrPool"
},
"Name": {
"Ref": "Name"
}
}
}
},
"Outputs": {
"RecoveryPlanId": {
"Description": "The ID of the recovery plan.",
"Value": {
"Fn::GetAtt": [
"RecoveryPlan",
"RecoveryPlanId"
]
}
}
}
}