Cria um plugin do Cloud-native API Gateway.
Sintaxe
{
"Type": "ALIYUN::APIG::Plugin",
"Properties": {
"GatewayId": String,
"PluginClassId": String
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
GatewayId |
String |
Sim |
Não |
ID da instância do Cloud-native API Gateway. |
Nenhuma. |
|
PluginClassId |
String |
Sim |
Não |
ID da classe de plugin. |
Nenhuma. |
Valores de retorno
Fn::GetAtt
PluginClassId: ID da classe de plugin.
GatewayName: nome da instância do Cloud-native API Gateway.
GatewayId: ID da instância do Cloud-native API Gateway.
PluginId: ID do plugin.
Exemplos
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
PluginClassId:
Type: String
Description:
en: The ID of the plugin class.
Required: true
GatewayId:
Type: String
AssociationProperty: ALIYUN::APIG::Gateway::GatewayId
Description:
en: The ID of the Gateway.
Required: true
Resources:
ExtensionResource:
Type: ALIYUN::APIG::Plugin
Properties:
PluginClassId:
Ref: PluginClassId
GatewayId:
Ref: GatewayId
Outputs:
PluginClassId:
Description: The ID of the plugin class.
Value:
Fn::GetAtt:
- ExtensionResource
- PluginClassId
GatewayName:
Description: The name of the gateway.
Value:
Fn::GetAtt:
- ExtensionResource
- GatewayName
GatewayId:
Description: The ID of the Gateway.
Value:
Fn::GetAtt:
- ExtensionResource
- GatewayId
PluginId:
Description: The ID of the plugin.
Value:
Fn::GetAtt:
- ExtensionResource
- PluginId
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"PluginClassId": {
"Type": "String",
"Description": {
"en": "The ID of the plugin class."
},
"Required": true
},
"GatewayId": {
"Type": "String",
"AssociationProperty": "ALIYUN::APIG::Gateway::GatewayId",
"Description": {
"en": "The ID of the Gateway."
},
"Required": true
}
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::APIG::Plugin",
"Properties": {
"PluginClassId": {
"Ref": "PluginClassId"
},
"GatewayId": {
"Ref": "GatewayId"
}
}
}
},
"Outputs": {
"PluginClassId": {
"Description": "The ID of the plugin class.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"PluginClassId"
]
}
},
"GatewayName": {
"Description": "The name of the gateway.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"GatewayName"
]
}
},
"GatewayId": {
"Description": "The ID of the Gateway.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"GatewayId"
]
}
},
"PluginId": {
"Description": "The ID of the plugin.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"PluginId"
]
}
}
}
}