DATASOURCE::APIG::Plugin is used to query the information about a plug-in.
Syntax
{
"Type": "DATASOURCE::APIG::Plugin",
"Properties": {
"PluginId": String,
"RefreshOptions": String
}
}Properties
Property | Type | Required | Editable | Description | Constraint |
PluginId | String | Yes | Yes | The ID of the plug-in. | None. |
RefreshOptions | String | No | Yes | The refresh policy for data source resources when the stack is updated. | Valid values:
|
Return values
Fn::GetAtt
PluginClassId: the ID of the plug-in class.
GatewayName: the name of the plug-in class.
GatewayId: the ID of the Cloud-native API Gateway instance.
PluginId: the ID of the plug-in.
Examples
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"
]
}
}
}
}