Consulta informações sobre um plug-in do Cloud-native API Gateway.
Sintaxe
{
"Type": "DATASOURCE::APIG::Plugin",
"Properties": {
"PluginId": String,
"RefreshOptions": String
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
PluginId |
String |
Sim |
Sim |
ID do plug-in. |
Nenhuma. |
|
RefreshOptions |
String |
Não |
Sim |
Política de atualização dos recursos da fonte de dados ao atualizar a pilha. |
Valores válidos:
|
Valores de retorno
Fn::GetAtt
PluginClassId: ID da classe do plug-in.
GatewayName: nome da classe do plug-in.
GatewayId: ID da instância do Cloud-native API Gateway.
PluginId: ID do plug-in.
Exemplos
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"
]
}
}
}
}