TriggerProps
Properties for defining a Trigger.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-fc-trigger
Initializer
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkfc"
&alicloudroscdkfc.TriggerProps {
FunctionName: interface{},
ServiceName: interface{},
TriggerConfig: interface{},
TriggerName: interface{},
TriggerType: interface{},
InvocationRole: interface{},
Qualifier: interface{},
SourceArn: interface{},
}
Properties
| Name | Type | Description |
|---|---|---|
FunctionName |
interface{} |
Property functionName: Function name. |
ServiceName |
interface{} |
Property serviceName: Service name. |
TriggerConfig |
interface{} |
Property triggerConfig: Event source specific trigger configuration. |
TriggerName |
interface{} |
Property triggerName: Trigger name. |
TriggerType |
interface{} |
Property triggerType: Trigger type, e.g. oss, timer, logs. This determines how the trigger config is interpreted. Example : "oss". |
InvocationRole |
interface{} |
Property invocationRole: The role grants event source the permission to run function on behalf of user. |
Qualifier |
interface{} |
Property qualifier: service version or alias. |
SourceArn |
interface{} |
Property sourceArn: The Aliyun Resource Name (ARN) of event source. |
FunctionNameRequired
FunctionName interface{}
- Type: interface{}
Property functionName: Function name.
ServiceNameRequired
ServiceName interface{}
- Type: interface{}
Property serviceName: Service name.
TriggerConfigRequired
TriggerConfig interface{}
- Type: interface{}
Property triggerConfig: Event source specific trigger configuration.
The value is different according to trigger type.
TriggerNameRequired
TriggerName interface{}
- Type: interface{}
Property triggerName: Trigger name.
Example : "image_resize"
TriggerTypeRequired
TriggerType interface{}
- Type: interface{}
Property triggerType: Trigger type, e.g. oss, timer, logs. This determines how the trigger config is interpreted. Example : "oss".
InvocationRoleOptional
InvocationRole interface{}
- Type: interface{}
Property invocationRole: The role grants event source the permission to run function on behalf of user.
This is optional for some triggers. Example : "acs:ram::1234567890:role/fc-test"
QualifierOptional
Qualifier interface{}
- Type: interface{}
Property qualifier: service version or alias.
Example : "LATEST"
SourceArnOptional
SourceArn interface{}
- Type: interface{}
Property sourceArn: The Aliyun Resource Name (ARN) of event source.
This is optional for some triggers. Example : "acs:oss:cn-shanghai:12345:mybucket"