DATASOURCE::APIG::PluginClass类型用于获取插件类型信息。
语法
{
"Type": "DATASOURCE::APIG::PluginClass",
"Properties": {
"PluginClassId": String,
"RefreshOptions": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
PluginClassId | String | 是 | 是 | 插件类型 ID。 | 无 |
RefreshOptions | String | 否 | 是 | 当资源栈更新时,数据源资源的刷新策略。 | 有效值:
|
返回值
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"
]
}
}
}
}
该文章对您有帮助吗?