Class Trigger
Inherited Members
Namespace: Pulumi.AliCloud.FC
Assembly: Pulumi.AliCloud.dll
Syntax
public class Trigger : CustomResource
Constructors
View SourceTrigger(String, TriggerArgs, CustomResourceOptions)
Create a Trigger resource with the given unique name, arguments, and options.
Declaration
public Trigger(string name, TriggerArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| TriggerArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceConfig
The config of Function Compute trigger.It is valid when type is not "mns_topic".See Configure triggers and events for more details.
Declaration
public Output<string> Config { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ConfigMns
The config of Function Compute trigger when the type is "mns_topic".It is conflict with config.
Declaration
public Output<string> ConfigMns { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Function
The Function Compute function name.
Declaration
public Output<string> Function { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
LastModified
The date this resource was last modified.
Declaration
public Output<string> LastModified { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
The Function Compute trigger name. It is the only in one service and is conflict with "name_prefix".
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
NamePrefix
Setting a prefix to get a only trigger name. It is conflict with "name".
Declaration
public Output<string> NamePrefix { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Role
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.
Declaration
public Output<string> Role { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Service
The Function Compute service name.
Declaration
public Output<string> Service { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
SourceArn
Event source resource address. See Create a trigger for more details.
Declaration
public Output<string> SourceArn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
TriggerId
The Function Compute trigger ID.
Declaration
public Output<string> TriggerId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Type
The Type of the trigger. Valid values: ["oss", "log", "timer", "http", "mns_topic", "cdn_events"].
Declaration
public Output<string> Type { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, TriggerState, CustomResourceOptions)
Get an existing Trigger resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Trigger Get(string name, Input<string> id, TriggerState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| TriggerState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Trigger |