TriggerArgs

data class TriggerArgs(val config: Output<String>? = null, val configMns: Output<String>? = null, val function: Output<String>? = null, val name: Output<String>? = null, val namePrefix: Output<String>? = null, val role: Output<String>? = null, val service: Output<String>? = null, val sourceArn: Output<String>? = null, val type: Output<String>? = null) : ConvertibleToJava<TriggerArgs>

Import

Function Compute trigger can be imported using the id, e.g.

$ pulumi import alicloud:fc/trigger:Trigger foo my-fc-service:hello-world:hello-trigger

Constructors

Link copied to clipboard
fun TriggerArgs(config: Output<String>? = null, configMns: Output<String>? = null, function: Output<String>? = null, name: Output<String>? = null, namePrefix: Output<String>? = null, role: Output<String>? = null, service: Output<String>? = null, sourceArn: Output<String>? = null, type: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): TriggerArgs

Properties

Link copied to clipboard
val config: Output<String>? = null

The config of Function Compute trigger.It is valid when type is not "mns_topic".See Configure triggers and events for more details.

Link copied to clipboard
val configMns: Output<String>? = null

The config of Function Compute trigger when the type is "mns_topic".It is conflict with config.

Link copied to clipboard
val function: Output<String>? = null

The Function Compute function name.

Link copied to clipboard
val name: Output<String>? = null

The Function Compute trigger name. It is the only in one service and is conflict with "name_prefix".

Link copied to clipboard
val namePrefix: Output<String>? = null

Setting a prefix to get a only trigger name. It is conflict with "name".

Link copied to clipboard
val role: Output<String>? = null

RAM role arn attached to the Function Compute trigger. Role used by the event source to call the function. The value format is "acs:ram::$account-id:role/$role-name". See Create a trigger for more details.

Link copied to clipboard
val service: Output<String>? = null

The Function Compute service name.

Link copied to clipboard
val sourceArn: Output<String>? = null

Event source resource address. See Create a trigger for more details.

Link copied to clipboard
val type: Output<String>? = null

The Type of the trigger. Valid values: "oss", "log", "timer", "http", "mns_topic", "cdn_events", "eventbridge".