DATASOURCE::APIG::PluginClasses类型用于查询插件类型列表。
语法
{
  "Type": "DATASOURCE::APIG::PluginClasses",
  "Properties": {
    "RefreshOptions": String,
    "Type": String
  }
}属性
| 属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 | 
| RefreshOptions | String | 否 | 是 | 当资源栈更新时,数据源资源的刷新策略。 | 有效值: 
 | 
| Type | String | 否 | 是 | 插件类型。 | 无 | 
返回值
Fn::GetAtt
- PluginClasses:插件类型详情列表。 
- PluginClassIds:插件类型ID列表。 
| 属性名称 | 类型 | 描述 | 约束 | 
| PluginClassIds | List | 插件类型ID列表。 | 无 | 
| PluginClasses | List | 插件类型详情列表。 | 无 | 
| Description | String | 插件类型描述。 | 无 | 
| PluginClassId | String | 插件类型 ID。 | 无 | 
| Alias | String | 插件类型别名。 | 无 | 
| Version | String | 插件类型版本。 | 无 | 
| Type | String | 插件类型。 | 无 | 
| PluginClassName | String | 插件类型名称。 | 无 | 
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  Type:
    Type: String
    Description:
      en: The type of the plugin class.
    Required: false
Resources:
  ExtensionDataSource:
    Type: DATASOURCE::APIG::PluginClasses
    Properties:
      Type:
        Ref: Type
Outputs:
  PluginClasses:
    Description: The list of plugin classes.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - PluginClasses
  PluginClassIds:
    Description: The list of plugin class IDs.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - PluginClassIds
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "Type": {
      "Type": "String",
      "Description": {
        "en": "The type of the plugin class."
      },
      "Required": false
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::APIG::PluginClasses",
      "Properties": {
        "Type": {
          "Ref": "Type"
        }
      }
    }
  },
  "Outputs": {
    "PluginClasses": {
      "Description": "The list of plugin classes.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "PluginClasses"
        ]
      }
    },
    "PluginClassIds": {
      "Description": "The list of plugin class IDs.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "PluginClassIds"
        ]
      }
    }
  }
}
                        该文章对您有帮助吗?