Skip to content

PluginProps

Properties for defining a Plugin.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-apigateway-plugin

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkapigateway"
&alicloudroscdkapigateway.PluginProps {
    PluginData: interface{},
    PluginName: interface{},
    PluginType: interface{},
    Description: interface{},
    Tags: *[]github.com/alibabacloud-go/ros-cdk/alicloudroscdkapigateway.RosPlugin.TagsProperty,
}

Properties

Name Type Description
PluginData interface{} Property pluginData: The definition statement of the plug-in.
PluginName interface{} Property pluginName: The name of the plug-in that you want to create.
PluginType interface{} Property pluginType: The type of the plug-in.
Description interface{} Property description: The description of the plug-in, which cannot exceed 200 characters.
Tags *[]TagsProperty Property tags: Tags to attach to instance.

PluginDataRequired

PluginData interface{}
  • Type: interface{}

Property pluginData: The definition statement of the plug-in.

Plug-in definition statements in the JSON and YAML formats are supported.


PluginNameRequired

PluginName interface{}
  • Type: interface{}

Property pluginName: The name of the plug-in that you want to create.

It can contain uppercase English letters, lowercase English letters, Chinese characters, numbers, and underscores (). It must be 4 to 50 characters in length and cannot start with an underscore ().


PluginTypeRequired

PluginType interface{}
  • Type: interface{}

Property pluginType: The type of the plug-in.

Valid values: ipControl: indicates IP address-based access control. trafficControl: indicates throttling. backendSignature: indicates backend signature. jwtAuth: indicates JWT (OpenId Connect). cors: indicates cross-origin resource access (CORS). caching: indicates caching.


DescriptionOptional

Description interface{}
  • Type: interface{}

Property description: The description of the plug-in, which cannot exceed 200 characters.


TagsOptional

Tags *[]TagsProperty

Property tags: Tags to attach to instance.

Max support 20 tags to add during create instance. Each tag with two properties Key and Value, and Key is required.