GetTriggers
This data source provides the Function Compute triggers of the current Alibaba Cloud user.
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var fcTriggersDs = Output.Create(AliCloud.FC.GetTriggers.InvokeAsync(new AliCloud.FC.GetTriggersArgs
{
FunctionName = "sample_function",
NameRegex = "sample_fc_trigger",
ServiceName = "sample_service",
}));
this.FirstFcTriggerName = fcTriggersDs.Apply(fcTriggersDs => fcTriggersDs.Triggers[0].Name);
}
[Output("firstFcTriggerName")]
public Output<string> FirstFcTriggerName { get; set; }
}
Coming soon!
import pulumi
import pulumi_alicloud as alicloud
fc_triggers_ds = alicloud.fc.get_triggers(function_name="sample_function",
name_regex="sample_fc_trigger",
service_name="sample_service")
pulumi.export("firstFcTriggerName", fc_triggers_ds.triggers[0]["name"])import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const fcTriggersDs = pulumi.output(alicloud.fc.getTriggers({
functionName: "sample_function",
nameRegex: "sample_fc_trigger",
serviceName: "sample_service",
}, { async: true }));
export const firstFcTriggerName = fcTriggersDs.triggers[0].name;Using GetTriggers
function getTriggers(args: GetTriggersArgs, opts?: InvokeOptions): Promise<GetTriggersResult>function get_triggers(function_name=None, ids=None, name_regex=None, output_file=None, service_name=None, opts=None)func GetTriggers(ctx *Context, args *GetTriggersArgs, opts ...InvokeOption) (*GetTriggersResult, error)public static class GetTriggers {
public static Task<GetTriggersResult> InvokeAsync(GetTriggersArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Function
Name string FC function name.
- Service
Name string FC service name.
- Ids List<string>
- A list of FC triggers ids.
- Name
Regex string A regex string to filter results by FC trigger name.
- Output
File string
- Function
Name string FC function name.
- Service
Name string FC service name.
- Ids []string
- A list of FC triggers ids.
- Name
Regex string A regex string to filter results by FC trigger name.
- Output
File string
- function
Name string FC function name.
- service
Name string FC service name.
- ids string[]
- A list of FC triggers ids.
- name
Regex string A regex string to filter results by FC trigger name.
- output
File string
- function_
name str FC function name.
- service_
name str FC service name.
- ids List[str]
- A list of FC triggers ids.
- name_
regex str A regex string to filter results by FC trigger name.
- output_
file str
GetTriggers Result
The following output properties are available:
- Function
Name string - Id string
The provider-assigned unique ID for this managed resource.
- Ids List<string>
A list of FC triggers ids.
- Names List<string>
A list of FC triggers names.
- Service
Name string - Triggers
List<Pulumi.
Ali Cloud. FC. Outputs. Get Triggers Trigger> A list of FC triggers. Each element contains the following attributes:
- Name
Regex string - Output
File string
- Function
Name string - Id string
The provider-assigned unique ID for this managed resource.
- Ids []string
A list of FC triggers ids.
- Names []string
A list of FC triggers names.
- Service
Name string - Triggers
[]Get
Triggers Trigger A list of FC triggers. Each element contains the following attributes:
- Name
Regex string - Output
File string
- function
Name string - id string
The provider-assigned unique ID for this managed resource.
- ids string[]
A list of FC triggers ids.
- names string[]
A list of FC triggers names.
- service
Name string - triggers
Get
Triggers Trigger[] A list of FC triggers. Each element contains the following attributes:
- name
Regex string - output
File string
- function_
name str - id str
The provider-assigned unique ID for this managed resource.
- ids List[str]
A list of FC triggers ids.
- names List[str]
A list of FC triggers names.
- service_
name str - triggers
List[Get
Triggers Trigger] A list of FC triggers. Each element contains the following attributes:
- name_
regex str - output_
file str
Supporting Types
GetTriggersTrigger
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Config string
JSON-encoded trigger configuration. See Configure triggers and events for more details.
- Creation
Time string FC trigger creation time.
- Id string
FC trigger ID.
- Invocation
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.
- Last
Modification stringTime FC trigger last modification time.
- Name string
FC trigger name.
- Source
Arn string Event source resource address. See Create a trigger for more details.
- Type string
Type of the trigger. Valid values:
oss,log,timer,httpandmns_topic.
- Config string
JSON-encoded trigger configuration. See Configure triggers and events for more details.
- Creation
Time string FC trigger creation time.
- Id string
FC trigger ID.
- Invocation
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.
- Last
Modification stringTime FC trigger last modification time.
- Name string
FC trigger name.
- Source
Arn string Event source resource address. See Create a trigger for more details.
- Type string
Type of the trigger. Valid values:
oss,log,timer,httpandmns_topic.
- config string
JSON-encoded trigger configuration. See Configure triggers and events for more details.
- creation
Time string FC trigger creation time.
- id string
FC trigger ID.
- invocation
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.
- last
Modification stringTime FC trigger last modification time.
- name string
FC trigger name.
- source
Arn string Event source resource address. See Create a trigger for more details.
- type string
Type of the trigger. Valid values:
oss,log,timer,httpandmns_topic.
- config str
JSON-encoded trigger configuration. See Configure triggers and events for more details.
- creation_
time str FC trigger creation time.
- id str
FC trigger ID.
- invocation
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.
- last
Modification strTime FC trigger last modification time.
- name str
FC trigger name.
- source_
arn str Event source resource address. See Create a trigger for more details.
- type str
Type of the trigger. Valid values:
oss,log,timer,httpandmns_topic.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.