Trigger

Create a Trigger Resource

new Trigger(name: string, args: TriggerArgs, opts?: CustomResourceOptions);
def Trigger(resource_name, opts=None, config=None, config_mns=None, function=None, name=None, name_prefix=None, role=None, service=None, source_arn=None, type=None, __props__=None);
func NewTrigger(ctx *Context, name string, args TriggerArgs, opts ...ResourceOption) (*Trigger, error)
public Trigger(string name, TriggerArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args TriggerArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args TriggerArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args TriggerArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

Trigger Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The Trigger resource accepts the following input properties:

Function string

The Function Compute function name.

Service string

The Function Compute service name.

Type string

The Type of the trigger. Valid values: [“oss”, “log”, “timer”, “http”, “mns_topic”, “cdn_events”].

Config string

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

ConfigMns string

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

Name string

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

NamePrefix string

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

Role string

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.

SourceArn string

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

Function string

The Function Compute function name.

Service string

The Function Compute service name.

Type string

The Type of the trigger. Valid values: [“oss”, “log”, “timer”, “http”, “mns_topic”, “cdn_events”].

Config string

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

ConfigMns string

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

Name string

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

NamePrefix string

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

Role string

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.

SourceArn string

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

function string

The Function Compute function name.

service string

The Function Compute service name.

type string

The Type of the trigger. Valid values: [“oss”, “log”, “timer”, “http”, “mns_topic”, “cdn_events”].

config string

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

configMns string

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

name string

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

namePrefix string

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

role string

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.

sourceArn string

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

function str

The Function Compute function name.

service str

The Function Compute service name.

type str

The Type of the trigger. Valid values: [“oss”, “log”, “timer”, “http”, “mns_topic”, “cdn_events”].

config str

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

config_mns str

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

name str

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

name_prefix str

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

role str

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.

source_arn str

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

Outputs

All input properties are implicitly available as output properties. Additionally, the Trigger resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
LastModified string

The date this resource was last modified.

TriggerId string

The Function Compute trigger ID.

Id string
The provider-assigned unique ID for this managed resource.
LastModified string

The date this resource was last modified.

TriggerId string

The Function Compute trigger ID.

id string
The provider-assigned unique ID for this managed resource.
lastModified string

The date this resource was last modified.

triggerId string

The Function Compute trigger ID.

id str
The provider-assigned unique ID for this managed resource.
last_modified str

The date this resource was last modified.

trigger_id str

The Function Compute trigger ID.

Look up an Existing Trigger Resource

Get an existing Trigger resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: TriggerState, opts?: CustomResourceOptions): Trigger
static get(resource_name, id, opts=None, config=None, config_mns=None, function=None, last_modified=None, name=None, name_prefix=None, role=None, service=None, source_arn=None, trigger_id=None, type=None, __props__=None);
func GetTrigger(ctx *Context, name string, id IDInput, state *TriggerState, opts ...ResourceOption) (*Trigger, error)
public static Trigger Get(string name, Input<string> id, TriggerState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

Config string

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

ConfigMns string

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

Function string

The Function Compute function name.

LastModified string

The date this resource was last modified.

Name string

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

NamePrefix string

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

Role string

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.

Service string

The Function Compute service name.

SourceArn string

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

TriggerId string

The Function Compute trigger ID.

Type string

The Type of the trigger. Valid values: [“oss”, “log”, “timer”, “http”, “mns_topic”, “cdn_events”].

Config string

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

ConfigMns string

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

Function string

The Function Compute function name.

LastModified string

The date this resource was last modified.

Name string

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

NamePrefix string

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

Role string

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.

Service string

The Function Compute service name.

SourceArn string

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

TriggerId string

The Function Compute trigger ID.

Type string

The Type of the trigger. Valid values: [“oss”, “log”, “timer”, “http”, “mns_topic”, “cdn_events”].

config string

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

configMns string

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

function string

The Function Compute function name.

lastModified string

The date this resource was last modified.

name string

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

namePrefix string

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

role string

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.

service string

The Function Compute service name.

sourceArn string

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

triggerId string

The Function Compute trigger ID.

type string

The Type of the trigger. Valid values: [“oss”, “log”, “timer”, “http”, “mns_topic”, “cdn_events”].

config str

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

config_mns str

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

function str

The Function Compute function name.

last_modified str

The date this resource was last modified.

name str

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

name_prefix str

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

role str

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.

service str

The Function Compute service name.

source_arn str

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

trigger_id str

The Function Compute trigger ID.

type str

The Type of the trigger. Valid values: [“oss”, “log”, “timer”, “http”, “mns_topic”, “cdn_events”].

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.