1. Packages
  2. Packages
  3. Volcenginecc Provider
  4. API Docs
  5. vefaas
  6. Timer
Viewing docs for volcenginecc v0.0.32
published on Thursday, Apr 23, 2026 by Volcengine
volcenginecc logo
Viewing docs for volcenginecc v0.0.32
published on Thursday, Apr 23, 2026 by Volcengine

    Trigger management

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
    
    const vEFAASTimerDemo = new volcenginecc.vefaas.Timer("VEFAASTimerDemo", {
        functionId: "o1zxxx",
        name: "ccapi-test-timer",
        description: "ccapi test timer",
        enabled: false,
        crontab: "*/30 * * * *",
        payload: "{\"body\": \"create event payload\"}",
        enableConcurrency: false,
        retries: 5,
    });
    
    import pulumi
    import pulumi_volcenginecc as volcenginecc
    
    v_efaas_timer_demo = volcenginecc.vefaas.Timer("VEFAASTimerDemo",
        function_id="o1zxxx",
        name="ccapi-test-timer",
        description="ccapi test timer",
        enabled=False,
        crontab="*/30 * * * *",
        payload="{\"body\": \"create event payload\"}",
        enable_concurrency=False,
        retries=5)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcenginecc/sdk/go/volcenginecc/vefaas"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := vefaas.NewTimer(ctx, "VEFAASTimerDemo", &vefaas.TimerArgs{
    			FunctionId:        pulumi.String("o1zxxx"),
    			Name:              pulumi.String("ccapi-test-timer"),
    			Description:       pulumi.String("ccapi test timer"),
    			Enabled:           pulumi.Bool(false),
    			Crontab:           pulumi.String("*/30 * * * *"),
    			Payload:           pulumi.String("{\"body\": \"create event payload\"}"),
    			EnableConcurrency: pulumi.Bool(false),
    			Retries:           pulumi.Int(5),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcenginecc = Volcengine.Pulumi.Volcenginecc;
    
    return await Deployment.RunAsync(() => 
    {
        var vEFAASTimerDemo = new Volcenginecc.Vefaas.Timer("VEFAASTimerDemo", new()
        {
            FunctionId = "o1zxxx",
            Name = "ccapi-test-timer",
            Description = "ccapi test timer",
            Enabled = false,
            Crontab = "*/30 * * * *",
            Payload = "{\"body\": \"create event payload\"}",
            EnableConcurrency = false,
            Retries = 5,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.volcengine.volcenginecc.vefaas.Timer;
    import com.volcengine.volcenginecc.vefaas.TimerArgs;
    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) {
            var vEFAASTimerDemo = new Timer("vEFAASTimerDemo", TimerArgs.builder()
                .functionId("o1zxxx")
                .name("ccapi-test-timer")
                .description("ccapi test timer")
                .enabled(false)
                .crontab("*/30 * * * *")
                .payload("{\"body\": \"create event payload\"}")
                .enableConcurrency(false)
                .retries(5)
                .build());
    
        }
    }
    
    resources:
      vEFAASTimerDemo:
        type: volcenginecc:vefaas:Timer
        name: VEFAASTimerDemo
        properties:
          functionId: o1zxxx
          name: ccapi-test-timer
          description: ccapi test timer
          enabled: false
          crontab: '*/30 * * * *'
          payload: '{"body": "create event payload"}'
          enableConcurrency: false
          retries: 5
    

    Create Timer Resource

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

    Constructor syntax

    new Timer(name: string, args?: TimerArgs, opts?: CustomResourceOptions);
    @overload
    def Timer(resource_name: str,
              args: Optional[TimerArgs] = None,
              opts: Optional[ResourceOptions] = None)
    
    @overload
    def Timer(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              crontab: Optional[str] = None,
              description: Optional[str] = None,
              enable_concurrency: Optional[bool] = None,
              enabled: Optional[bool] = None,
              function_id: Optional[str] = None,
              name: Optional[str] = None,
              payload: Optional[str] = None,
              retries: Optional[int] = None)
    func NewTimer(ctx *Context, name string, args *TimerArgs, opts ...ResourceOption) (*Timer, error)
    public Timer(string name, TimerArgs? args = null, CustomResourceOptions? opts = null)
    public Timer(String name, TimerArgs args)
    public Timer(String name, TimerArgs args, CustomResourceOptions options)
    
    type: volcenginecc:vefaas:Timer
    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 TimerArgs
    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 TimerArgs
    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 TimerArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TimerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TimerArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    Crontab string
    Timer trigger time, formatted as a crontab expression
    Description string
    Timer trigger remarks
    EnableConcurrency bool
    Allow timer trigger concurrency; true means concurrency is allowed
    Enabled bool
    Timer trigger enabled; true means enabled
    FunctionId string
    Function ID
    Name string
    Timer trigger name
    Payload string
    Payload sent by timer trigger, that is, the trigger message
    Retries int
    Timer trigger retry count
    Crontab string
    Timer trigger time, formatted as a crontab expression
    Description string
    Timer trigger remarks
    EnableConcurrency bool
    Allow timer trigger concurrency; true means concurrency is allowed
    Enabled bool
    Timer trigger enabled; true means enabled
    FunctionId string
    Function ID
    Name string
    Timer trigger name
    Payload string
    Payload sent by timer trigger, that is, the trigger message
    Retries int
    Timer trigger retry count
    crontab String
    Timer trigger time, formatted as a crontab expression
    description String
    Timer trigger remarks
    enableConcurrency Boolean
    Allow timer trigger concurrency; true means concurrency is allowed
    enabled Boolean
    Timer trigger enabled; true means enabled
    functionId String
    Function ID
    name String
    Timer trigger name
    payload String
    Payload sent by timer trigger, that is, the trigger message
    retries Integer
    Timer trigger retry count
    crontab string
    Timer trigger time, formatted as a crontab expression
    description string
    Timer trigger remarks
    enableConcurrency boolean
    Allow timer trigger concurrency; true means concurrency is allowed
    enabled boolean
    Timer trigger enabled; true means enabled
    functionId string
    Function ID
    name string
    Timer trigger name
    payload string
    Payload sent by timer trigger, that is, the trigger message
    retries number
    Timer trigger retry count
    crontab str
    Timer trigger time, formatted as a crontab expression
    description str
    Timer trigger remarks
    enable_concurrency bool
    Allow timer trigger concurrency; true means concurrency is allowed
    enabled bool
    Timer trigger enabled; true means enabled
    function_id str
    Function ID
    name str
    Timer trigger name
    payload str
    Payload sent by timer trigger, that is, the trigger message
    retries int
    Timer trigger retry count
    crontab String
    Timer trigger time, formatted as a crontab expression
    description String
    Timer trigger remarks
    enableConcurrency Boolean
    Allow timer trigger concurrency; true means concurrency is allowed
    enabled Boolean
    Timer trigger enabled; true means enabled
    functionId String
    Function ID
    name String
    Timer trigger name
    payload String
    Payload sent by timer trigger, that is, the trigger message
    retries Number
    Timer trigger retry count

    Outputs

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

    CreationTime string
    Timer trigger creation time
    Id string
    The provider-assigned unique ID for this managed resource.
    LastUpdateTime string
    Timer trigger update time
    TimerId string
    Timer trigger ID
    CreationTime string
    Timer trigger creation time
    Id string
    The provider-assigned unique ID for this managed resource.
    LastUpdateTime string
    Timer trigger update time
    TimerId string
    Timer trigger ID
    creationTime String
    Timer trigger creation time
    id String
    The provider-assigned unique ID for this managed resource.
    lastUpdateTime String
    Timer trigger update time
    timerId String
    Timer trigger ID
    creationTime string
    Timer trigger creation time
    id string
    The provider-assigned unique ID for this managed resource.
    lastUpdateTime string
    Timer trigger update time
    timerId string
    Timer trigger ID
    creation_time str
    Timer trigger creation time
    id str
    The provider-assigned unique ID for this managed resource.
    last_update_time str
    Timer trigger update time
    timer_id str
    Timer trigger ID
    creationTime String
    Timer trigger creation time
    id String
    The provider-assigned unique ID for this managed resource.
    lastUpdateTime String
    Timer trigger update time
    timerId String
    Timer trigger ID

    Look up Existing Timer Resource

    Get an existing Timer 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?: TimerState, opts?: CustomResourceOptions): Timer
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            creation_time: Optional[str] = None,
            crontab: Optional[str] = None,
            description: Optional[str] = None,
            enable_concurrency: Optional[bool] = None,
            enabled: Optional[bool] = None,
            function_id: Optional[str] = None,
            last_update_time: Optional[str] = None,
            name: Optional[str] = None,
            payload: Optional[str] = None,
            retries: Optional[int] = None,
            timer_id: Optional[str] = None) -> Timer
    func GetTimer(ctx *Context, name string, id IDInput, state *TimerState, opts ...ResourceOption) (*Timer, error)
    public static Timer Get(string name, Input<string> id, TimerState? state, CustomResourceOptions? opts = null)
    public static Timer get(String name, Output<String> id, TimerState state, CustomResourceOptions options)
    resources:  _:    type: volcenginecc:vefaas:Timer    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:
    CreationTime string
    Timer trigger creation time
    Crontab string
    Timer trigger time, formatted as a crontab expression
    Description string
    Timer trigger remarks
    EnableConcurrency bool
    Allow timer trigger concurrency; true means concurrency is allowed
    Enabled bool
    Timer trigger enabled; true means enabled
    FunctionId string
    Function ID
    LastUpdateTime string
    Timer trigger update time
    Name string
    Timer trigger name
    Payload string
    Payload sent by timer trigger, that is, the trigger message
    Retries int
    Timer trigger retry count
    TimerId string
    Timer trigger ID
    CreationTime string
    Timer trigger creation time
    Crontab string
    Timer trigger time, formatted as a crontab expression
    Description string
    Timer trigger remarks
    EnableConcurrency bool
    Allow timer trigger concurrency; true means concurrency is allowed
    Enabled bool
    Timer trigger enabled; true means enabled
    FunctionId string
    Function ID
    LastUpdateTime string
    Timer trigger update time
    Name string
    Timer trigger name
    Payload string
    Payload sent by timer trigger, that is, the trigger message
    Retries int
    Timer trigger retry count
    TimerId string
    Timer trigger ID
    creationTime String
    Timer trigger creation time
    crontab String
    Timer trigger time, formatted as a crontab expression
    description String
    Timer trigger remarks
    enableConcurrency Boolean
    Allow timer trigger concurrency; true means concurrency is allowed
    enabled Boolean
    Timer trigger enabled; true means enabled
    functionId String
    Function ID
    lastUpdateTime String
    Timer trigger update time
    name String
    Timer trigger name
    payload String
    Payload sent by timer trigger, that is, the trigger message
    retries Integer
    Timer trigger retry count
    timerId String
    Timer trigger ID
    creationTime string
    Timer trigger creation time
    crontab string
    Timer trigger time, formatted as a crontab expression
    description string
    Timer trigger remarks
    enableConcurrency boolean
    Allow timer trigger concurrency; true means concurrency is allowed
    enabled boolean
    Timer trigger enabled; true means enabled
    functionId string
    Function ID
    lastUpdateTime string
    Timer trigger update time
    name string
    Timer trigger name
    payload string
    Payload sent by timer trigger, that is, the trigger message
    retries number
    Timer trigger retry count
    timerId string
    Timer trigger ID
    creation_time str
    Timer trigger creation time
    crontab str
    Timer trigger time, formatted as a crontab expression
    description str
    Timer trigger remarks
    enable_concurrency bool
    Allow timer trigger concurrency; true means concurrency is allowed
    enabled bool
    Timer trigger enabled; true means enabled
    function_id str
    Function ID
    last_update_time str
    Timer trigger update time
    name str
    Timer trigger name
    payload str
    Payload sent by timer trigger, that is, the trigger message
    retries int
    Timer trigger retry count
    timer_id str
    Timer trigger ID
    creationTime String
    Timer trigger creation time
    crontab String
    Timer trigger time, formatted as a crontab expression
    description String
    Timer trigger remarks
    enableConcurrency Boolean
    Allow timer trigger concurrency; true means concurrency is allowed
    enabled Boolean
    Timer trigger enabled; true means enabled
    functionId String
    Function ID
    lastUpdateTime String
    Timer trigger update time
    name String
    Timer trigger name
    payload String
    Payload sent by timer trigger, that is, the trigger message
    retries Number
    Timer trigger retry count
    timerId String
    Timer trigger ID

    Import

    $ pulumi import volcenginecc:vefaas/timer:Timer example "function_id|timer_id"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    volcenginecc volcengine/pulumi-volcenginecc
    License
    MPL-2.0
    Notes
    This Pulumi package is based on the volcenginecc Terraform Provider.
    volcenginecc logo
    Viewing docs for volcenginecc v0.0.32
    published on Thursday, Apr 23, 2026 by Volcengine
      Try Pulumi Cloud free. Your team will thank you.