ALIYUN::ESA::CustomList
ALIYUN::ESA::CustomList类型用于创建自定义列表。
语法
{
"Type": "ALIYUN::ESA::CustomList",
"Properties": {
"Items": List,
"Kind": String,
"ListName": String,
"Description": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
Items | List | 是 | 是 | 列表内容。 | 提供具体的列表项数据,最多支持配置500组内容。 |
Kind | String | 是 | 否 | 列表种类。 | 取值:
|
ListName | String | 是 | 是 | 列表名称。 | 无 |
Description | String | 否 | 是 | 列表描述。 | 无 |
返回值
Fn::GetAtt
Description:列表描述。
ListId:自定义列表的 ID。
ListName:列表名称。
Kind:列表种类。
UpdateTime:列表更新时间。
Items:列表内容。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
ListName:
Type: String
Description:
en: The name of the custom list.
Required: true
Kind:
Type: String
Description:
en: The type of the custom list.
AllowedValues:
- host
- ip
- asn
Required: true
Items:
AssociationPropertyMetadata:
Parameter:
Type: String
Description:
en: The item in the custom list.
Required: false
AssociationProperty: List[Parameter]
Type: Json
Description:
en: The items in the custom list, which are displayed as an array.
Required: true
MinLength: 0
MaxLength: 500
Resources:
ExtensionResource:
Type: ALIYUN::ESA::CustomList
Properties:
ListName:
Ref: ListName
Kind:
Ref: Kind
Items:
Ref: Items
Outputs:
Description:
Description: The description of the custom list.
Value:
Fn::GetAtt:
- ExtensionResource
- Description
ListId:
Description: The id of the custom list .
Value:
Fn::GetAtt:
- ExtensionResource
- ListId
ListName:
Description: The name of the custom list.
Value:
Fn::GetAtt:
- ExtensionResource
- ListName
Kind:
Description: The type of the custom list.
Value:
Fn::GetAtt:
- ExtensionResource
- Kind
UpdateTime:
Description: The time when the custom list was last modified.
Value:
Fn::GetAtt:
- ExtensionResource
- UpdateTime
Items:
Description: The items in the custom list, which are displayed as an array.
Value:
Fn::GetAtt:
- ExtensionResource
- Items
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"ListName": {
"Type": "String",
"Description": {
"en": "The name of the custom list."
},
"Required": true
},
"Kind": {
"Type": "String",
"Description": {
"en": "The type of the custom list."
},
"AllowedValues": [
"host",
"ip",
"asn"
],
"Required": true
},
"Items": {
"AssociationPropertyMetadata": {
"Parameter": {
"Type": "String",
"Description": {
"en": "The item in the custom list."
},
"Required": false
}
},
"AssociationProperty": "List[Parameter]",
"Type": "Json",
"Description": {
"en": "The items in the custom list, which are displayed as an array."
},
"Required": true,
"MinLength": 0,
"MaxLength": 500
}
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::ESA::CustomList",
"Properties": {
"ListName": {
"Ref": "ListName"
},
"Kind": {
"Ref": "Kind"
},
"Items": {
"Ref": "Items"
}
}
}
},
"Outputs": {
"Description": {
"Description": "The description of the custom list.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Description"
]
}
},
"ListId": {
"Description": "The id of the custom list .",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"ListId"
]
}
},
"ListName": {
"Description": "The name of the custom list.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"ListName"
]
}
},
"Kind": {
"Description": "The type of the custom list.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Kind"
]
}
},
"UpdateTime": {
"Description": "The time when the custom list was last modified.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"UpdateTime"
]
}
},
"Items": {
"Description": "The items in the custom list, which are displayed as an array.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Items"
]
}
}
}
}