ALIYUN::PVTZ::SyncEcsHost类型用于新增主机名同步任务。
语法
{
"Type": "ALIYUN::PVTZ::SyncEcsHost",
"Properties": {
"Regions": List,
"Status": String,
"ZoneId": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
Regions | List | 是 | 是 | 待同步的地域信息列表。 | {'Length': {'Min': 1, 'Max': 500}} |
Status | String | 是 | 是 | 主机同步任务状态。 | 取值:
|
ZoneId | String | 是 | 否 | Zone ID。 | 无 |
Regions语法
"Regions": [
{
"UserId": String,
"RegionId": String
}
]
Regions属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
RegionId | String | 是 | 是 | 地域 ID。 | 无 |
UserId | String | 否 | 是 | 地域归属的用户 ID。 | 用于跨账号同步场景。 |
返回值
Fn::GetAtt
无
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
Status:
Type: String
Description:
en: 'The host synchronizes the task state. Valid values: ON, OFF.'
AllowedValues:
- 'ON'
- 'OFF'
Required: true
ZoneId:
AssociationProperty: ZoneId
Type: String
Description:
en: Zone ID, a unique identifier for the Zone.
Required: true
Regions:
AssociationPropertyMetadata:
Parameters:
UserId:
Type: String
Description:
en: Region-owned user ID for cross-account sync scenarios.
Required: false
RegionId:
Type: String
Description:
en: Region id.
Required: true
AssociationProperty: List[Parameters]
Type: Json
Description:
en: A list of region information to be synchronized.
Required: true
MinLength: 1
MaxLength: 500
Resources:
SyncEcsHost:
Type: ALIYUN::PVTZ::SyncEcsHost
Properties:
Status:
Ref: Status
ZoneId:
Ref: ZoneId
Regions:
Ref: Regions
JSON格式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"Status": {
"Type": "String",
"Description": {
"en": "The host synchronizes the task state. Valid values: ON, OFF."
},
"AllowedValues": [
"ON",
"OFF"
],
"Required": true
},
"ZoneId": {
"AssociationProperty": "ZoneId",
"Type": "String",
"Description": {
"en": "Zone ID, a unique identifier for the Zone."
},
"Required": true
},
"Regions": {
"AssociationPropertyMetadata": {
"Parameters": {
"UserId": {
"Type": "String",
"Description": {
"en": "Region-owned user ID for cross-account sync scenarios."
},
"Required": false
},
"RegionId": {
"Type": "String",
"Description": {
"en": "Region id."
},
"Required": true
}
}
},
"AssociationProperty": "List[Parameters]",
"Type": "Json",
"Description": {
"en": "A list of region information to be synchronized."
},
"Required": true,
"MinLength": 1,
"MaxLength": 500
}
},
"Resources": {
"SyncEcsHost": {
"Type": "ALIYUN::PVTZ::SyncEcsHost",
"Properties": {
"Status": {
"Ref": "Status"
},
"ZoneId": {
"Ref": "ZoneId"
},
"Regions": {
"Ref": "Regions"
}
}
}
}
}