首页 资源编排 开发参考 资源类型 ESA ALIYUN::ESA::CustomList

ALIYUN::ESA::CustomList

更新时间: 2025-10-23 15:42:57

ALIYUN::ESA::CustomList类型用于创建自定义列表。

语法

{
  "Type": "ALIYUN::ESA::CustomList",
  "Properties": {
    "Items": List,
    "Kind": String,
    "ListName": String,
    "Description": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

Items

List

列表内容。

提供具体的列表项数据,最多支持配置500组内容。

Kind

String

列表种类。

取值:

  • host

  • ip

  • asn

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"
        ]
      }
    }
  }
}
                        
上一篇: ALIYUN::ESA::CompressionRule 下一篇: ALIYUN::ESA::CustomScenePolicy
阿里云首页 资源编排 相关技术圈