DATASOURCE::APIG::PluginClass

DATASOURCE::APIG::PluginClass类型用于获取插件类型信息。

语法

{
  "Type": "DATASOURCE::APIG::PluginClass",
  "Properties": {
    "PluginClassId": String,
    "RefreshOptions": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

PluginClassId

String

插件类型 ID。

RefreshOptions

String

当资源栈更新时,数据源资源的刷新策略。

有效值:

  • Never(默认值):更新堆栈时,从不刷新数据源资源。

  • Always:更新堆栈时,始终刷新数据源资源。

返回值

Fn::GetAtt

  • Type:插件类型

  • Description:插件类型描述。

  • PluginClassName:插件类型名称

  • Alias:插件类型别名

  • WasmLanguage:Wasm语言类型。

  • Document:插件的文档。

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  PluginClassId:
    Type: String
    Description:
      en: The ID of the plugin class.
    Required: true
Resources:
  ExtensionDataSource:
    Type: DATASOURCE::APIG::PluginClass
    Properties:
      PluginClassId:
        Ref: PluginClassId
Outputs:
  Type:
    Description: The type of the plugin class.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Type
  Description:
    Description: The description of the plugin class.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Description
  PluginClassName:
    Description: The name of the plugin class.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - PluginClassName
  Alias:
    Description: The alias of the plugin class.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Alias
  WasmLanguage:
    Description: Wasm language.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - WasmLanguage
  Document:
    Description: The document of the plugin.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Document
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "PluginClassId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the plugin class."
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::APIG::PluginClass",
      "Properties": {
        "PluginClassId": {
          "Ref": "PluginClassId"
        }
      }
    }
  },
  "Outputs": {
    "Type": {
      "Description": "The type of the plugin class.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Type"
        ]
      }
    },
    "Description": {
      "Description": "The description of the plugin class.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Description"
        ]
      }
    },
    "PluginClassName": {
      "Description": "The name of the plugin class.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "PluginClassName"
        ]
      }
    },
    "Alias": {
      "Description": "The alias of the plugin class.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Alias"
        ]
      }
    },
    "WasmLanguage": {
      "Description": "Wasm language.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "WasmLanguage"
        ]
      }
    },
    "Document": {
      "Description": "The document of the plugin.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Document"
        ]
      }
    }
  }
}