ALIYUN::APIG::Plugin は、プラグインを作成するために使用されます。
構文
{
"Type": "ALIYUN::APIG::Plugin",
"Properties": {
"GatewayId": String,
"PluginClassId": String
}
}プロパティ
プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
GatewayId | String | はい | いいえ | クラウドネイティブ API Gateway インスタンスの ID です。 | なし。 |
PluginClassId | String | はい | いいえ | プラグインクラスの ID です。 | なし。 |
戻り値
Fn::GetAtt
PluginClassId: プラグインクラスの ID。
GatewayName: クラウドネイティブ API Gateway インスタンスの名前。
GatewayId: クラウドネイティブ API Gateway インスタンスの ID。
PluginId: プラグインの ID。
例
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"
]
}
}
}
}