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:

FunctionName string

FC function name.

ServiceName string

FC service name.

Ids List<string>
  • A list of FC triggers ids.
NameRegex string

A regex string to filter results by FC trigger name.

OutputFile string
FunctionName string

FC function name.

ServiceName string

FC service name.

Ids []string
  • A list of FC triggers ids.
NameRegex string

A regex string to filter results by FC trigger name.

OutputFile string
functionName string

FC function name.

serviceName string

FC service name.

ids string[]
  • A list of FC triggers ids.
nameRegex string

A regex string to filter results by FC trigger name.

outputFile 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:

FunctionName 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.

ServiceName string
Triggers List<Pulumi.AliCloud.FC.Outputs.GetTriggersTrigger>

A list of FC triggers. Each element contains the following attributes:

NameRegex string
OutputFile string
FunctionName 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.

ServiceName string
Triggers []GetTriggersTrigger

A list of FC triggers. Each element contains the following attributes:

NameRegex string
OutputFile string
functionName 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.

serviceName string
triggers GetTriggersTrigger[]

A list of FC triggers. Each element contains the following attributes:

nameRegex string
outputFile 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[GetTriggersTrigger]

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.

CreationTime string

FC trigger creation time.

Id string

FC trigger ID.

InvocationRole 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.

LastModificationTime string

FC trigger last modification time.

Name string

FC trigger name.

SourceArn string

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

Type string

Type of the trigger. Valid values: oss, log, timer, http and mns_topic.

Config string

JSON-encoded trigger configuration. See Configure triggers and events for more details.

CreationTime string

FC trigger creation time.

Id string

FC trigger ID.

InvocationRole 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.

LastModificationTime string

FC trigger last modification time.

Name string

FC trigger name.

SourceArn string

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

Type string

Type of the trigger. Valid values: oss, log, timer, http and mns_topic.

config string

JSON-encoded trigger configuration. See Configure triggers and events for more details.

creationTime string

FC trigger creation time.

id string

FC trigger ID.

invocationRole 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.

lastModificationTime string

FC trigger last modification time.

name string

FC trigger name.

sourceArn string

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

type string

Type of the trigger. Valid values: oss, log, timer, http and mns_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.

invocationRole 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.

lastModificationTime str

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, http and mns_topic.

Package Details

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