DATASOURCE::APIG::Plugin类型用于查询插件信息。
语法
{
"Type": "DATASOURCE::APIG::Plugin",
"Properties": {
"PluginId": String,
"RefreshOptions": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
PluginId | String | 是 | 是 | 插件 ID。 | 无 |
RefreshOptions | String | 否 | 是 | 当资源栈更新时,数据源资源的刷新策略。 | 有效值:
|
返回值
Fn::GetAtt
PluginClassId:插件类型 ID。
GatewayName:插件类型名称。
GatewayId:网关实例 ID。
PluginId:插件 ID。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
PluginId:
Type: String
Description:
en: The ID of the plugin.
Required: true
Resources:
ExtensionDataSource:
Type: DATASOURCE::APIG::Plugin
Properties:
PluginId:
Ref: PluginId
Outputs:
PluginClassId:
Description: The ID of the plugin class.
Value:
Fn::GetAtt:
- ExtensionDataSource
- PluginClassId
GatewayName:
Description: The name of the gateway name.
Value:
Fn::GetAtt:
- ExtensionDataSource
- GatewayName
GatewayId:
Description: The ID of the Gateway.
Value:
Fn::GetAtt:
- ExtensionDataSource
- GatewayId
PluginId:
Description: The ID of the plugin.
Value:
Fn::GetAtt:
- ExtensionDataSource
- PluginId
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"PluginId": {
"Type": "String",
"Description": {
"en": "The ID of the plugin."
},
"Required": true
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::APIG::Plugin",
"Properties": {
"PluginId": {
"Ref": "PluginId"
}
}
}
},
"Outputs": {
"PluginClassId": {
"Description": "The ID of the plugin class.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"PluginClassId"
]
}
},
"GatewayName": {
"Description": "The name of the gateway name.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"GatewayName"
]
}
},
"GatewayId": {
"Description": "The ID of the Gateway.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"GatewayId"
]
}
},
"PluginId": {
"Description": "The ID of the plugin.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"PluginId"
]
}
}
}
}
该文章对您有帮助吗?