Skip to content

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.

functionNameRequired

public readonly functionName: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property functionName: Function name.


serviceNameRequired

public readonly serviceName: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property serviceName: Service name.


triggerConfigRequired

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.


triggerNameRequired

public readonly triggerName: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property triggerName: Trigger name.

Example : "image_resize"


triggerTypeRequired

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".


invocationRoleOptional

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"


qualifierOptional

public readonly qualifier: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property qualifier: service version or alias.

Example : "LATEST"


sourceArnOptional

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"