TriggerProps
Properties for defining a Trigger
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-fc-trigger
Initializer
import { TriggerProps } from '@alicloud/ros-cdk-fc'
const triggerProps: TriggerProps = { ... }
Properties
Name | Type | Description |
---|---|---|
functionName |
string | @alicloud/ros-cdk-core.IResolvable |
Property functionName: Function name. |
serviceName |
string | @alicloud/ros-cdk-core.IResolvable |
Property serviceName: Service name. |
triggerConfig |
@alicloud/ros-cdk-core.IResolvable | {[ key: string ]: any} |
Property triggerConfig: Event source specific trigger configuration. |
triggerName |
string | @alicloud/ros-cdk-core.IResolvable |
Property triggerName: Trigger name. |
triggerType |
string | @alicloud/ros-cdk-core.IResolvable |
Property triggerType: Trigger type, e.g. oss, timer, logs. This determines how the trigger config is interpreted. Example : "oss". |
invocationRole |
string | @alicloud/ros-cdk-core.IResolvable |
Property invocationRole: The role grants event source the permission to run function on behalf of user. |
qualifier |
string | @alicloud/ros-cdk-core.IResolvable |
Property qualifier: service version or alias. |
sourceArn |
string | @alicloud/ros-cdk-core.IResolvable |
Property sourceArn: The Aliyun Resource Name (ARN) of event source. |
functionName
Required
public readonly functionName: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property functionName: Function name.
serviceName
Required
public readonly serviceName: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property serviceName: Service name.
triggerConfig
Required
public readonly triggerConfig: IResolvable | {[ key: string ]: any};
- Type: @alicloud/ros-cdk-core.IResolvable | {[ key: string ]: any}
Property triggerConfig: Event source specific trigger configuration.
The value is different according to trigger type.
triggerName
Required
public readonly triggerName: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property triggerName: Trigger name.
Example : "image_resize"
triggerType
Required
public readonly triggerType: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property triggerType: Trigger type, e.g. oss, timer, logs. This determines how the trigger config is interpreted. Example : "oss".
invocationRole
Optional
public readonly invocationRole: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
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
public readonly qualifier: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property qualifier: service version or alias.
Example : "LATEST"
sourceArn
Optional
public readonly sourceArn: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property sourceArn: The Aliyun Resource Name (ARN) of event source.
This is optional for some triggers. Example : "acs:oss:cn-shanghai:12345:mybucket"