1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. FgsTrigger
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.FgsTrigger

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    Manages a trigger resource within FlexibleEngine FunctionGraph.

    Example Usage

    Create a Timing Trigger with rate schedule type

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const config = new pulumi.Config();
    const functionUrn = config.requireObject("functionUrn");
    const triggerName = config.requireObject("triggerName");
    const test = new flexibleengine.FgsTrigger("test", {
        functionUrn: functionUrn,
        type: "TIMER",
        timer: {
            name: triggerName,
            scheduleType: "Rate",
            schedule: "1d",
        },
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    config = pulumi.Config()
    function_urn = config.require_object("functionUrn")
    trigger_name = config.require_object("triggerName")
    test = flexibleengine.FgsTrigger("test",
        function_urn=function_urn,
        type="TIMER",
        timer={
            "name": trigger_name,
            "schedule_type": "Rate",
            "schedule": "1d",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"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, "")
    		functionUrn := cfg.RequireObject("functionUrn")
    		triggerName := cfg.RequireObject("triggerName")
    		_, err := flexibleengine.NewFgsTrigger(ctx, "test", &flexibleengine.FgsTriggerArgs{
    			FunctionUrn: pulumi.Any(functionUrn),
    			Type:        pulumi.String("TIMER"),
    			Timer: &flexibleengine.FgsTriggerTimerArgs{
    				Name:         pulumi.Any(triggerName),
    				ScheduleType: pulumi.String("Rate"),
    				Schedule:     pulumi.String("1d"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var functionUrn = config.RequireObject<dynamic>("functionUrn");
        var triggerName = config.RequireObject<dynamic>("triggerName");
        var test = new Flexibleengine.FgsTrigger("test", new()
        {
            FunctionUrn = functionUrn,
            Type = "TIMER",
            Timer = new Flexibleengine.Inputs.FgsTriggerTimerArgs
            {
                Name = triggerName,
                ScheduleType = "Rate",
                Schedule = "1d",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.FgsTrigger;
    import com.pulumi.flexibleengine.FgsTriggerArgs;
    import com.pulumi.flexibleengine.inputs.FgsTriggerTimerArgs;
    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 functionUrn = config.get("functionUrn");
            final var triggerName = config.get("triggerName");
            var test = new FgsTrigger("test", FgsTriggerArgs.builder()
                .functionUrn(functionUrn)
                .type("TIMER")
                .timer(FgsTriggerTimerArgs.builder()
                    .name(triggerName)
                    .scheduleType("Rate")
                    .schedule("1d")
                    .build())
                .build());
    
        }
    }
    
    configuration:
      functionUrn:
        type: dynamic
      triggerName:
        type: dynamic
    resources:
      test:
        type: flexibleengine:FgsTrigger
        properties:
          functionUrn: ${functionUrn}
          type: TIMER
          timer:
            name: ${triggerName}
            scheduleType: Rate
            schedule: 1d
    

    Create a Timing Trigger with cron schedule type

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const config = new pulumi.Config();
    const functionUrn = config.requireObject("functionUrn");
    const triggerName = config.requireObject("triggerName");
    const test = new flexibleengine.FgsTrigger("test", {
        functionUrn: functionUrn,
        type: "TIMER",
        timer: {
            name: triggerName,
            scheduleType: "Cron",
            schedule: "@every 1h30m",
        },
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    config = pulumi.Config()
    function_urn = config.require_object("functionUrn")
    trigger_name = config.require_object("triggerName")
    test = flexibleengine.FgsTrigger("test",
        function_urn=function_urn,
        type="TIMER",
        timer={
            "name": trigger_name,
            "schedule_type": "Cron",
            "schedule": "@every 1h30m",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"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, "")
    		functionUrn := cfg.RequireObject("functionUrn")
    		triggerName := cfg.RequireObject("triggerName")
    		_, err := flexibleengine.NewFgsTrigger(ctx, "test", &flexibleengine.FgsTriggerArgs{
    			FunctionUrn: pulumi.Any(functionUrn),
    			Type:        pulumi.String("TIMER"),
    			Timer: &flexibleengine.FgsTriggerTimerArgs{
    				Name:         pulumi.Any(triggerName),
    				ScheduleType: pulumi.String("Cron"),
    				Schedule:     pulumi.String("@every 1h30m"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var functionUrn = config.RequireObject<dynamic>("functionUrn");
        var triggerName = config.RequireObject<dynamic>("triggerName");
        var test = new Flexibleengine.FgsTrigger("test", new()
        {
            FunctionUrn = functionUrn,
            Type = "TIMER",
            Timer = new Flexibleengine.Inputs.FgsTriggerTimerArgs
            {
                Name = triggerName,
                ScheduleType = "Cron",
                Schedule = "@every 1h30m",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.FgsTrigger;
    import com.pulumi.flexibleengine.FgsTriggerArgs;
    import com.pulumi.flexibleengine.inputs.FgsTriggerTimerArgs;
    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 functionUrn = config.get("functionUrn");
            final var triggerName = config.get("triggerName");
            var test = new FgsTrigger("test", FgsTriggerArgs.builder()
                .functionUrn(functionUrn)
                .type("TIMER")
                .timer(FgsTriggerTimerArgs.builder()
                    .name(triggerName)
                    .scheduleType("Cron")
                    .schedule("@every 1h30m")
                    .build())
                .build());
    
        }
    }
    
    configuration:
      functionUrn:
        type: dynamic
      triggerName:
        type: dynamic
    resources:
      test:
        type: flexibleengine:FgsTrigger
        properties:
          functionUrn: ${functionUrn}
          type: TIMER
          timer:
            name: ${triggerName}
            scheduleType: Cron
            schedule: '@every 1h30m'
    

    Create an OBS trigger

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const config = new pulumi.Config();
    const functionUrn = config.requireObject("functionUrn");
    const bucketName = config.requireObject("bucketName");
    const triggerName = config.requireObject("triggerName");
    const test = new flexibleengine.FgsTrigger("test", {
        functionUrn: functionUrn,
        type: "OBS",
        status: "ACTIVE",
        obs: {
            bucketName: bucketName,
            eventNotificationName: triggerName,
            suffix: ".json",
            events: ["ObjectCreated"],
        },
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    config = pulumi.Config()
    function_urn = config.require_object("functionUrn")
    bucket_name = config.require_object("bucketName")
    trigger_name = config.require_object("triggerName")
    test = flexibleengine.FgsTrigger("test",
        function_urn=function_urn,
        type="OBS",
        status="ACTIVE",
        obs={
            "bucket_name": bucket_name,
            "event_notification_name": trigger_name,
            "suffix": ".json",
            "events": ["ObjectCreated"],
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"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, "")
    		functionUrn := cfg.RequireObject("functionUrn")
    		bucketName := cfg.RequireObject("bucketName")
    		triggerName := cfg.RequireObject("triggerName")
    		_, err := flexibleengine.NewFgsTrigger(ctx, "test", &flexibleengine.FgsTriggerArgs{
    			FunctionUrn: pulumi.Any(functionUrn),
    			Type:        pulumi.String("OBS"),
    			Status:      pulumi.String("ACTIVE"),
    			Obs: &flexibleengine.FgsTriggerObsArgs{
    				BucketName:            pulumi.Any(bucketName),
    				EventNotificationName: pulumi.Any(triggerName),
    				Suffix:                pulumi.String(".json"),
    				Events: pulumi.StringArray{
    					pulumi.String("ObjectCreated"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var functionUrn = config.RequireObject<dynamic>("functionUrn");
        var bucketName = config.RequireObject<dynamic>("bucketName");
        var triggerName = config.RequireObject<dynamic>("triggerName");
        var test = new Flexibleengine.FgsTrigger("test", new()
        {
            FunctionUrn = functionUrn,
            Type = "OBS",
            Status = "ACTIVE",
            Obs = new Flexibleengine.Inputs.FgsTriggerObsArgs
            {
                BucketName = bucketName,
                EventNotificationName = triggerName,
                Suffix = ".json",
                Events = new[]
                {
                    "ObjectCreated",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.FgsTrigger;
    import com.pulumi.flexibleengine.FgsTriggerArgs;
    import com.pulumi.flexibleengine.inputs.FgsTriggerObsArgs;
    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 functionUrn = config.get("functionUrn");
            final var bucketName = config.get("bucketName");
            final var triggerName = config.get("triggerName");
            var test = new FgsTrigger("test", FgsTriggerArgs.builder()
                .functionUrn(functionUrn)
                .type("OBS")
                .status("ACTIVE")
                .obs(FgsTriggerObsArgs.builder()
                    .bucketName(bucketName)
                    .eventNotificationName(triggerName)
                    .suffix(".json")
                    .events("ObjectCreated")
                    .build())
                .build());
    
        }
    }
    
    configuration:
      functionUrn:
        type: dynamic
      bucketName:
        type: dynamic
      triggerName:
        type: dynamic
    resources:
      test:
        type: flexibleengine:FgsTrigger
        properties:
          functionUrn: ${functionUrn}
          type: OBS
          status: ACTIVE
          obs:
            bucketName: ${bucketName}
            eventNotificationName: ${triggerName}
            suffix: .json
            events:
              - ObjectCreated
    

    Create an SMN trigger

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const config = new pulumi.Config();
    const functionUrn = config.requireObject("functionUrn");
    const topicUrn = config.requireObject("topicUrn");
    const test = new flexibleengine.FgsTrigger("test", {
        functionUrn: functionUrn,
        type: "SMN",
        status: "ACTIVE",
        smn: {
            topicUrn: topicUrn,
        },
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    config = pulumi.Config()
    function_urn = config.require_object("functionUrn")
    topic_urn = config.require_object("topicUrn")
    test = flexibleengine.FgsTrigger("test",
        function_urn=function_urn,
        type="SMN",
        status="ACTIVE",
        smn={
            "topic_urn": topic_urn,
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"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, "")
    		functionUrn := cfg.RequireObject("functionUrn")
    		topicUrn := cfg.RequireObject("topicUrn")
    		_, err := flexibleengine.NewFgsTrigger(ctx, "test", &flexibleengine.FgsTriggerArgs{
    			FunctionUrn: pulumi.Any(functionUrn),
    			Type:        pulumi.String("SMN"),
    			Status:      pulumi.String("ACTIVE"),
    			Smn: &flexibleengine.FgsTriggerSmnArgs{
    				TopicUrn: pulumi.Any(topicUrn),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var functionUrn = config.RequireObject<dynamic>("functionUrn");
        var topicUrn = config.RequireObject<dynamic>("topicUrn");
        var test = new Flexibleengine.FgsTrigger("test", new()
        {
            FunctionUrn = functionUrn,
            Type = "SMN",
            Status = "ACTIVE",
            Smn = new Flexibleengine.Inputs.FgsTriggerSmnArgs
            {
                TopicUrn = topicUrn,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.FgsTrigger;
    import com.pulumi.flexibleengine.FgsTriggerArgs;
    import com.pulumi.flexibleengine.inputs.FgsTriggerSmnArgs;
    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 functionUrn = config.get("functionUrn");
            final var topicUrn = config.get("topicUrn");
            var test = new FgsTrigger("test", FgsTriggerArgs.builder()
                .functionUrn(functionUrn)
                .type("SMN")
                .status("ACTIVE")
                .smn(FgsTriggerSmnArgs.builder()
                    .topicUrn(topicUrn)
                    .build())
                .build());
    
        }
    }
    
    configuration:
      functionUrn:
        type: dynamic
      topicUrn:
        type: dynamic
    resources:
      test:
        type: flexibleengine:FgsTrigger
        properties:
          functionUrn: ${functionUrn}
          type: SMN
          status: ACTIVE
          smn:
            topicUrn: ${topicUrn}
    

    Create a DIS trigger

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const config = new pulumi.Config();
    const functionUrn = config.requireObject("functionUrn");
    const streamName = config.requireObject("streamName");
    const test = new flexibleengine.FgsTrigger("test", {
        functionUrn: functionUrn,
        type: "DIS",
        status: "ACTIVE",
        dis: {
            streamName: streamName,
            startingPosition: "TRIM_HORIZON",
            maxFetchBytes: 2097152,
            pullPeriod: 30000,
            serialEnable: true,
        },
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    config = pulumi.Config()
    function_urn = config.require_object("functionUrn")
    stream_name = config.require_object("streamName")
    test = flexibleengine.FgsTrigger("test",
        function_urn=function_urn,
        type="DIS",
        status="ACTIVE",
        dis={
            "stream_name": stream_name,
            "starting_position": "TRIM_HORIZON",
            "max_fetch_bytes": 2097152,
            "pull_period": 30000,
            "serial_enable": True,
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"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, "")
    		functionUrn := cfg.RequireObject("functionUrn")
    		streamName := cfg.RequireObject("streamName")
    		_, err := flexibleengine.NewFgsTrigger(ctx, "test", &flexibleengine.FgsTriggerArgs{
    			FunctionUrn: pulumi.Any(functionUrn),
    			Type:        pulumi.String("DIS"),
    			Status:      pulumi.String("ACTIVE"),
    			Dis: &flexibleengine.FgsTriggerDisArgs{
    				StreamName:       pulumi.Any(streamName),
    				StartingPosition: pulumi.String("TRIM_HORIZON"),
    				MaxFetchBytes:    pulumi.Float64(2097152),
    				PullPeriod:       pulumi.Float64(30000),
    				SerialEnable:     pulumi.Bool(true),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var functionUrn = config.RequireObject<dynamic>("functionUrn");
        var streamName = config.RequireObject<dynamic>("streamName");
        var test = new Flexibleengine.FgsTrigger("test", new()
        {
            FunctionUrn = functionUrn,
            Type = "DIS",
            Status = "ACTIVE",
            Dis = new Flexibleengine.Inputs.FgsTriggerDisArgs
            {
                StreamName = streamName,
                StartingPosition = "TRIM_HORIZON",
                MaxFetchBytes = 2097152,
                PullPeriod = 30000,
                SerialEnable = true,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.FgsTrigger;
    import com.pulumi.flexibleengine.FgsTriggerArgs;
    import com.pulumi.flexibleengine.inputs.FgsTriggerDisArgs;
    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 functionUrn = config.get("functionUrn");
            final var streamName = config.get("streamName");
            var test = new FgsTrigger("test", FgsTriggerArgs.builder()
                .functionUrn(functionUrn)
                .type("DIS")
                .status("ACTIVE")
                .dis(FgsTriggerDisArgs.builder()
                    .streamName(streamName)
                    .startingPosition("TRIM_HORIZON")
                    .maxFetchBytes(2097152)
                    .pullPeriod(30000)
                    .serialEnable(true)
                    .build())
                .build());
    
        }
    }
    
    configuration:
      functionUrn:
        type: dynamic
      streamName:
        type: dynamic
    resources:
      test:
        type: flexibleengine:FgsTrigger
        properties:
          functionUrn: ${functionUrn}
          type: DIS
          status: ACTIVE
          dis:
            streamName: ${streamName}
            startingPosition: TRIM_HORIZON
            maxFetchBytes: 2.097152e+06
            pullPeriod: 30000
            serialEnable: true
    

    Create a Shared APIG trigger

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const config = new pulumi.Config();
    const functionUrn = config.requireObject("functionUrn");
    const groupId = config.requireObject("groupId");
    const apiName = config.requireObject("apiName");
    const test = new flexibleengine.FgsTrigger("test", {
        functionUrn: functionUrn,
        type: "APIG",
        status: "ACTIVE",
        apig: {
            groupId: groupId,
            apiName: apiName,
            envName: "RELEASE",
        },
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    config = pulumi.Config()
    function_urn = config.require_object("functionUrn")
    group_id = config.require_object("groupId")
    api_name = config.require_object("apiName")
    test = flexibleengine.FgsTrigger("test",
        function_urn=function_urn,
        type="APIG",
        status="ACTIVE",
        apig={
            "group_id": group_id,
            "api_name": api_name,
            "env_name": "RELEASE",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"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, "")
    		functionUrn := cfg.RequireObject("functionUrn")
    		groupId := cfg.RequireObject("groupId")
    		apiName := cfg.RequireObject("apiName")
    		_, err := flexibleengine.NewFgsTrigger(ctx, "test", &flexibleengine.FgsTriggerArgs{
    			FunctionUrn: pulumi.Any(functionUrn),
    			Type:        pulumi.String("APIG"),
    			Status:      pulumi.String("ACTIVE"),
    			Apig: &flexibleengine.FgsTriggerApigArgs{
    				GroupId: pulumi.Any(groupId),
    				ApiName: pulumi.Any(apiName),
    				EnvName: pulumi.String("RELEASE"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var functionUrn = config.RequireObject<dynamic>("functionUrn");
        var groupId = config.RequireObject<dynamic>("groupId");
        var apiName = config.RequireObject<dynamic>("apiName");
        var test = new Flexibleengine.FgsTrigger("test", new()
        {
            FunctionUrn = functionUrn,
            Type = "APIG",
            Status = "ACTIVE",
            Apig = new Flexibleengine.Inputs.FgsTriggerApigArgs
            {
                GroupId = groupId,
                ApiName = apiName,
                EnvName = "RELEASE",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.FgsTrigger;
    import com.pulumi.flexibleengine.FgsTriggerArgs;
    import com.pulumi.flexibleengine.inputs.FgsTriggerApigArgs;
    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 functionUrn = config.get("functionUrn");
            final var groupId = config.get("groupId");
            final var apiName = config.get("apiName");
            var test = new FgsTrigger("test", FgsTriggerArgs.builder()
                .functionUrn(functionUrn)
                .type("APIG")
                .status("ACTIVE")
                .apig(FgsTriggerApigArgs.builder()
                    .groupId(groupId)
                    .apiName(apiName)
                    .envName("RELEASE")
                    .build())
                .build());
    
        }
    }
    
    configuration:
      functionUrn:
        type: dynamic
      groupId:
        type: dynamic
      apiName:
        type: dynamic
    resources:
      test:
        type: flexibleengine:FgsTrigger
        properties:
          functionUrn: ${functionUrn}
          type: APIG
          status: ACTIVE
          apig:
            groupId: ${groupId}
            apiName: ${apiName}
            envName: RELEASE
    

    Create FgsTrigger Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new FgsTrigger(name: string, args: FgsTriggerArgs, opts?: CustomResourceOptions);
    @overload
    def FgsTrigger(resource_name: str,
                   args: FgsTriggerArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def FgsTrigger(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   function_urn: Optional[str] = None,
                   type: Optional[str] = None,
                   obs: Optional[FgsTriggerObsArgs] = None,
                   fgs_trigger_id: Optional[str] = None,
                   kafka: Optional[FgsTriggerKafkaArgs] = None,
                   lts: Optional[FgsTriggerLtsArgs] = None,
                   apig: Optional[FgsTriggerApigArgs] = None,
                   region: Optional[str] = None,
                   smn: Optional[FgsTriggerSmnArgs] = None,
                   status: Optional[str] = None,
                   timeouts: Optional[FgsTriggerTimeoutsArgs] = None,
                   timer: Optional[FgsTriggerTimerArgs] = None,
                   dis: Optional[FgsTriggerDisArgs] = None)
    func NewFgsTrigger(ctx *Context, name string, args FgsTriggerArgs, opts ...ResourceOption) (*FgsTrigger, error)
    public FgsTrigger(string name, FgsTriggerArgs args, CustomResourceOptions? opts = null)
    public FgsTrigger(String name, FgsTriggerArgs args)
    public FgsTrigger(String name, FgsTriggerArgs args, CustomResourceOptions options)
    
    type: flexibleengine:FgsTrigger
    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 FgsTriggerArgs
    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 FgsTriggerArgs
    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 FgsTriggerArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args FgsTriggerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args FgsTriggerArgs
    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 fgsTriggerResource = new Flexibleengine.FgsTrigger("fgsTriggerResource", new()
    {
        FunctionUrn = "string",
        Type = "string",
        Obs = new Flexibleengine.Inputs.FgsTriggerObsArgs
        {
            BucketName = "string",
            EventNotificationName = "string",
            Events = new[]
            {
                "string",
            },
            Prefix = "string",
            Suffix = "string",
        },
        FgsTriggerId = "string",
        Kafka = new Flexibleengine.Inputs.FgsTriggerKafkaArgs
        {
            InstanceId = "string",
            TopicIds = new[]
            {
                "string",
            },
            BatchSize = 0,
            Password = "string",
            UserName = "string",
        },
        Lts = new Flexibleengine.Inputs.FgsTriggerLtsArgs
        {
            LogGroupId = "string",
            LogTopicId = "string",
        },
        Apig = new Flexibleengine.Inputs.FgsTriggerApigArgs
        {
            ApiName = "string",
            EnvName = "string",
            GroupId = "string",
            InstanceId = "string",
            RequestProtocol = "string",
            SecurityAuthentication = "string",
            Timeout = 0,
        },
        Region = "string",
        Smn = new Flexibleengine.Inputs.FgsTriggerSmnArgs
        {
            TopicUrn = "string",
        },
        Status = "string",
        Timeouts = new Flexibleengine.Inputs.FgsTriggerTimeoutsArgs
        {
            Update = "string",
        },
        Timer = new Flexibleengine.Inputs.FgsTriggerTimerArgs
        {
            Name = "string",
            Schedule = "string",
            ScheduleType = "string",
            AdditionalInformation = "string",
        },
        Dis = new Flexibleengine.Inputs.FgsTriggerDisArgs
        {
            MaxFetchBytes = 0,
            PullPeriod = 0,
            SerialEnable = false,
            StartingPosition = "string",
            StreamName = "string",
        },
    });
    
    example, err := flexibleengine.NewFgsTrigger(ctx, "fgsTriggerResource", &flexibleengine.FgsTriggerArgs{
    	FunctionUrn: pulumi.String("string"),
    	Type:        pulumi.String("string"),
    	Obs: &flexibleengine.FgsTriggerObsArgs{
    		BucketName:            pulumi.String("string"),
    		EventNotificationName: pulumi.String("string"),
    		Events: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		Prefix: pulumi.String("string"),
    		Suffix: pulumi.String("string"),
    	},
    	FgsTriggerId: pulumi.String("string"),
    	Kafka: &flexibleengine.FgsTriggerKafkaArgs{
    		InstanceId: pulumi.String("string"),
    		TopicIds: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		BatchSize: pulumi.Float64(0),
    		Password:  pulumi.String("string"),
    		UserName:  pulumi.String("string"),
    	},
    	Lts: &flexibleengine.FgsTriggerLtsArgs{
    		LogGroupId: pulumi.String("string"),
    		LogTopicId: pulumi.String("string"),
    	},
    	Apig: &flexibleengine.FgsTriggerApigArgs{
    		ApiName:                pulumi.String("string"),
    		EnvName:                pulumi.String("string"),
    		GroupId:                pulumi.String("string"),
    		InstanceId:             pulumi.String("string"),
    		RequestProtocol:        pulumi.String("string"),
    		SecurityAuthentication: pulumi.String("string"),
    		Timeout:                pulumi.Float64(0),
    	},
    	Region: pulumi.String("string"),
    	Smn: &flexibleengine.FgsTriggerSmnArgs{
    		TopicUrn: pulumi.String("string"),
    	},
    	Status: pulumi.String("string"),
    	Timeouts: &flexibleengine.FgsTriggerTimeoutsArgs{
    		Update: pulumi.String("string"),
    	},
    	Timer: &flexibleengine.FgsTriggerTimerArgs{
    		Name:                  pulumi.String("string"),
    		Schedule:              pulumi.String("string"),
    		ScheduleType:          pulumi.String("string"),
    		AdditionalInformation: pulumi.String("string"),
    	},
    	Dis: &flexibleengine.FgsTriggerDisArgs{
    		MaxFetchBytes:    pulumi.Float64(0),
    		PullPeriod:       pulumi.Float64(0),
    		SerialEnable:     pulumi.Bool(false),
    		StartingPosition: pulumi.String("string"),
    		StreamName:       pulumi.String("string"),
    	},
    })
    
    var fgsTriggerResource = new FgsTrigger("fgsTriggerResource", FgsTriggerArgs.builder()
        .functionUrn("string")
        .type("string")
        .obs(FgsTriggerObsArgs.builder()
            .bucketName("string")
            .eventNotificationName("string")
            .events("string")
            .prefix("string")
            .suffix("string")
            .build())
        .fgsTriggerId("string")
        .kafka(FgsTriggerKafkaArgs.builder()
            .instanceId("string")
            .topicIds("string")
            .batchSize(0)
            .password("string")
            .userName("string")
            .build())
        .lts(FgsTriggerLtsArgs.builder()
            .logGroupId("string")
            .logTopicId("string")
            .build())
        .apig(FgsTriggerApigArgs.builder()
            .apiName("string")
            .envName("string")
            .groupId("string")
            .instanceId("string")
            .requestProtocol("string")
            .securityAuthentication("string")
            .timeout(0)
            .build())
        .region("string")
        .smn(FgsTriggerSmnArgs.builder()
            .topicUrn("string")
            .build())
        .status("string")
        .timeouts(FgsTriggerTimeoutsArgs.builder()
            .update("string")
            .build())
        .timer(FgsTriggerTimerArgs.builder()
            .name("string")
            .schedule("string")
            .scheduleType("string")
            .additionalInformation("string")
            .build())
        .dis(FgsTriggerDisArgs.builder()
            .maxFetchBytes(0)
            .pullPeriod(0)
            .serialEnable(false)
            .startingPosition("string")
            .streamName("string")
            .build())
        .build());
    
    fgs_trigger_resource = flexibleengine.FgsTrigger("fgsTriggerResource",
        function_urn="string",
        type="string",
        obs={
            "bucket_name": "string",
            "event_notification_name": "string",
            "events": ["string"],
            "prefix": "string",
            "suffix": "string",
        },
        fgs_trigger_id="string",
        kafka={
            "instance_id": "string",
            "topic_ids": ["string"],
            "batch_size": 0,
            "password": "string",
            "user_name": "string",
        },
        lts={
            "log_group_id": "string",
            "log_topic_id": "string",
        },
        apig={
            "api_name": "string",
            "env_name": "string",
            "group_id": "string",
            "instance_id": "string",
            "request_protocol": "string",
            "security_authentication": "string",
            "timeout": 0,
        },
        region="string",
        smn={
            "topic_urn": "string",
        },
        status="string",
        timeouts={
            "update": "string",
        },
        timer={
            "name": "string",
            "schedule": "string",
            "schedule_type": "string",
            "additional_information": "string",
        },
        dis={
            "max_fetch_bytes": 0,
            "pull_period": 0,
            "serial_enable": False,
            "starting_position": "string",
            "stream_name": "string",
        })
    
    const fgsTriggerResource = new flexibleengine.FgsTrigger("fgsTriggerResource", {
        functionUrn: "string",
        type: "string",
        obs: {
            bucketName: "string",
            eventNotificationName: "string",
            events: ["string"],
            prefix: "string",
            suffix: "string",
        },
        fgsTriggerId: "string",
        kafka: {
            instanceId: "string",
            topicIds: ["string"],
            batchSize: 0,
            password: "string",
            userName: "string",
        },
        lts: {
            logGroupId: "string",
            logTopicId: "string",
        },
        apig: {
            apiName: "string",
            envName: "string",
            groupId: "string",
            instanceId: "string",
            requestProtocol: "string",
            securityAuthentication: "string",
            timeout: 0,
        },
        region: "string",
        smn: {
            topicUrn: "string",
        },
        status: "string",
        timeouts: {
            update: "string",
        },
        timer: {
            name: "string",
            schedule: "string",
            scheduleType: "string",
            additionalInformation: "string",
        },
        dis: {
            maxFetchBytes: 0,
            pullPeriod: 0,
            serialEnable: false,
            startingPosition: "string",
            streamName: "string",
        },
    });
    
    type: flexibleengine:FgsTrigger
    properties:
        apig:
            apiName: string
            envName: string
            groupId: string
            instanceId: string
            requestProtocol: string
            securityAuthentication: string
            timeout: 0
        dis:
            maxFetchBytes: 0
            pullPeriod: 0
            serialEnable: false
            startingPosition: string
            streamName: string
        fgsTriggerId: string
        functionUrn: string
        kafka:
            batchSize: 0
            instanceId: string
            password: string
            topicIds:
                - string
            userName: string
        lts:
            logGroupId: string
            logTopicId: string
        obs:
            bucketName: string
            eventNotificationName: string
            events:
                - string
            prefix: string
            suffix: string
        region: string
        smn:
            topicUrn: string
        status: string
        timeouts:
            update: string
        timer:
            additionalInformation: string
            name: string
            schedule: string
            scheduleType: string
        type: string
    

    FgsTrigger 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 FgsTrigger resource accepts the following input properties:

    FunctionUrn string
    Specifies the Uniform Resource Name (URN) of the function. Changing this will create a new trigger resource.
    Type string
    Specifies the type of the function. The valid values currently only support TIMER, OBS, SMN, DIS, and APIG. Changing this will create a new trigger resource.
    Apig FgsTriggerApig

    Specifies the configuration of the shared APIG trigger. Changing this will create a new trigger resource. The apig object structure is documented below.

    The timer block supports:

    Dis FgsTriggerDis

    Specifies the configuration of the DIS trigger. Changing this will create a new trigger resource. The dis object structure is documented below.

    NOTE: Specify an agency with DIS access permissions for the function version before you can create a DIS trigger.

    FgsTriggerId string
    resource ID in UUID format.
    Kafka FgsTriggerKafka
    Lts FgsTriggerLts
    Obs FgsTriggerObs
    Specifies the configuration of the OBS trigger. Changing this will create a new trigger resource. The obs object structure is documented below.
    Region string
    Specifies the region in which to create the trigger resource. If omitted, the provider-level region will be used. Changing this will create a new trigger resource.
    Smn FgsTriggerSmn
    Specifies the configuration of the SMN trigger. Changing this will create a new trigger resource. The smn object structure is documented below.
    Status string

    Specifies whether trigger is enabled. The valid values are ACTIVE and DISABLED.

    NOTE: Currently, SMN triggers do not support status, and OBS triggers do not support updating status.

    Timeouts FgsTriggerTimeouts
    Timer FgsTriggerTimer
    Specifies the configuration of the timing trigger. Changing this will create a new trigger resource. The timer object structure is documented below.
    FunctionUrn string
    Specifies the Uniform Resource Name (URN) of the function. Changing this will create a new trigger resource.
    Type string
    Specifies the type of the function. The valid values currently only support TIMER, OBS, SMN, DIS, and APIG. Changing this will create a new trigger resource.
    Apig FgsTriggerApigArgs

    Specifies the configuration of the shared APIG trigger. Changing this will create a new trigger resource. The apig object structure is documented below.

    The timer block supports:

    Dis FgsTriggerDisArgs

    Specifies the configuration of the DIS trigger. Changing this will create a new trigger resource. The dis object structure is documented below.

    NOTE: Specify an agency with DIS access permissions for the function version before you can create a DIS trigger.

    FgsTriggerId string
    resource ID in UUID format.
    Kafka FgsTriggerKafkaArgs
    Lts FgsTriggerLtsArgs
    Obs FgsTriggerObsArgs
    Specifies the configuration of the OBS trigger. Changing this will create a new trigger resource. The obs object structure is documented below.
    Region string
    Specifies the region in which to create the trigger resource. If omitted, the provider-level region will be used. Changing this will create a new trigger resource.
    Smn FgsTriggerSmnArgs
    Specifies the configuration of the SMN trigger. Changing this will create a new trigger resource. The smn object structure is documented below.
    Status string

    Specifies whether trigger is enabled. The valid values are ACTIVE and DISABLED.

    NOTE: Currently, SMN triggers do not support status, and OBS triggers do not support updating status.

    Timeouts FgsTriggerTimeoutsArgs
    Timer FgsTriggerTimerArgs
    Specifies the configuration of the timing trigger. Changing this will create a new trigger resource. The timer object structure is documented below.
    functionUrn String
    Specifies the Uniform Resource Name (URN) of the function. Changing this will create a new trigger resource.
    type String
    Specifies the type of the function. The valid values currently only support TIMER, OBS, SMN, DIS, and APIG. Changing this will create a new trigger resource.
    apig FgsTriggerApig

    Specifies the configuration of the shared APIG trigger. Changing this will create a new trigger resource. The apig object structure is documented below.

    The timer block supports:

    dis FgsTriggerDis

    Specifies the configuration of the DIS trigger. Changing this will create a new trigger resource. The dis object structure is documented below.

    NOTE: Specify an agency with DIS access permissions for the function version before you can create a DIS trigger.

    fgsTriggerId String
    resource ID in UUID format.
    kafka FgsTriggerKafka
    lts FgsTriggerLts
    obs FgsTriggerObs
    Specifies the configuration of the OBS trigger. Changing this will create a new trigger resource. The obs object structure is documented below.
    region String
    Specifies the region in which to create the trigger resource. If omitted, the provider-level region will be used. Changing this will create a new trigger resource.
    smn FgsTriggerSmn
    Specifies the configuration of the SMN trigger. Changing this will create a new trigger resource. The smn object structure is documented below.
    status String

    Specifies whether trigger is enabled. The valid values are ACTIVE and DISABLED.

    NOTE: Currently, SMN triggers do not support status, and OBS triggers do not support updating status.

    timeouts FgsTriggerTimeouts
    timer FgsTriggerTimer
    Specifies the configuration of the timing trigger. Changing this will create a new trigger resource. The timer object structure is documented below.
    functionUrn string
    Specifies the Uniform Resource Name (URN) of the function. Changing this will create a new trigger resource.
    type string
    Specifies the type of the function. The valid values currently only support TIMER, OBS, SMN, DIS, and APIG. Changing this will create a new trigger resource.
    apig FgsTriggerApig

    Specifies the configuration of the shared APIG trigger. Changing this will create a new trigger resource. The apig object structure is documented below.

    The timer block supports:

    dis FgsTriggerDis

    Specifies the configuration of the DIS trigger. Changing this will create a new trigger resource. The dis object structure is documented below.

    NOTE: Specify an agency with DIS access permissions for the function version before you can create a DIS trigger.

    fgsTriggerId string
    resource ID in UUID format.
    kafka FgsTriggerKafka
    lts FgsTriggerLts
    obs FgsTriggerObs
    Specifies the configuration of the OBS trigger. Changing this will create a new trigger resource. The obs object structure is documented below.
    region string
    Specifies the region in which to create the trigger resource. If omitted, the provider-level region will be used. Changing this will create a new trigger resource.
    smn FgsTriggerSmn
    Specifies the configuration of the SMN trigger. Changing this will create a new trigger resource. The smn object structure is documented below.
    status string

    Specifies whether trigger is enabled. The valid values are ACTIVE and DISABLED.

    NOTE: Currently, SMN triggers do not support status, and OBS triggers do not support updating status.

    timeouts FgsTriggerTimeouts
    timer FgsTriggerTimer
    Specifies the configuration of the timing trigger. Changing this will create a new trigger resource. The timer object structure is documented below.
    function_urn str
    Specifies the Uniform Resource Name (URN) of the function. Changing this will create a new trigger resource.
    type str
    Specifies the type of the function. The valid values currently only support TIMER, OBS, SMN, DIS, and APIG. Changing this will create a new trigger resource.
    apig FgsTriggerApigArgs

    Specifies the configuration of the shared APIG trigger. Changing this will create a new trigger resource. The apig object structure is documented below.

    The timer block supports:

    dis FgsTriggerDisArgs

    Specifies the configuration of the DIS trigger. Changing this will create a new trigger resource. The dis object structure is documented below.

    NOTE: Specify an agency with DIS access permissions for the function version before you can create a DIS trigger.

    fgs_trigger_id str
    resource ID in UUID format.
    kafka FgsTriggerKafkaArgs
    lts FgsTriggerLtsArgs
    obs FgsTriggerObsArgs
    Specifies the configuration of the OBS trigger. Changing this will create a new trigger resource. The obs object structure is documented below.
    region str
    Specifies the region in which to create the trigger resource. If omitted, the provider-level region will be used. Changing this will create a new trigger resource.
    smn FgsTriggerSmnArgs
    Specifies the configuration of the SMN trigger. Changing this will create a new trigger resource. The smn object structure is documented below.
    status str

    Specifies whether trigger is enabled. The valid values are ACTIVE and DISABLED.

    NOTE: Currently, SMN triggers do not support status, and OBS triggers do not support updating status.

    timeouts FgsTriggerTimeoutsArgs
    timer FgsTriggerTimerArgs
    Specifies the configuration of the timing trigger. Changing this will create a new trigger resource. The timer object structure is documented below.
    functionUrn String
    Specifies the Uniform Resource Name (URN) of the function. Changing this will create a new trigger resource.
    type String
    Specifies the type of the function. The valid values currently only support TIMER, OBS, SMN, DIS, and APIG. Changing this will create a new trigger resource.
    apig Property Map

    Specifies the configuration of the shared APIG trigger. Changing this will create a new trigger resource. The apig object structure is documented below.

    The timer block supports:

    dis Property Map

    Specifies the configuration of the DIS trigger. Changing this will create a new trigger resource. The dis object structure is documented below.

    NOTE: Specify an agency with DIS access permissions for the function version before you can create a DIS trigger.

    fgsTriggerId String
    resource ID in UUID format.
    kafka Property Map
    lts Property Map
    obs Property Map
    Specifies the configuration of the OBS trigger. Changing this will create a new trigger resource. The obs object structure is documented below.
    region String
    Specifies the region in which to create the trigger resource. If omitted, the provider-level region will be used. Changing this will create a new trigger resource.
    smn Property Map
    Specifies the configuration of the SMN trigger. Changing this will create a new trigger resource. The smn object structure is documented below.
    status String

    Specifies whether trigger is enabled. The valid values are ACTIVE and DISABLED.

    NOTE: Currently, SMN triggers do not support status, and OBS triggers do not support updating status.

    timeouts Property Map
    timer Property Map
    Specifies the configuration of the timing trigger. Changing this will create a new trigger resource. The timer object structure is documented below.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the FgsTrigger resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing FgsTrigger Resource

    Get an existing FgsTrigger 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?: FgsTriggerState, opts?: CustomResourceOptions): FgsTrigger
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            apig: Optional[FgsTriggerApigArgs] = None,
            dis: Optional[FgsTriggerDisArgs] = None,
            fgs_trigger_id: Optional[str] = None,
            function_urn: Optional[str] = None,
            kafka: Optional[FgsTriggerKafkaArgs] = None,
            lts: Optional[FgsTriggerLtsArgs] = None,
            obs: Optional[FgsTriggerObsArgs] = None,
            region: Optional[str] = None,
            smn: Optional[FgsTriggerSmnArgs] = None,
            status: Optional[str] = None,
            timeouts: Optional[FgsTriggerTimeoutsArgs] = None,
            timer: Optional[FgsTriggerTimerArgs] = None,
            type: Optional[str] = None) -> FgsTrigger
    func GetFgsTrigger(ctx *Context, name string, id IDInput, state *FgsTriggerState, opts ...ResourceOption) (*FgsTrigger, error)
    public static FgsTrigger Get(string name, Input<string> id, FgsTriggerState? state, CustomResourceOptions? opts = null)
    public static FgsTrigger get(String name, Output<String> id, FgsTriggerState state, CustomResourceOptions options)
    resources:  _:    type: flexibleengine:FgsTrigger    get:      id: ${id}
    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.
    The following state arguments are supported:
    Apig FgsTriggerApig

    Specifies the configuration of the shared APIG trigger. Changing this will create a new trigger resource. The apig object structure is documented below.

    The timer block supports:

    Dis FgsTriggerDis

    Specifies the configuration of the DIS trigger. Changing this will create a new trigger resource. The dis object structure is documented below.

    NOTE: Specify an agency with DIS access permissions for the function version before you can create a DIS trigger.

    FgsTriggerId string
    resource ID in UUID format.
    FunctionUrn string
    Specifies the Uniform Resource Name (URN) of the function. Changing this will create a new trigger resource.
    Kafka FgsTriggerKafka
    Lts FgsTriggerLts
    Obs FgsTriggerObs
    Specifies the configuration of the OBS trigger. Changing this will create a new trigger resource. The obs object structure is documented below.
    Region string
    Specifies the region in which to create the trigger resource. If omitted, the provider-level region will be used. Changing this will create a new trigger resource.
    Smn FgsTriggerSmn
    Specifies the configuration of the SMN trigger. Changing this will create a new trigger resource. The smn object structure is documented below.
    Status string

    Specifies whether trigger is enabled. The valid values are ACTIVE and DISABLED.

    NOTE: Currently, SMN triggers do not support status, and OBS triggers do not support updating status.

    Timeouts FgsTriggerTimeouts
    Timer FgsTriggerTimer
    Specifies the configuration of the timing trigger. Changing this will create a new trigger resource. The timer object structure is documented below.
    Type string
    Specifies the type of the function. The valid values currently only support TIMER, OBS, SMN, DIS, and APIG. Changing this will create a new trigger resource.
    Apig FgsTriggerApigArgs

    Specifies the configuration of the shared APIG trigger. Changing this will create a new trigger resource. The apig object structure is documented below.

    The timer block supports:

    Dis FgsTriggerDisArgs

    Specifies the configuration of the DIS trigger. Changing this will create a new trigger resource. The dis object structure is documented below.

    NOTE: Specify an agency with DIS access permissions for the function version before you can create a DIS trigger.

    FgsTriggerId string
    resource ID in UUID format.
    FunctionUrn string
    Specifies the Uniform Resource Name (URN) of the function. Changing this will create a new trigger resource.
    Kafka FgsTriggerKafkaArgs
    Lts FgsTriggerLtsArgs
    Obs FgsTriggerObsArgs
    Specifies the configuration of the OBS trigger. Changing this will create a new trigger resource. The obs object structure is documented below.
    Region string
    Specifies the region in which to create the trigger resource. If omitted, the provider-level region will be used. Changing this will create a new trigger resource.
    Smn FgsTriggerSmnArgs
    Specifies the configuration of the SMN trigger. Changing this will create a new trigger resource. The smn object structure is documented below.
    Status string

    Specifies whether trigger is enabled. The valid values are ACTIVE and DISABLED.

    NOTE: Currently, SMN triggers do not support status, and OBS triggers do not support updating status.

    Timeouts FgsTriggerTimeoutsArgs
    Timer FgsTriggerTimerArgs
    Specifies the configuration of the timing trigger. Changing this will create a new trigger resource. The timer object structure is documented below.
    Type string
    Specifies the type of the function. The valid values currently only support TIMER, OBS, SMN, DIS, and APIG. Changing this will create a new trigger resource.
    apig FgsTriggerApig

    Specifies the configuration of the shared APIG trigger. Changing this will create a new trigger resource. The apig object structure is documented below.

    The timer block supports:

    dis FgsTriggerDis

    Specifies the configuration of the DIS trigger. Changing this will create a new trigger resource. The dis object structure is documented below.

    NOTE: Specify an agency with DIS access permissions for the function version before you can create a DIS trigger.

    fgsTriggerId String
    resource ID in UUID format.
    functionUrn String
    Specifies the Uniform Resource Name (URN) of the function. Changing this will create a new trigger resource.
    kafka FgsTriggerKafka
    lts FgsTriggerLts
    obs FgsTriggerObs
    Specifies the configuration of the OBS trigger. Changing this will create a new trigger resource. The obs object structure is documented below.
    region String
    Specifies the region in which to create the trigger resource. If omitted, the provider-level region will be used. Changing this will create a new trigger resource.
    smn FgsTriggerSmn
    Specifies the configuration of the SMN trigger. Changing this will create a new trigger resource. The smn object structure is documented below.
    status String

    Specifies whether trigger is enabled. The valid values are ACTIVE and DISABLED.

    NOTE: Currently, SMN triggers do not support status, and OBS triggers do not support updating status.

    timeouts FgsTriggerTimeouts
    timer FgsTriggerTimer
    Specifies the configuration of the timing trigger. Changing this will create a new trigger resource. The timer object structure is documented below.
    type String
    Specifies the type of the function. The valid values currently only support TIMER, OBS, SMN, DIS, and APIG. Changing this will create a new trigger resource.
    apig FgsTriggerApig

    Specifies the configuration of the shared APIG trigger. Changing this will create a new trigger resource. The apig object structure is documented below.

    The timer block supports:

    dis FgsTriggerDis

    Specifies the configuration of the DIS trigger. Changing this will create a new trigger resource. The dis object structure is documented below.

    NOTE: Specify an agency with DIS access permissions for the function version before you can create a DIS trigger.

    fgsTriggerId string
    resource ID in UUID format.
    functionUrn string
    Specifies the Uniform Resource Name (URN) of the function. Changing this will create a new trigger resource.
    kafka FgsTriggerKafka
    lts FgsTriggerLts
    obs FgsTriggerObs
    Specifies the configuration of the OBS trigger. Changing this will create a new trigger resource. The obs object structure is documented below.
    region string
    Specifies the region in which to create the trigger resource. If omitted, the provider-level region will be used. Changing this will create a new trigger resource.
    smn FgsTriggerSmn
    Specifies the configuration of the SMN trigger. Changing this will create a new trigger resource. The smn object structure is documented below.
    status string

    Specifies whether trigger is enabled. The valid values are ACTIVE and DISABLED.

    NOTE: Currently, SMN triggers do not support status, and OBS triggers do not support updating status.

    timeouts FgsTriggerTimeouts
    timer FgsTriggerTimer
    Specifies the configuration of the timing trigger. Changing this will create a new trigger resource. The timer object structure is documented below.
    type string
    Specifies the type of the function. The valid values currently only support TIMER, OBS, SMN, DIS, and APIG. Changing this will create a new trigger resource.
    apig FgsTriggerApigArgs

    Specifies the configuration of the shared APIG trigger. Changing this will create a new trigger resource. The apig object structure is documented below.

    The timer block supports:

    dis FgsTriggerDisArgs

    Specifies the configuration of the DIS trigger. Changing this will create a new trigger resource. The dis object structure is documented below.

    NOTE: Specify an agency with DIS access permissions for the function version before you can create a DIS trigger.

    fgs_trigger_id str
    resource ID in UUID format.
    function_urn str
    Specifies the Uniform Resource Name (URN) of the function. Changing this will create a new trigger resource.
    kafka FgsTriggerKafkaArgs
    lts FgsTriggerLtsArgs
    obs FgsTriggerObsArgs
    Specifies the configuration of the OBS trigger. Changing this will create a new trigger resource. The obs object structure is documented below.
    region str
    Specifies the region in which to create the trigger resource. If omitted, the provider-level region will be used. Changing this will create a new trigger resource.
    smn FgsTriggerSmnArgs
    Specifies the configuration of the SMN trigger. Changing this will create a new trigger resource. The smn object structure is documented below.
    status str

    Specifies whether trigger is enabled. The valid values are ACTIVE and DISABLED.

    NOTE: Currently, SMN triggers do not support status, and OBS triggers do not support updating status.

    timeouts FgsTriggerTimeoutsArgs
    timer FgsTriggerTimerArgs
    Specifies the configuration of the timing trigger. Changing this will create a new trigger resource. The timer object structure is documented below.
    type str
    Specifies the type of the function. The valid values currently only support TIMER, OBS, SMN, DIS, and APIG. Changing this will create a new trigger resource.
    apig Property Map

    Specifies the configuration of the shared APIG trigger. Changing this will create a new trigger resource. The apig object structure is documented below.

    The timer block supports:

    dis Property Map

    Specifies the configuration of the DIS trigger. Changing this will create a new trigger resource. The dis object structure is documented below.

    NOTE: Specify an agency with DIS access permissions for the function version before you can create a DIS trigger.

    fgsTriggerId String
    resource ID in UUID format.
    functionUrn String
    Specifies the Uniform Resource Name (URN) of the function. Changing this will create a new trigger resource.
    kafka Property Map
    lts Property Map
    obs Property Map
    Specifies the configuration of the OBS trigger. Changing this will create a new trigger resource. The obs object structure is documented below.
    region String
    Specifies the region in which to create the trigger resource. If omitted, the provider-level region will be used. Changing this will create a new trigger resource.
    smn Property Map
    Specifies the configuration of the SMN trigger. Changing this will create a new trigger resource. The smn object structure is documented below.
    status String

    Specifies whether trigger is enabled. The valid values are ACTIVE and DISABLED.

    NOTE: Currently, SMN triggers do not support status, and OBS triggers do not support updating status.

    timeouts Property Map
    timer Property Map
    Specifies the configuration of the timing trigger. Changing this will create a new trigger resource. The timer object structure is documented below.
    type String
    Specifies the type of the function. The valid values currently only support TIMER, OBS, SMN, DIS, and APIG. Changing this will create a new trigger resource.

    Supporting Types

    FgsTriggerApig, FgsTriggerApigArgs

    ApiName string
    Specifies the API name. Changing this will create a new trigger resource.
    EnvName string
    Specifies the API environment name. Changing this will create a new trigger resource.
    GroupId string
    Specifies the ID of the APIG group to which the API belongs. Changing this will create a new trigger resource.
    InstanceId string
    RequestProtocol string
    Specifies the request protocol of the API. The valid value are HTTP and HTTPS. Default to HTTPS. Changing this will create a new trigger resource.
    SecurityAuthentication string
    Specifies the security authentication mode. The valid values are NONE, APP and IAM, default to IAM. Changing this will create a new trigger resource.
    Timeout double
    Specifies the timeout for request sending. The valid value is range form 1 to 60,000, default to 5,000. Changing this will create a new trigger resource.
    ApiName string
    Specifies the API name. Changing this will create a new trigger resource.
    EnvName string
    Specifies the API environment name. Changing this will create a new trigger resource.
    GroupId string
    Specifies the ID of the APIG group to which the API belongs. Changing this will create a new trigger resource.
    InstanceId string
    RequestProtocol string
    Specifies the request protocol of the API. The valid value are HTTP and HTTPS. Default to HTTPS. Changing this will create a new trigger resource.
    SecurityAuthentication string
    Specifies the security authentication mode. The valid values are NONE, APP and IAM, default to IAM. Changing this will create a new trigger resource.
    Timeout float64
    Specifies the timeout for request sending. The valid value is range form 1 to 60,000, default to 5,000. Changing this will create a new trigger resource.
    apiName String
    Specifies the API name. Changing this will create a new trigger resource.
    envName String
    Specifies the API environment name. Changing this will create a new trigger resource.
    groupId String
    Specifies the ID of the APIG group to which the API belongs. Changing this will create a new trigger resource.
    instanceId String
    requestProtocol String
    Specifies the request protocol of the API. The valid value are HTTP and HTTPS. Default to HTTPS. Changing this will create a new trigger resource.
    securityAuthentication String
    Specifies the security authentication mode. The valid values are NONE, APP and IAM, default to IAM. Changing this will create a new trigger resource.
    timeout Double
    Specifies the timeout for request sending. The valid value is range form 1 to 60,000, default to 5,000. Changing this will create a new trigger resource.
    apiName string
    Specifies the API name. Changing this will create a new trigger resource.
    envName string
    Specifies the API environment name. Changing this will create a new trigger resource.
    groupId string
    Specifies the ID of the APIG group to which the API belongs. Changing this will create a new trigger resource.
    instanceId string
    requestProtocol string
    Specifies the request protocol of the API. The valid value are HTTP and HTTPS. Default to HTTPS. Changing this will create a new trigger resource.
    securityAuthentication string
    Specifies the security authentication mode. The valid values are NONE, APP and IAM, default to IAM. Changing this will create a new trigger resource.
    timeout number
    Specifies the timeout for request sending. The valid value is range form 1 to 60,000, default to 5,000. Changing this will create a new trigger resource.
    api_name str
    Specifies the API name. Changing this will create a new trigger resource.
    env_name str
    Specifies the API environment name. Changing this will create a new trigger resource.
    group_id str
    Specifies the ID of the APIG group to which the API belongs. Changing this will create a new trigger resource.
    instance_id str
    request_protocol str
    Specifies the request protocol of the API. The valid value are HTTP and HTTPS. Default to HTTPS. Changing this will create a new trigger resource.
    security_authentication str
    Specifies the security authentication mode. The valid values are NONE, APP and IAM, default to IAM. Changing this will create a new trigger resource.
    timeout float
    Specifies the timeout for request sending. The valid value is range form 1 to 60,000, default to 5,000. Changing this will create a new trigger resource.
    apiName String
    Specifies the API name. Changing this will create a new trigger resource.
    envName String
    Specifies the API environment name. Changing this will create a new trigger resource.
    groupId String
    Specifies the ID of the APIG group to which the API belongs. Changing this will create a new trigger resource.
    instanceId String
    requestProtocol String
    Specifies the request protocol of the API. The valid value are HTTP and HTTPS. Default to HTTPS. Changing this will create a new trigger resource.
    securityAuthentication String
    Specifies the security authentication mode. The valid values are NONE, APP and IAM, default to IAM. Changing this will create a new trigger resource.
    timeout Number
    Specifies the timeout for request sending. The valid value is range form 1 to 60,000, default to 5,000. Changing this will create a new trigger resource.

    FgsTriggerDis, FgsTriggerDisArgs

    MaxFetchBytes double
    Specifies the maximum volume of data that can be obtained for a single request, in Byte. Only the records with a size smaller than this value can be obtained. The valid value is range from 1,024 to 4,194,304. Changing this will create a new trigger resource.
    PullPeriod double
    Specifies the interval at which data is pulled from the specified stream. The valid value is range from 2 to 60,000. Changing this will create a new trigger resource.
    SerialEnable bool

    Specifies the determines whether to pull data only after the data pulled in the last period has been processed. Changing this will create a new trigger resource.

    The apig block supports:

    StartingPosition string
    Specifies the type of starting position for DIS queue. The valid values are as follows:

    • TRIM_HORIZON: Starts reading from the earliest data stored in the partitions.
    • LATEST: Starts reading from the latest data stored in the partitions. Changing this will create a new trigger resource.
    StreamName string
    Specifies the name of the DIS stream resource. Changing this will create a new trigger resource.
    MaxFetchBytes float64
    Specifies the maximum volume of data that can be obtained for a single request, in Byte. Only the records with a size smaller than this value can be obtained. The valid value is range from 1,024 to 4,194,304. Changing this will create a new trigger resource.
    PullPeriod float64
    Specifies the interval at which data is pulled from the specified stream. The valid value is range from 2 to 60,000. Changing this will create a new trigger resource.
    SerialEnable bool

    Specifies the determines whether to pull data only after the data pulled in the last period has been processed. Changing this will create a new trigger resource.

    The apig block supports:

    StartingPosition string
    Specifies the type of starting position for DIS queue. The valid values are as follows:

    • TRIM_HORIZON: Starts reading from the earliest data stored in the partitions.
    • LATEST: Starts reading from the latest data stored in the partitions. Changing this will create a new trigger resource.
    StreamName string
    Specifies the name of the DIS stream resource. Changing this will create a new trigger resource.
    maxFetchBytes Double
    Specifies the maximum volume of data that can be obtained for a single request, in Byte. Only the records with a size smaller than this value can be obtained. The valid value is range from 1,024 to 4,194,304. Changing this will create a new trigger resource.
    pullPeriod Double
    Specifies the interval at which data is pulled from the specified stream. The valid value is range from 2 to 60,000. Changing this will create a new trigger resource.
    serialEnable Boolean

    Specifies the determines whether to pull data only after the data pulled in the last period has been processed. Changing this will create a new trigger resource.

    The apig block supports:

    startingPosition String
    Specifies the type of starting position for DIS queue. The valid values are as follows:

    • TRIM_HORIZON: Starts reading from the earliest data stored in the partitions.
    • LATEST: Starts reading from the latest data stored in the partitions. Changing this will create a new trigger resource.
    streamName String
    Specifies the name of the DIS stream resource. Changing this will create a new trigger resource.
    maxFetchBytes number
    Specifies the maximum volume of data that can be obtained for a single request, in Byte. Only the records with a size smaller than this value can be obtained. The valid value is range from 1,024 to 4,194,304. Changing this will create a new trigger resource.
    pullPeriod number
    Specifies the interval at which data is pulled from the specified stream. The valid value is range from 2 to 60,000. Changing this will create a new trigger resource.
    serialEnable boolean

    Specifies the determines whether to pull data only after the data pulled in the last period has been processed. Changing this will create a new trigger resource.

    The apig block supports:

    startingPosition string
    Specifies the type of starting position for DIS queue. The valid values are as follows:

    • TRIM_HORIZON: Starts reading from the earliest data stored in the partitions.
    • LATEST: Starts reading from the latest data stored in the partitions. Changing this will create a new trigger resource.
    streamName string
    Specifies the name of the DIS stream resource. Changing this will create a new trigger resource.
    max_fetch_bytes float
    Specifies the maximum volume of data that can be obtained for a single request, in Byte. Only the records with a size smaller than this value can be obtained. The valid value is range from 1,024 to 4,194,304. Changing this will create a new trigger resource.
    pull_period float
    Specifies the interval at which data is pulled from the specified stream. The valid value is range from 2 to 60,000. Changing this will create a new trigger resource.
    serial_enable bool

    Specifies the determines whether to pull data only after the data pulled in the last period has been processed. Changing this will create a new trigger resource.

    The apig block supports:

    starting_position str
    Specifies the type of starting position for DIS queue. The valid values are as follows:

    • TRIM_HORIZON: Starts reading from the earliest data stored in the partitions.
    • LATEST: Starts reading from the latest data stored in the partitions. Changing this will create a new trigger resource.
    stream_name str
    Specifies the name of the DIS stream resource. Changing this will create a new trigger resource.
    maxFetchBytes Number
    Specifies the maximum volume of data that can be obtained for a single request, in Byte. Only the records with a size smaller than this value can be obtained. The valid value is range from 1,024 to 4,194,304. Changing this will create a new trigger resource.
    pullPeriod Number
    Specifies the interval at which data is pulled from the specified stream. The valid value is range from 2 to 60,000. Changing this will create a new trigger resource.
    serialEnable Boolean

    Specifies the determines whether to pull data only after the data pulled in the last period has been processed. Changing this will create a new trigger resource.

    The apig block supports:

    startingPosition String
    Specifies the type of starting position for DIS queue. The valid values are as follows:

    • TRIM_HORIZON: Starts reading from the earliest data stored in the partitions.
    • LATEST: Starts reading from the latest data stored in the partitions. Changing this will create a new trigger resource.
    streamName String
    Specifies the name of the DIS stream resource. Changing this will create a new trigger resource.

    FgsTriggerKafka, FgsTriggerKafkaArgs

    InstanceId string
    TopicIds List<string>
    BatchSize double
    Password string
    UserName string
    InstanceId string
    TopicIds []string
    BatchSize float64
    Password string
    UserName string
    instanceId String
    topicIds List<String>
    batchSize Double
    password String
    userName String
    instanceId string
    topicIds string[]
    batchSize number
    password string
    userName string
    instance_id str
    topic_ids Sequence[str]
    batch_size float
    password str
    user_name str
    instanceId String
    topicIds List<String>
    batchSize Number
    password String
    userName String

    FgsTriggerLts, FgsTriggerLtsArgs

    LogGroupId string
    LogTopicId string
    LogGroupId string
    LogTopicId string
    logGroupId String
    logTopicId String
    logGroupId string
    logTopicId string
    logGroupId String
    logTopicId String

    FgsTriggerObs, FgsTriggerObsArgs

    BucketName string
    Specifies the OBS bucket name. Changing this will create a new trigger resource.
    EventNotificationName string
    Specifies the event notification name. Changing this will create a new trigger resource.
    Events List<string>

    Specifies the events that can trigger functions. Changing this will create a new trigger resource. The valid values are as follows:

    • ObjectCreated, Put, Post, Copy and CompleteMultipartUpload.
    • ObjectRemoved, Delete and DeleteMarkerCreated.

    NOTE: If ObjectCreated is configured, Put, Post, Copy and CompleteMultipartUpload cannot be configured. If ObjectRemoved is configured, Delete and DeleteMarkerCreated cannot be configured.

    Prefix string
    Specifies the prefix to limit notifications to objects beginning with this keyword. Changing this will create a new trigger resource.
    Suffix string

    Specifies the suffix to limit notifications to objects ending with this keyword. Changing this will create a new trigger resource.

    The smn block supports:

    BucketName string
    Specifies the OBS bucket name. Changing this will create a new trigger resource.
    EventNotificationName string
    Specifies the event notification name. Changing this will create a new trigger resource.
    Events []string

    Specifies the events that can trigger functions. Changing this will create a new trigger resource. The valid values are as follows:

    • ObjectCreated, Put, Post, Copy and CompleteMultipartUpload.
    • ObjectRemoved, Delete and DeleteMarkerCreated.

    NOTE: If ObjectCreated is configured, Put, Post, Copy and CompleteMultipartUpload cannot be configured. If ObjectRemoved is configured, Delete and DeleteMarkerCreated cannot be configured.

    Prefix string
    Specifies the prefix to limit notifications to objects beginning with this keyword. Changing this will create a new trigger resource.
    Suffix string

    Specifies the suffix to limit notifications to objects ending with this keyword. Changing this will create a new trigger resource.

    The smn block supports:

    bucketName String
    Specifies the OBS bucket name. Changing this will create a new trigger resource.
    eventNotificationName String
    Specifies the event notification name. Changing this will create a new trigger resource.
    events List<String>

    Specifies the events that can trigger functions. Changing this will create a new trigger resource. The valid values are as follows:

    • ObjectCreated, Put, Post, Copy and CompleteMultipartUpload.
    • ObjectRemoved, Delete and DeleteMarkerCreated.

    NOTE: If ObjectCreated is configured, Put, Post, Copy and CompleteMultipartUpload cannot be configured. If ObjectRemoved is configured, Delete and DeleteMarkerCreated cannot be configured.

    prefix String
    Specifies the prefix to limit notifications to objects beginning with this keyword. Changing this will create a new trigger resource.
    suffix String

    Specifies the suffix to limit notifications to objects ending with this keyword. Changing this will create a new trigger resource.

    The smn block supports:

    bucketName string
    Specifies the OBS bucket name. Changing this will create a new trigger resource.
    eventNotificationName string
    Specifies the event notification name. Changing this will create a new trigger resource.
    events string[]

    Specifies the events that can trigger functions. Changing this will create a new trigger resource. The valid values are as follows:

    • ObjectCreated, Put, Post, Copy and CompleteMultipartUpload.
    • ObjectRemoved, Delete and DeleteMarkerCreated.

    NOTE: If ObjectCreated is configured, Put, Post, Copy and CompleteMultipartUpload cannot be configured. If ObjectRemoved is configured, Delete and DeleteMarkerCreated cannot be configured.

    prefix string
    Specifies the prefix to limit notifications to objects beginning with this keyword. Changing this will create a new trigger resource.
    suffix string

    Specifies the suffix to limit notifications to objects ending with this keyword. Changing this will create a new trigger resource.

    The smn block supports:

    bucket_name str
    Specifies the OBS bucket name. Changing this will create a new trigger resource.
    event_notification_name str
    Specifies the event notification name. Changing this will create a new trigger resource.
    events Sequence[str]

    Specifies the events that can trigger functions. Changing this will create a new trigger resource. The valid values are as follows:

    • ObjectCreated, Put, Post, Copy and CompleteMultipartUpload.
    • ObjectRemoved, Delete and DeleteMarkerCreated.

    NOTE: If ObjectCreated is configured, Put, Post, Copy and CompleteMultipartUpload cannot be configured. If ObjectRemoved is configured, Delete and DeleteMarkerCreated cannot be configured.

    prefix str
    Specifies the prefix to limit notifications to objects beginning with this keyword. Changing this will create a new trigger resource.
    suffix str

    Specifies the suffix to limit notifications to objects ending with this keyword. Changing this will create a new trigger resource.

    The smn block supports:

    bucketName String
    Specifies the OBS bucket name. Changing this will create a new trigger resource.
    eventNotificationName String
    Specifies the event notification name. Changing this will create a new trigger resource.
    events List<String>

    Specifies the events that can trigger functions. Changing this will create a new trigger resource. The valid values are as follows:

    • ObjectCreated, Put, Post, Copy and CompleteMultipartUpload.
    • ObjectRemoved, Delete and DeleteMarkerCreated.

    NOTE: If ObjectCreated is configured, Put, Post, Copy and CompleteMultipartUpload cannot be configured. If ObjectRemoved is configured, Delete and DeleteMarkerCreated cannot be configured.

    prefix String
    Specifies the prefix to limit notifications to objects beginning with this keyword. Changing this will create a new trigger resource.
    suffix String

    Specifies the suffix to limit notifications to objects ending with this keyword. Changing this will create a new trigger resource.

    The smn block supports:

    FgsTriggerSmn, FgsTriggerSmnArgs

    TopicUrn string

    Specifies the Uniform Resource Name (URN) for SMN topic. Changing this will create a new trigger resource.

    The dis block supports:

    TopicUrn string

    Specifies the Uniform Resource Name (URN) for SMN topic. Changing this will create a new trigger resource.

    The dis block supports:

    topicUrn String

    Specifies the Uniform Resource Name (URN) for SMN topic. Changing this will create a new trigger resource.

    The dis block supports:

    topicUrn string

    Specifies the Uniform Resource Name (URN) for SMN topic. Changing this will create a new trigger resource.

    The dis block supports:

    topic_urn str

    Specifies the Uniform Resource Name (URN) for SMN topic. Changing this will create a new trigger resource.

    The dis block supports:

    topicUrn String

    Specifies the Uniform Resource Name (URN) for SMN topic. Changing this will create a new trigger resource.

    The dis block supports:

    FgsTriggerTimeouts, FgsTriggerTimeoutsArgs

    Update string
    Update string
    update String
    update string
    update str
    update String

    FgsTriggerTimer, FgsTriggerTimerArgs

    Name string
    Specifies the trigger name, which can contains of 1 to 64 characters. The name must start with a letter, only letters, digits, hyphens (-) and underscores (_) are allowed. Changing this will create a new trigger resource.
    Schedule string
    Specifies the time schedule. For the rate type, schedule is composed of time and time unit. The time unit supports minutes (m), hours (h) and days (d). For the corn expression, please refer to the User Guide. Changing this will create a new trigger resource.
    ScheduleType string
    Specifies the type of the time schedule. The valid values are Rate and Cron. Changing this will create a new trigger resource.
    AdditionalInformation string

    Specifies the event used by the timer to trigger the function. Changing this will create a new trigger resource.

    The obs block supports:

    Name string
    Specifies the trigger name, which can contains of 1 to 64 characters. The name must start with a letter, only letters, digits, hyphens (-) and underscores (_) are allowed. Changing this will create a new trigger resource.
    Schedule string
    Specifies the time schedule. For the rate type, schedule is composed of time and time unit. The time unit supports minutes (m), hours (h) and days (d). For the corn expression, please refer to the User Guide. Changing this will create a new trigger resource.
    ScheduleType string
    Specifies the type of the time schedule. The valid values are Rate and Cron. Changing this will create a new trigger resource.
    AdditionalInformation string

    Specifies the event used by the timer to trigger the function. Changing this will create a new trigger resource.

    The obs block supports:

    name String
    Specifies the trigger name, which can contains of 1 to 64 characters. The name must start with a letter, only letters, digits, hyphens (-) and underscores (_) are allowed. Changing this will create a new trigger resource.
    schedule String
    Specifies the time schedule. For the rate type, schedule is composed of time and time unit. The time unit supports minutes (m), hours (h) and days (d). For the corn expression, please refer to the User Guide. Changing this will create a new trigger resource.
    scheduleType String
    Specifies the type of the time schedule. The valid values are Rate and Cron. Changing this will create a new trigger resource.
    additionalInformation String

    Specifies the event used by the timer to trigger the function. Changing this will create a new trigger resource.

    The obs block supports:

    name string
    Specifies the trigger name, which can contains of 1 to 64 characters. The name must start with a letter, only letters, digits, hyphens (-) and underscores (_) are allowed. Changing this will create a new trigger resource.
    schedule string
    Specifies the time schedule. For the rate type, schedule is composed of time and time unit. The time unit supports minutes (m), hours (h) and days (d). For the corn expression, please refer to the User Guide. Changing this will create a new trigger resource.
    scheduleType string
    Specifies the type of the time schedule. The valid values are Rate and Cron. Changing this will create a new trigger resource.
    additionalInformation string

    Specifies the event used by the timer to trigger the function. Changing this will create a new trigger resource.

    The obs block supports:

    name str
    Specifies the trigger name, which can contains of 1 to 64 characters. The name must start with a letter, only letters, digits, hyphens (-) and underscores (_) are allowed. Changing this will create a new trigger resource.
    schedule str
    Specifies the time schedule. For the rate type, schedule is composed of time and time unit. The time unit supports minutes (m), hours (h) and days (d). For the corn expression, please refer to the User Guide. Changing this will create a new trigger resource.
    schedule_type str
    Specifies the type of the time schedule. The valid values are Rate and Cron. Changing this will create a new trigger resource.
    additional_information str

    Specifies the event used by the timer to trigger the function. Changing this will create a new trigger resource.

    The obs block supports:

    name String
    Specifies the trigger name, which can contains of 1 to 64 characters. The name must start with a letter, only letters, digits, hyphens (-) and underscores (_) are allowed. Changing this will create a new trigger resource.
    schedule String
    Specifies the time schedule. For the rate type, schedule is composed of time and time unit. The time unit supports minutes (m), hours (h) and days (d). For the corn expression, please refer to the User Guide. Changing this will create a new trigger resource.
    scheduleType String
    Specifies the type of the time schedule. The valid values are Rate and Cron. Changing this will create a new trigger resource.
    additionalInformation String

    Specifies the event used by the timer to trigger the function. Changing this will create a new trigger resource.

    The obs block supports:

    Package Details

    Repository
    flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
    License
    Notes
    This Pulumi package is based on the flexibleengine Terraform Provider.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud