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. |
FunctionName
Required
FunctionName interface{}
- Type: interface{}
Property functionName: Function name.
ServiceName
Required
ServiceName interface{}
- Type: interface{}
Property serviceName: Service name.
TriggerConfig
Required
TriggerConfig interface{}
- Type: interface{}
Property triggerConfig: Event source specific trigger configuration.
The value is different according to trigger type.
TriggerName
Required
TriggerName interface{}
- Type: interface{}
Property triggerName: Trigger name.
Example : "image_resize"
TriggerType
Required
TriggerType interface{}
- Type: interface{}
Property triggerType: Trigger type, e.g. oss, timer, logs. This determines how the trigger config is interpreted. Example : "oss".
InvocationRole
Optional
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"
Qualifier
Optional
Qualifier interface{}
- Type: interface{}
Property qualifier: service version or alias.
Example : "LATEST"
SourceArn
Optional
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"