-
Notifications
You must be signed in to change notification settings - Fork 5
/
getTriggers.go
47 lines (42 loc) · 1.61 KB
/
getTriggers.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package fc
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
// This data source provides the Function Compute triggers of the current Alibaba Cloud user.
func GetTriggers(ctx *pulumi.Context, args *GetTriggersArgs, opts ...pulumi.InvokeOption) (*GetTriggersResult, error) {
var rv GetTriggersResult
err := ctx.Invoke("alicloud:fc/getTriggers:getTriggers", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getTriggers.
type GetTriggersArgs struct {
// FC function name.
FunctionName string `pulumi:"functionName"`
// - A list of FC triggers ids.
Ids []string `pulumi:"ids"`
// A regex string to filter results by FC trigger name.
NameRegex *string `pulumi:"nameRegex"`
OutputFile *string `pulumi:"outputFile"`
// FC service name.
ServiceName string `pulumi:"serviceName"`
}
// A collection of values returned by getTriggers.
type GetTriggersResult struct {
FunctionName string `pulumi:"functionName"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
// A list of FC triggers ids.
Ids []string `pulumi:"ids"`
NameRegex *string `pulumi:"nameRegex"`
// A list of FC triggers names.
Names []string `pulumi:"names"`
OutputFile *string `pulumi:"outputFile"`
ServiceName string `pulumi:"serviceName"`
// A list of FC triggers. Each element contains the following attributes:
Triggers []GetTriggersTrigger `pulumi:"triggers"`
}