alicloud.fc.V3Trigger
Explore with Pulumi AI
Provides a FCV3 Trigger resource.
A trigger is a way of triggering the execution of a function. In the event-driven computing model, the event source is the producer of the event, the function is the handler of the event, and the trigger provides a centralized and unified way to manage different event sources. In the event source, when the event occurs, if the rules defined by the trigger are met,.
For information about FCV3 Trigger and how to use it, see What is Trigger.
NOTE: Available since v1.228.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const functionName = config.get("functionName") || "TerraformTriggerResourceAPI";
const triggerName = config.get("triggerName") || "TerraformTrigger_CDN";
const _function = new alicloud.fc.V3Function("function", {
memorySize: 512,
cpu: 0.5,
handler: "index.Handler",
code: {
zipFile: "UEsDBBQACAAIAAAAAAAAAAAAAAAAAAAAAAAIAAAAaW5kZXgucHmEkEFKxEAQRfd9ig9ZTCJOooIwDMwNXLqXnnQlaalUhU5lRj2KZ/FOXkESGR114bJ/P/7jV4b1xRq1hijtFpM1682cuNgPmgysbRulPT0fRxXnMtwrSPyeCdYRokSLnuMLJTTkbUqEvDMbxm1VdcRD6Tk+T1LW2ldB66knsYdA5iNX17ebm6tN2VnPhcswMPmREPuBacb+CiapLarAj9gT6/H97dVlCNScY3mtYvRkxdZlwDKDEnanPWVLdrdkeXEGlFEazVdfPVHaVeHc3N15CUwppwOJXeK7HshAB8NuOU7J6sP4SRXuH/EvbUfMiqMmDqv5M5FNSfAj/wgAAP//UEsHCPl//NYAAQAArwEAAFBLAQIUABQACAAIAAAAAAD5f/zWAAEAAK8BAAAIAAAAAAAAAAAAAAAAAAAAAABpbmRleC5weVBLBQYAAAAAAQABADYAAAA2AQAAAAA=",
},
functionName: name,
runtime: "python3.9",
diskSize: 512,
logConfig: {
logBeginRule: "None",
},
});
const current = alicloud.getAccount({});
const _default = new alicloud.fc.V3Trigger("default", {
triggerType: "cdn_events",
triggerName: name,
description: "create",
qualifier: "LATEST",
triggerConfig: JSON.stringify({
eventName: "CachedObjectsPushed",
eventVersion: "1.0.0",
notes: "example",
filter: {
domain: ["example.com"],
},
}),
sourceArn: current.then(current => `acs:cdn:*:${current.id}`),
invocationRole: current.then(current => `acs:ram::${current.id}:role/aliyuncdneventnotificationrole`),
functionName: _function.functionName,
});
import pulumi
import json
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
function_name = config.get("functionName")
if function_name is None:
function_name = "TerraformTriggerResourceAPI"
trigger_name = config.get("triggerName")
if trigger_name is None:
trigger_name = "TerraformTrigger_CDN"
function = alicloud.fc.V3Function("function",
memory_size=512,
cpu=0.5,
handler="index.Handler",
code={
"zip_file": "UEsDBBQACAAIAAAAAAAAAAAAAAAAAAAAAAAIAAAAaW5kZXgucHmEkEFKxEAQRfd9ig9ZTCJOooIwDMwNXLqXnnQlaalUhU5lRj2KZ/FOXkESGR114bJ/P/7jV4b1xRq1hijtFpM1682cuNgPmgysbRulPT0fRxXnMtwrSPyeCdYRokSLnuMLJTTkbUqEvDMbxm1VdcRD6Tk+T1LW2ldB66knsYdA5iNX17ebm6tN2VnPhcswMPmREPuBacb+CiapLarAj9gT6/H97dVlCNScY3mtYvRkxdZlwDKDEnanPWVLdrdkeXEGlFEazVdfPVHaVeHc3N15CUwppwOJXeK7HshAB8NuOU7J6sP4SRXuH/EvbUfMiqMmDqv5M5FNSfAj/wgAAP//UEsHCPl//NYAAQAArwEAAFBLAQIUABQACAAIAAAAAAD5f/zWAAEAAK8BAAAIAAAAAAAAAAAAAAAAAAAAAABpbmRleC5weVBLBQYAAAAAAQABADYAAAA2AQAAAAA=",
},
function_name=name,
runtime="python3.9",
disk_size=512,
log_config={
"log_begin_rule": "None",
})
current = alicloud.get_account()
default = alicloud.fc.V3Trigger("default",
trigger_type="cdn_events",
trigger_name=name,
description="create",
qualifier="LATEST",
trigger_config=json.dumps({
"eventName": "CachedObjectsPushed",
"eventVersion": "1.0.0",
"notes": "example",
"filter": {
"domain": ["example.com"],
},
}),
source_arn=f"acs:cdn:*:{current.id}",
invocation_role=f"acs:ram::{current.id}:role/aliyuncdneventnotificationrole",
function_name=function.function_name)
package main
import (
"encoding/json"
"fmt"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/fc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "terraform-example"
if param := cfg.Get("name"); param != "" {
name = param
}
functionName := "TerraformTriggerResourceAPI"
if param := cfg.Get("functionName"); param != "" {
functionName = param
}
triggerName := "TerraformTrigger_CDN"
if param := cfg.Get("triggerName"); param != "" {
triggerName = param
}
function, err := fc.NewV3Function(ctx, "function", &fc.V3FunctionArgs{
MemorySize: pulumi.Int(512),
Cpu: pulumi.Float64(0.5),
Handler: pulumi.String("index.Handler"),
Code: &fc.V3FunctionCodeArgs{
ZipFile: pulumi.String("UEsDBBQACAAIAAAAAAAAAAAAAAAAAAAAAAAIAAAAaW5kZXgucHmEkEFKxEAQRfd9ig9ZTCJOooIwDMwNXLqXnnQlaalUhU5lRj2KZ/FOXkESGR114bJ/P/7jV4b1xRq1hijtFpM1682cuNgPmgysbRulPT0fRxXnMtwrSPyeCdYRokSLnuMLJTTkbUqEvDMbxm1VdcRD6Tk+T1LW2ldB66knsYdA5iNX17ebm6tN2VnPhcswMPmREPuBacb+CiapLarAj9gT6/H97dVlCNScY3mtYvRkxdZlwDKDEnanPWVLdrdkeXEGlFEazVdfPVHaVeHc3N15CUwppwOJXeK7HshAB8NuOU7J6sP4SRXuH/EvbUfMiqMmDqv5M5FNSfAj/wgAAP//UEsHCPl//NYAAQAArwEAAFBLAQIUABQACAAIAAAAAAD5f/zWAAEAAK8BAAAIAAAAAAAAAAAAAAAAAAAAAABpbmRleC5weVBLBQYAAAAAAQABADYAAAA2AQAAAAA="),
},
FunctionName: pulumi.String(name),
Runtime: pulumi.String("python3.9"),
DiskSize: pulumi.Int(512),
LogConfig: &fc.V3FunctionLogConfigArgs{
LogBeginRule: pulumi.String("None"),
},
})
if err != nil {
return err
}
current, err := alicloud.GetAccount(ctx, map[string]interface{}{}, nil)
if err != nil {
return err
}
tmpJSON0, err := json.Marshal(map[string]interface{}{
"eventName": "CachedObjectsPushed",
"eventVersion": "1.0.0",
"notes": "example",
"filter": map[string]interface{}{
"domain": []string{
"example.com",
},
},
})
if err != nil {
return err
}
json0 := string(tmpJSON0)
_, err = fc.NewV3Trigger(ctx, "default", &fc.V3TriggerArgs{
TriggerType: pulumi.String("cdn_events"),
TriggerName: pulumi.String(name),
Description: pulumi.String("create"),
Qualifier: pulumi.String("LATEST"),
TriggerConfig: pulumi.String(json0),
SourceArn: pulumi.Sprintf("acs:cdn:*:%v", current.Id),
InvocationRole: pulumi.Sprintf("acs:ram::%v:role/aliyuncdneventnotificationrole", current.Id),
FunctionName: function.FunctionName,
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using System.Text.Json;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "terraform-example";
var functionName = config.Get("functionName") ?? "TerraformTriggerResourceAPI";
var triggerName = config.Get("triggerName") ?? "TerraformTrigger_CDN";
var function = new AliCloud.FC.V3Function("function", new()
{
MemorySize = 512,
Cpu = 0.5,
Handler = "index.Handler",
Code = new AliCloud.FC.Inputs.V3FunctionCodeArgs
{
ZipFile = "UEsDBBQACAAIAAAAAAAAAAAAAAAAAAAAAAAIAAAAaW5kZXgucHmEkEFKxEAQRfd9ig9ZTCJOooIwDMwNXLqXnnQlaalUhU5lRj2KZ/FOXkESGR114bJ/P/7jV4b1xRq1hijtFpM1682cuNgPmgysbRulPT0fRxXnMtwrSPyeCdYRokSLnuMLJTTkbUqEvDMbxm1VdcRD6Tk+T1LW2ldB66knsYdA5iNX17ebm6tN2VnPhcswMPmREPuBacb+CiapLarAj9gT6/H97dVlCNScY3mtYvRkxdZlwDKDEnanPWVLdrdkeXEGlFEazVdfPVHaVeHc3N15CUwppwOJXeK7HshAB8NuOU7J6sP4SRXuH/EvbUfMiqMmDqv5M5FNSfAj/wgAAP//UEsHCPl//NYAAQAArwEAAFBLAQIUABQACAAIAAAAAAD5f/zWAAEAAK8BAAAIAAAAAAAAAAAAAAAAAAAAAABpbmRleC5weVBLBQYAAAAAAQABADYAAAA2AQAAAAA=",
},
FunctionName = name,
Runtime = "python3.9",
DiskSize = 512,
LogConfig = new AliCloud.FC.Inputs.V3FunctionLogConfigArgs
{
LogBeginRule = "None",
},
});
var current = AliCloud.GetAccount.Invoke();
var @default = new AliCloud.FC.V3Trigger("default", new()
{
TriggerType = "cdn_events",
TriggerName = name,
Description = "create",
Qualifier = "LATEST",
TriggerConfig = JsonSerializer.Serialize(new Dictionary<string, object?>
{
["eventName"] = "CachedObjectsPushed",
["eventVersion"] = "1.0.0",
["notes"] = "example",
["filter"] = new Dictionary<string, object?>
{
["domain"] = new[]
{
"example.com",
},
},
}),
SourceArn = $"acs:cdn:*:{current.Apply(getAccountResult => getAccountResult.Id)}",
InvocationRole = $"acs:ram::{current.Apply(getAccountResult => getAccountResult.Id)}:role/aliyuncdneventnotificationrole",
FunctionName = function.FunctionName,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.fc.V3Function;
import com.pulumi.alicloud.fc.V3FunctionArgs;
import com.pulumi.alicloud.fc.inputs.V3FunctionCodeArgs;
import com.pulumi.alicloud.fc.inputs.V3FunctionLogConfigArgs;
import com.pulumi.alicloud.AlicloudFunctions;
import com.pulumi.alicloud.fc.V3Trigger;
import com.pulumi.alicloud.fc.V3TriggerArgs;
import static com.pulumi.codegen.internal.Serialization.*;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var config = ctx.config();
final var name = config.get("name").orElse("terraform-example");
final var functionName = config.get("functionName").orElse("TerraformTriggerResourceAPI");
final var triggerName = config.get("triggerName").orElse("TerraformTrigger_CDN");
var function = new V3Function("function", V3FunctionArgs.builder()
.memorySize("512")
.cpu(0.5)
.handler("index.Handler")
.code(V3FunctionCodeArgs.builder()
.zipFile("UEsDBBQACAAIAAAAAAAAAAAAAAAAAAAAAAAIAAAAaW5kZXgucHmEkEFKxEAQRfd9ig9ZTCJOooIwDMwNXLqXnnQlaalUhU5lRj2KZ/FOXkESGR114bJ/P/7jV4b1xRq1hijtFpM1682cuNgPmgysbRulPT0fRxXnMtwrSPyeCdYRokSLnuMLJTTkbUqEvDMbxm1VdcRD6Tk+T1LW2ldB66knsYdA5iNX17ebm6tN2VnPhcswMPmREPuBacb+CiapLarAj9gT6/H97dVlCNScY3mtYvRkxdZlwDKDEnanPWVLdrdkeXEGlFEazVdfPVHaVeHc3N15CUwppwOJXeK7HshAB8NuOU7J6sP4SRXuH/EvbUfMiqMmDqv5M5FNSfAj/wgAAP//UEsHCPl//NYAAQAArwEAAFBLAQIUABQACAAIAAAAAAD5f/zWAAEAAK8BAAAIAAAAAAAAAAAAAAAAAAAAAABpbmRleC5weVBLBQYAAAAAAQABADYAAAA2AQAAAAA=")
.build())
.functionName(name)
.runtime("python3.9")
.diskSize("512")
.logConfig(V3FunctionLogConfigArgs.builder()
.logBeginRule("None")
.build())
.build());
final var current = AlicloudFunctions.getAccount();
var default_ = new V3Trigger("default", V3TriggerArgs.builder()
.triggerType("cdn_events")
.triggerName(name)
.description("create")
.qualifier("LATEST")
.triggerConfig(serializeJson(
jsonObject(
jsonProperty("eventName", "CachedObjectsPushed"),
jsonProperty("eventVersion", "1.0.0"),
jsonProperty("notes", "example"),
jsonProperty("filter", jsonObject(
jsonProperty("domain", jsonArray("example.com"))
))
)))
.sourceArn(String.format("acs:cdn:*:%s", current.applyValue(getAccountResult -> getAccountResult.id())))
.invocationRole(String.format("acs:ram::%s:role/aliyuncdneventnotificationrole", current.applyValue(getAccountResult -> getAccountResult.id())))
.functionName(function.functionName())
.build());
}
}
configuration:
name:
type: string
default: terraform-example
functionName:
type: string
default: TerraformTriggerResourceAPI
triggerName:
type: string
default: TerraformTrigger_CDN
resources:
function:
type: alicloud:fc:V3Function
properties:
memorySize: '512'
cpu: 0.5
handler: index.Handler
code:
zipFile: UEsDBBQACAAIAAAAAAAAAAAAAAAAAAAAAAAIAAAAaW5kZXgucHmEkEFKxEAQRfd9ig9ZTCJOooIwDMwNXLqXnnQlaalUhU5lRj2KZ/FOXkESGR114bJ/P/7jV4b1xRq1hijtFpM1682cuNgPmgysbRulPT0fRxXnMtwrSPyeCdYRokSLnuMLJTTkbUqEvDMbxm1VdcRD6Tk+T1LW2ldB66knsYdA5iNX17ebm6tN2VnPhcswMPmREPuBacb+CiapLarAj9gT6/H97dVlCNScY3mtYvRkxdZlwDKDEnanPWVLdrdkeXEGlFEazVdfPVHaVeHc3N15CUwppwOJXeK7HshAB8NuOU7J6sP4SRXuH/EvbUfMiqMmDqv5M5FNSfAj/wgAAP//UEsHCPl//NYAAQAArwEAAFBLAQIUABQACAAIAAAAAAD5f/zWAAEAAK8BAAAIAAAAAAAAAAAAAAAAAAAAAABpbmRleC5weVBLBQYAAAAAAQABADYAAAA2AQAAAAA=
functionName: ${name}
runtime: python3.9
diskSize: '512'
logConfig:
logBeginRule: None
default:
type: alicloud:fc:V3Trigger
properties:
triggerType: cdn_events
triggerName: ${name}
description: create
qualifier: LATEST
triggerConfig:
fn::toJSON:
eventName: CachedObjectsPushed
eventVersion: 1.0.0
notes: example
filter:
domain:
- example.com
sourceArn: acs:cdn:*:${current.id}
invocationRole: acs:ram::${current.id}:role/aliyuncdneventnotificationrole
functionName: ${function.functionName}
variables:
current:
fn::invoke:
Function: alicloud:getAccount
Arguments: {}
Create V3Trigger Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new V3Trigger(name: string, args: V3TriggerArgs, opts?: CustomResourceOptions);
@overload
def V3Trigger(resource_name: str,
args: V3TriggerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def V3Trigger(resource_name: str,
opts: Optional[ResourceOptions] = None,
function_name: Optional[str] = None,
qualifier: Optional[str] = None,
trigger_type: Optional[str] = None,
description: Optional[str] = None,
invocation_role: Optional[str] = None,
source_arn: Optional[str] = None,
trigger_config: Optional[str] = None,
trigger_name: Optional[str] = None)
func NewV3Trigger(ctx *Context, name string, args V3TriggerArgs, opts ...ResourceOption) (*V3Trigger, error)
public V3Trigger(string name, V3TriggerArgs args, CustomResourceOptions? opts = null)
public V3Trigger(String name, V3TriggerArgs args)
public V3Trigger(String name, V3TriggerArgs args, CustomResourceOptions options)
type: alicloud:fc:V3Trigger
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args V3TriggerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args V3TriggerArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args V3TriggerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args V3TriggerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args V3TriggerArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var v3triggerResource = new AliCloud.FC.V3Trigger("v3triggerResource", new()
{
FunctionName = "string",
Qualifier = "string",
TriggerType = "string",
Description = "string",
InvocationRole = "string",
SourceArn = "string",
TriggerConfig = "string",
TriggerName = "string",
});
example, err := fc.NewV3Trigger(ctx, "v3triggerResource", &fc.V3TriggerArgs{
FunctionName: pulumi.String("string"),
Qualifier: pulumi.String("string"),
TriggerType: pulumi.String("string"),
Description: pulumi.String("string"),
InvocationRole: pulumi.String("string"),
SourceArn: pulumi.String("string"),
TriggerConfig: pulumi.String("string"),
TriggerName: pulumi.String("string"),
})
var v3triggerResource = new V3Trigger("v3triggerResource", V3TriggerArgs.builder()
.functionName("string")
.qualifier("string")
.triggerType("string")
.description("string")
.invocationRole("string")
.sourceArn("string")
.triggerConfig("string")
.triggerName("string")
.build());
v3trigger_resource = alicloud.fc.V3Trigger("v3triggerResource",
function_name="string",
qualifier="string",
trigger_type="string",
description="string",
invocation_role="string",
source_arn="string",
trigger_config="string",
trigger_name="string")
const v3triggerResource = new alicloud.fc.V3Trigger("v3triggerResource", {
functionName: "string",
qualifier: "string",
triggerType: "string",
description: "string",
invocationRole: "string",
sourceArn: "string",
triggerConfig: "string",
triggerName: "string",
});
type: alicloud:fc:V3Trigger
properties:
description: string
functionName: string
invocationRole: string
qualifier: string
sourceArn: string
triggerConfig: string
triggerName: string
triggerType: string
V3Trigger Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The V3Trigger resource accepts the following input properties:
- Function
Name string - Function Name
- Qualifier string
- The version or alias of the function
- Trigger
Type string - The type of the trigger. Currently, the supported types include oss, log, http, timer, tablestore, cdn_events, mns_topic and eventbridge.
- Description string
- Description of the trigger
- Invocation
Role string - The role required by the event source (such as OSS) to call the function.
- Source
Arn string - Trigger Event source ARN
- Trigger
Config string - Trigger configuration. The configuration varies for different types of triggers.
- Trigger
Name string - Trigger Name
- Function
Name string - Function Name
- Qualifier string
- The version or alias of the function
- Trigger
Type string - The type of the trigger. Currently, the supported types include oss, log, http, timer, tablestore, cdn_events, mns_topic and eventbridge.
- Description string
- Description of the trigger
- Invocation
Role string - The role required by the event source (such as OSS) to call the function.
- Source
Arn string - Trigger Event source ARN
- Trigger
Config string - Trigger configuration. The configuration varies for different types of triggers.
- Trigger
Name string - Trigger Name
- function
Name String - Function Name
- qualifier String
- The version or alias of the function
- trigger
Type String - The type of the trigger. Currently, the supported types include oss, log, http, timer, tablestore, cdn_events, mns_topic and eventbridge.
- description String
- Description of the trigger
- invocation
Role String - The role required by the event source (such as OSS) to call the function.
- source
Arn String - Trigger Event source ARN
- trigger
Config String - Trigger configuration. The configuration varies for different types of triggers.
- trigger
Name String - Trigger Name
- function
Name string - Function Name
- qualifier string
- The version or alias of the function
- trigger
Type string - The type of the trigger. Currently, the supported types include oss, log, http, timer, tablestore, cdn_events, mns_topic and eventbridge.
- description string
- Description of the trigger
- invocation
Role string - The role required by the event source (such as OSS) to call the function.
- source
Arn string - Trigger Event source ARN
- trigger
Config string - Trigger configuration. The configuration varies for different types of triggers.
- trigger
Name string - Trigger Name
- function_
name str - Function Name
- qualifier str
- The version or alias of the function
- trigger_
type str - The type of the trigger. Currently, the supported types include oss, log, http, timer, tablestore, cdn_events, mns_topic and eventbridge.
- description str
- Description of the trigger
- invocation_
role str - The role required by the event source (such as OSS) to call the function.
- source_
arn str - Trigger Event source ARN
- trigger_
config str - Trigger configuration. The configuration varies for different types of triggers.
- trigger_
name str - Trigger Name
- function
Name String - Function Name
- qualifier String
- The version or alias of the function
- trigger
Type String - The type of the trigger. Currently, the supported types include oss, log, http, timer, tablestore, cdn_events, mns_topic and eventbridge.
- description String
- Description of the trigger
- invocation
Role String - The role required by the event source (such as OSS) to call the function.
- source
Arn String - Trigger Event source ARN
- trigger
Config String - Trigger configuration. The configuration varies for different types of triggers.
- trigger
Name String - Trigger Name
Outputs
All input properties are implicitly available as output properties. Additionally, the V3Trigger resource produces the following output properties:
- Create
Time string - Creation time
- Http
Trigger Pulumi.Ali Cloud. FC. Outputs. V3Trigger Http Trigger - (Available since v1.234.0) HTTP trigger information
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Modified stringTime - (Available since v1.234.0) The last modified time of the trigger
- Status string
- The state of the trigger
- Target
Arn string - (Available since v1.234.0) Resource identity of the function
- Trigger
Id string - (Available since v1.234.0) Trigger ID
- Create
Time string - Creation time
- Http
Trigger V3TriggerHttp Trigger - (Available since v1.234.0) HTTP trigger information
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Modified stringTime - (Available since v1.234.0) The last modified time of the trigger
- Status string
- The state of the trigger
- Target
Arn string - (Available since v1.234.0) Resource identity of the function
- Trigger
Id string - (Available since v1.234.0) Trigger ID
- create
Time String - Creation time
- http
Trigger V3TriggerHttp Trigger - (Available since v1.234.0) HTTP trigger information
- id String
- The provider-assigned unique ID for this managed resource.
- last
Modified StringTime - (Available since v1.234.0) The last modified time of the trigger
- status String
- The state of the trigger
- target
Arn String - (Available since v1.234.0) Resource identity of the function
- trigger
Id String - (Available since v1.234.0) Trigger ID
- create
Time string - Creation time
- http
Trigger V3TriggerHttp Trigger - (Available since v1.234.0) HTTP trigger information
- id string
- The provider-assigned unique ID for this managed resource.
- last
Modified stringTime - (Available since v1.234.0) The last modified time of the trigger
- status string
- The state of the trigger
- target
Arn string - (Available since v1.234.0) Resource identity of the function
- trigger
Id string - (Available since v1.234.0) Trigger ID
- create_
time str - Creation time
- http_
trigger V3TriggerHttp Trigger - (Available since v1.234.0) HTTP trigger information
- id str
- The provider-assigned unique ID for this managed resource.
- last_
modified_ strtime - (Available since v1.234.0) The last modified time of the trigger
- status str
- The state of the trigger
- target_
arn str - (Available since v1.234.0) Resource identity of the function
- trigger_
id str - (Available since v1.234.0) Trigger ID
- create
Time String - Creation time
- http
Trigger Property Map - (Available since v1.234.0) HTTP trigger information
- id String
- The provider-assigned unique ID for this managed resource.
- last
Modified StringTime - (Available since v1.234.0) The last modified time of the trigger
- status String
- The state of the trigger
- target
Arn String - (Available since v1.234.0) Resource identity of the function
- trigger
Id String - (Available since v1.234.0) Trigger ID
Look up Existing V3Trigger Resource
Get an existing V3Trigger 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?: V3TriggerState, opts?: CustomResourceOptions): V3Trigger
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
create_time: Optional[str] = None,
description: Optional[str] = None,
function_name: Optional[str] = None,
http_trigger: Optional[V3TriggerHttpTriggerArgs] = None,
invocation_role: Optional[str] = None,
last_modified_time: Optional[str] = None,
qualifier: Optional[str] = None,
source_arn: Optional[str] = None,
status: Optional[str] = None,
target_arn: Optional[str] = None,
trigger_config: Optional[str] = None,
trigger_id: Optional[str] = None,
trigger_name: Optional[str] = None,
trigger_type: Optional[str] = None) -> V3Trigger
func GetV3Trigger(ctx *Context, name string, id IDInput, state *V3TriggerState, opts ...ResourceOption) (*V3Trigger, error)
public static V3Trigger Get(string name, Input<string> id, V3TriggerState? state, CustomResourceOptions? opts = null)
public static V3Trigger get(String name, Output<String> id, V3TriggerState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- 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.
- Create
Time string - Creation time
- Description string
- Description of the trigger
- Function
Name string - Function Name
- Http
Trigger Pulumi.Ali Cloud. FC. Inputs. V3Trigger Http Trigger - (Available since v1.234.0) HTTP trigger information
- Invocation
Role string - The role required by the event source (such as OSS) to call the function.
- Last
Modified stringTime - (Available since v1.234.0) The last modified time of the trigger
- Qualifier string
- The version or alias of the function
- Source
Arn string - Trigger Event source ARN
- Status string
- The state of the trigger
- Target
Arn string - (Available since v1.234.0) Resource identity of the function
- Trigger
Config string - Trigger configuration. The configuration varies for different types of triggers.
- Trigger
Id string - (Available since v1.234.0) Trigger ID
- Trigger
Name string - Trigger Name
- Trigger
Type string - The type of the trigger. Currently, the supported types include oss, log, http, timer, tablestore, cdn_events, mns_topic and eventbridge.
- Create
Time string - Creation time
- Description string
- Description of the trigger
- Function
Name string - Function Name
- Http
Trigger V3TriggerHttp Trigger Args - (Available since v1.234.0) HTTP trigger information
- Invocation
Role string - The role required by the event source (such as OSS) to call the function.
- Last
Modified stringTime - (Available since v1.234.0) The last modified time of the trigger
- Qualifier string
- The version or alias of the function
- Source
Arn string - Trigger Event source ARN
- Status string
- The state of the trigger
- Target
Arn string - (Available since v1.234.0) Resource identity of the function
- Trigger
Config string - Trigger configuration. The configuration varies for different types of triggers.
- Trigger
Id string - (Available since v1.234.0) Trigger ID
- Trigger
Name string - Trigger Name
- Trigger
Type string - The type of the trigger. Currently, the supported types include oss, log, http, timer, tablestore, cdn_events, mns_topic and eventbridge.
- create
Time String - Creation time
- description String
- Description of the trigger
- function
Name String - Function Name
- http
Trigger V3TriggerHttp Trigger - (Available since v1.234.0) HTTP trigger information
- invocation
Role String - The role required by the event source (such as OSS) to call the function.
- last
Modified StringTime - (Available since v1.234.0) The last modified time of the trigger
- qualifier String
- The version or alias of the function
- source
Arn String - Trigger Event source ARN
- status String
- The state of the trigger
- target
Arn String - (Available since v1.234.0) Resource identity of the function
- trigger
Config String - Trigger configuration. The configuration varies for different types of triggers.
- trigger
Id String - (Available since v1.234.0) Trigger ID
- trigger
Name String - Trigger Name
- trigger
Type String - The type of the trigger. Currently, the supported types include oss, log, http, timer, tablestore, cdn_events, mns_topic and eventbridge.
- create
Time string - Creation time
- description string
- Description of the trigger
- function
Name string - Function Name
- http
Trigger V3TriggerHttp Trigger - (Available since v1.234.0) HTTP trigger information
- invocation
Role string - The role required by the event source (such as OSS) to call the function.
- last
Modified stringTime - (Available since v1.234.0) The last modified time of the trigger
- qualifier string
- The version or alias of the function
- source
Arn string - Trigger Event source ARN
- status string
- The state of the trigger
- target
Arn string - (Available since v1.234.0) Resource identity of the function
- trigger
Config string - Trigger configuration. The configuration varies for different types of triggers.
- trigger
Id string - (Available since v1.234.0) Trigger ID
- trigger
Name string - Trigger Name
- trigger
Type string - The type of the trigger. Currently, the supported types include oss, log, http, timer, tablestore, cdn_events, mns_topic and eventbridge.
- create_
time str - Creation time
- description str
- Description of the trigger
- function_
name str - Function Name
- http_
trigger V3TriggerHttp Trigger Args - (Available since v1.234.0) HTTP trigger information
- invocation_
role str - The role required by the event source (such as OSS) to call the function.
- last_
modified_ strtime - (Available since v1.234.0) The last modified time of the trigger
- qualifier str
- The version or alias of the function
- source_
arn str - Trigger Event source ARN
- status str
- The state of the trigger
- target_
arn str - (Available since v1.234.0) Resource identity of the function
- trigger_
config str - Trigger configuration. The configuration varies for different types of triggers.
- trigger_
id str - (Available since v1.234.0) Trigger ID
- trigger_
name str - Trigger Name
- trigger_
type str - The type of the trigger. Currently, the supported types include oss, log, http, timer, tablestore, cdn_events, mns_topic and eventbridge.
- create
Time String - Creation time
- description String
- Description of the trigger
- function
Name String - Function Name
- http
Trigger Property Map - (Available since v1.234.0) HTTP trigger information
- invocation
Role String - The role required by the event source (such as OSS) to call the function.
- last
Modified StringTime - (Available since v1.234.0) The last modified time of the trigger
- qualifier String
- The version or alias of the function
- source
Arn String - Trigger Event source ARN
- status String
- The state of the trigger
- target
Arn String - (Available since v1.234.0) Resource identity of the function
- trigger
Config String - Trigger configuration. The configuration varies for different types of triggers.
- trigger
Id String - (Available since v1.234.0) Trigger ID
- trigger
Name String - Trigger Name
- trigger
Type String - The type of the trigger. Currently, the supported types include oss, log, http, timer, tablestore, cdn_events, mns_topic and eventbridge.
Supporting Types
V3TriggerHttpTrigger, V3TriggerHttpTriggerArgs
- Url
Internet string - The public domain name address. On the Internet, you can access the HTTP Trigger through the HTTP protocol or HTTPS protocol.
- Url
Intranet string - The private domain name address. In a VPC, you can access the HTTP Trigger through HTTP or HTTPS.
- Url
Internet string - The public domain name address. On the Internet, you can access the HTTP Trigger through the HTTP protocol or HTTPS protocol.
- Url
Intranet string - The private domain name address. In a VPC, you can access the HTTP Trigger through HTTP or HTTPS.
- url
Internet String - The public domain name address. On the Internet, you can access the HTTP Trigger through the HTTP protocol or HTTPS protocol.
- url
Intranet String - The private domain name address. In a VPC, you can access the HTTP Trigger through HTTP or HTTPS.
- url
Internet string - The public domain name address. On the Internet, you can access the HTTP Trigger through the HTTP protocol or HTTPS protocol.
- url
Intranet string - The private domain name address. In a VPC, you can access the HTTP Trigger through HTTP or HTTPS.
- url_
internet str - The public domain name address. On the Internet, you can access the HTTP Trigger through the HTTP protocol or HTTPS protocol.
- url_
intranet str - The private domain name address. In a VPC, you can access the HTTP Trigger through HTTP or HTTPS.
- url
Internet String - The public domain name address. On the Internet, you can access the HTTP Trigger through the HTTP protocol or HTTPS protocol.
- url
Intranet String - The private domain name address. In a VPC, you can access the HTTP Trigger through HTTP or HTTPS.
Import
FCV3 Trigger can be imported using the id, e.g.
$ pulumi import alicloud:fc/v3Trigger:V3Trigger example <function_name>:<trigger_name>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.