UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

171 lines (170 loc) 4.95 kB
import * as pulumi from "@pulumi/pulumi"; /** * Provides a resource to manage vefaas timer * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@volcengine/pulumi"; * * const foo = new volcengine.vefaas.Timer("foo", { * crontab: "*&#47;10 * * * *", * functionId: "35ybaxxx", * }); * ``` * * ## Import * * VefaasTimer can be imported using the id, e.g. * * ```sh * $ pulumi import volcengine:vefaas/timer:Timer default FunctionId:Id * ``` */ export declare class Timer extends pulumi.CustomResource { /** * Get an existing Timer resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: TimerState, opts?: pulumi.CustomResourceOptions): Timer; /** * Returns true if the given object is an instance of Timer. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Timer; /** * The creation time of the Timer trigger. */ readonly creationTime: pulumi.Output<string>; /** * Set the timing trigger time of the Timer trigger. */ readonly crontab: pulumi.Output<string>; /** * The description of the Timer trigger. */ readonly description: pulumi.Output<string>; /** * Whether the Timer trigger allows concurrency. */ readonly enableConcurrency: pulumi.Output<boolean>; /** * Whether the Timer trigger is enabled. */ readonly enabled: pulumi.Output<boolean>; /** * The ID of Function. */ readonly functionId: pulumi.Output<string>; /** * The last update time of the Timer trigger. */ readonly lastUpdateTime: pulumi.Output<string>; /** * The name of the Timer trigger. */ readonly name: pulumi.Output<string>; /** * The Timer trigger sends the content payload of the request. */ readonly payload: pulumi.Output<string>; /** * The retry count of the Timer trigger. */ readonly retries: pulumi.Output<number>; /** * Create a Timer resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: TimerArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Timer resources. */ export interface TimerState { /** * The creation time of the Timer trigger. */ creationTime?: pulumi.Input<string>; /** * Set the timing trigger time of the Timer trigger. */ crontab?: pulumi.Input<string>; /** * The description of the Timer trigger. */ description?: pulumi.Input<string>; /** * Whether the Timer trigger allows concurrency. */ enableConcurrency?: pulumi.Input<boolean>; /** * Whether the Timer trigger is enabled. */ enabled?: pulumi.Input<boolean>; /** * The ID of Function. */ functionId?: pulumi.Input<string>; /** * The last update time of the Timer trigger. */ lastUpdateTime?: pulumi.Input<string>; /** * The name of the Timer trigger. */ name?: pulumi.Input<string>; /** * The Timer trigger sends the content payload of the request. */ payload?: pulumi.Input<string>; /** * The retry count of the Timer trigger. */ retries?: pulumi.Input<number>; } /** * The set of arguments for constructing a Timer resource. */ export interface TimerArgs { /** * Set the timing trigger time of the Timer trigger. */ crontab: pulumi.Input<string>; /** * The description of the Timer trigger. */ description?: pulumi.Input<string>; /** * Whether the Timer trigger allows concurrency. */ enableConcurrency?: pulumi.Input<boolean>; /** * Whether the Timer trigger is enabled. */ enabled?: pulumi.Input<boolean>; /** * The ID of Function. */ functionId: pulumi.Input<string>; /** * The name of the Timer trigger. */ name?: pulumi.Input<string>; /** * The Timer trigger sends the content payload of the request. */ payload?: pulumi.Input<string>; /** * The retry count of the Timer trigger. */ retries?: pulumi.Input<number>; }