O recurso ALIYUN::APIG::PluginClass cria uma classe de plug-in.
Sintaxe
{
"Type": "ALIYUN::APIG::PluginClass",
"Properties": {
"Description": String,
"ExecutePriority": Integer,
"ExecuteStage": String,
"PluginClassName": String,
"VersionDescription": String,
"Version": String,
"WasmUrl": String,
"WasmLanguage": String,
"Alias": String,
"SupportedMinGatewayVersion": String
}
}
Propriedades
Propriedade | Tipo | Obrigatória | Editável | Descrição | Restrição |
Description | String | Sim | Não | Descrição da classe de plug-in. | Nenhuma. |
ExecutePriority | Integer | Sim | Não | Prioridade de execução do plug-in. | Nenhuma. |
ExecuteStage | String | Sim | Não | Estágio de execução. | Valores válidos:
|
PluginClassName | String | Sim | Não | Nome da classe de plug-in. | Nenhuma. |
VersionDescription | String | Sim | Não | Descrição da versão. | Nenhuma. |
Version | String | Sim | Não | Versão da classe de plug-in. | Nenhuma. |
WasmUrl | String | Sim | Não | URL do WebAssembly (Wasm). | Nenhuma. |
WasmLanguage | String | Sim | Não | Linguagem de programação com suporte no Wasm. | Valores válidos:
|
Alias | String | Não | Não | Alias da classe de plug-in. | Nenhuma. |
SupportedMinGatewayVersion | String | Não | Não | Versão mínima do gateway com suporte. | Nenhuma. |
Valores de retorno
Fn::GetAtt
Type: tipo da classe de plug-in.
Description: descrição da classe de plug-in.
PluginClassName: nome da classe de plug-in.
Alias: alias da classe de plug-in.
WasmLanguage: linguagem de programação com suporte no Wasm.
Document: documentação do plug-in.
Exemplos
ROSTemplateFormatVersion: '2015-09-01'
Parameters: {}
Resources:
ExtensionResource:
Type: ALIYUN::APIG::PluginClass
Properties:
VersionDescription: desc
ExecutePriority: 1
Description: desc
WasmLanguage: TinyGo
Version: 1.0.0
WasmUrl: https://apigw-console-cn-hangzhou-user-oss.oss-cn-hangzhou.aliyuncs.com/xxxxxx
PluginClassName: test
ExecuteStage: UNSPECIFIED_PHASE
Outputs:
Type:
Description: The type of the plugin class.
Value:
Fn::GetAtt:
- ExtensionResource
- Type
Description:
Description: The description of the plugin class.
Value:
Fn::GetAtt:
- ExtensionResource
- Description
PluginClassName:
Description: The name of the plugin class.
Value:
Fn::GetAtt:
- ExtensionResource
- PluginClassName
Alias:
Description: The alias of the plugin class.
Value:
Fn::GetAtt:
- ExtensionResource
- Alias
WasmLanguage:
Description: Wasm language.
Value:
Fn::GetAtt:
- ExtensionResource
- WasmLanguage
Document:
Description: The document of plugin.
Value:
Fn::GetAtt:
- ExtensionResource
- Document
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::APIG::PluginClass",
"Properties": {
"VersionDescription": "desc",
"ExecutePriority": 1,
"Description": "desc",
"WasmLanguage": "TinyGo",
"Version": "1.0.0",
"WasmUrl": "https://apigw-console-cn-hangzhou-user-oss.oss-cn-hangzhou.aliyuncs.com/xxxxxx",
"PluginClassName": "test",
"ExecuteStage": "UNSPECIFIED_PHASE"
}
}
},
"Outputs": {
"Type": {
"Description": "The type of the plugin class.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Type"
]
}
},
"Description": {
"Description": "The description of the plugin class.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Description"
]
}
},
"PluginClassName": {
"Description": "The name of the plugin class.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"PluginClassName"
]
}
},
"Alias": {
"Description": "The alias of the plugin class.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Alias"
]
}
},
"WasmLanguage": {
"Description": "Wasm language.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"WasmLanguage"
]
}
},
"Document": {
"Description": "The document of plugin.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Document"
]
}
}
}
}