TriggerProps
Properties for defining a Trigger
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-fc-trigger
Initializer
import ros_cdk_fc
ros_cdk_fc.TriggerProps(
function_name: typing.Union[str, IResolvable],
service_name: typing.Union[str, IResolvable],
trigger_config: typing.Union[IResolvable, typing.Mapping[typing.Any]],
trigger_name: typing.Union[str, IResolvable],
trigger_type: typing.Union[str, IResolvable],
invocation_role: typing.Union[str, IResolvable] = None,
qualifier: typing.Union[str, IResolvable] = None,
source_arn: typing.Union[str, IResolvable] = None
)
Properties
Name | Type | Description |
---|---|---|
function_name |
typing.Union[str, ros_cdk_core.IResolvable] |
Property functionName: Function name. |
service_name |
typing.Union[str, ros_cdk_core.IResolvable] |
Property serviceName: Service name. |
trigger_config |
typing.Union[ros_cdk_core.IResolvable, typing.Mapping[typing.Any]] |
Property triggerConfig: Event source specific trigger configuration. |
trigger_name |
typing.Union[str, ros_cdk_core.IResolvable] |
Property triggerName: Trigger name. |
trigger_type |
typing.Union[str, ros_cdk_core.IResolvable] |
Property triggerType: Trigger type, e.g. oss, timer, logs. This determines how the trigger config is interpreted. Example : "oss". |
invocation_role |
typing.Union[str, ros_cdk_core.IResolvable] |
Property invocationRole: The role grants event source the permission to run function on behalf of user. |
qualifier |
typing.Union[str, ros_cdk_core.IResolvable] |
Property qualifier: service version or alias. |
source_arn |
typing.Union[str, ros_cdk_core.IResolvable] |
Property sourceArn: The Aliyun Resource Name (ARN) of event source. |
function_name
Required
function_name: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property functionName: Function name.
service_name
Required
service_name: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property serviceName: Service name.
trigger_config
Required
trigger_config: typing.Union[IResolvable, typing.Mapping[typing.Any]]
- Type: typing.Union[ros_cdk_core.IResolvable, typing.Mapping[typing.Any]]
Property triggerConfig: Event source specific trigger configuration.
The value is different according to trigger type.
trigger_name
Required
trigger_name: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property triggerName: Trigger name.
Example : "image_resize"
trigger_type
Required
trigger_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property triggerType: Trigger type, e.g. oss, timer, logs. This determines how the trigger config is interpreted. Example : "oss".
invocation_role
Optional
invocation_role: typing.Union[str, IResolvable]
- Type: typing.Union[str, 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
qualifier: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property qualifier: service version or alias.
Example : "LATEST"
source_arn
Optional
source_arn: typing.Union[str, IResolvable]
- Type: typing.Union[str, 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"