1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. WorkerCronTrigger
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

cloudflare.WorkerCronTrigger

Explore with Pulumi AI

cloudflare logo
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi
    Deprecated: cloudflare.index/workercrontrigger.WorkerCronTrigger has been deprecated in favor of cloudflare.index/workerscrontrigger.WorkersCronTrigger

    Example Usage

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    resources:
      exampleWorkersCronTrigger:
        type: cloudflare:WorkersCronTrigger
        name: example_workers_cron_trigger
        properties:
          accountId: 023e105f4ecef8ad9ca31a8372d0c353
          scriptName: this-is_my_script-01
          body:
            - cron: '*/30 * * * *'
    

    Create WorkerCronTrigger Resource

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

    Constructor syntax

    new WorkerCronTrigger(name: string, args: WorkerCronTriggerArgs, opts?: CustomResourceOptions);
    @overload
    def WorkerCronTrigger(resource_name: str,
                          args: WorkerCronTriggerArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def WorkerCronTrigger(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          account_id: Optional[str] = None,
                          schedules: Optional[Sequence[WorkerCronTriggerScheduleArgs]] = None,
                          script_name: Optional[str] = None)
    func NewWorkerCronTrigger(ctx *Context, name string, args WorkerCronTriggerArgs, opts ...ResourceOption) (*WorkerCronTrigger, error)
    public WorkerCronTrigger(string name, WorkerCronTriggerArgs args, CustomResourceOptions? opts = null)
    public WorkerCronTrigger(String name, WorkerCronTriggerArgs args)
    public WorkerCronTrigger(String name, WorkerCronTriggerArgs args, CustomResourceOptions options)
    
    type: cloudflare:WorkerCronTrigger
    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 WorkerCronTriggerArgs
    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 WorkerCronTriggerArgs
    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 WorkerCronTriggerArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args WorkerCronTriggerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args WorkerCronTriggerArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    AccountId string
    Identifier.
    Schedules List<WorkerCronTriggerSchedule>
    ScriptName string
    Name of the script, used in URLs and route configuration.
    AccountId string
    Identifier.
    Schedules []WorkerCronTriggerScheduleArgs
    ScriptName string
    Name of the script, used in URLs and route configuration.
    accountId String
    Identifier.
    schedules List<WorkerCronTriggerSchedule>
    scriptName String
    Name of the script, used in URLs and route configuration.
    accountId string
    Identifier.
    schedules WorkerCronTriggerSchedule[]
    scriptName string
    Name of the script, used in URLs and route configuration.
    account_id str
    Identifier.
    schedules Sequence[WorkerCronTriggerScheduleArgs]
    script_name str
    Name of the script, used in URLs and route configuration.
    accountId String
    Identifier.
    schedules List<Property Map>
    scriptName String
    Name of the script, used in URLs and route configuration.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the WorkerCronTrigger 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 WorkerCronTrigger Resource

    Get an existing WorkerCronTrigger 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?: WorkerCronTriggerState, opts?: CustomResourceOptions): WorkerCronTrigger
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            schedules: Optional[Sequence[WorkerCronTriggerScheduleArgs]] = None,
            script_name: Optional[str] = None) -> WorkerCronTrigger
    func GetWorkerCronTrigger(ctx *Context, name string, id IDInput, state *WorkerCronTriggerState, opts ...ResourceOption) (*WorkerCronTrigger, error)
    public static WorkerCronTrigger Get(string name, Input<string> id, WorkerCronTriggerState? state, CustomResourceOptions? opts = null)
    public static WorkerCronTrigger get(String name, Output<String> id, WorkerCronTriggerState state, CustomResourceOptions options)
    resources:  _:    type: cloudflare:WorkerCronTrigger    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:
    AccountId string
    Identifier.
    Schedules List<WorkerCronTriggerSchedule>
    ScriptName string
    Name of the script, used in URLs and route configuration.
    AccountId string
    Identifier.
    Schedules []WorkerCronTriggerScheduleArgs
    ScriptName string
    Name of the script, used in URLs and route configuration.
    accountId String
    Identifier.
    schedules List<WorkerCronTriggerSchedule>
    scriptName String
    Name of the script, used in URLs and route configuration.
    accountId string
    Identifier.
    schedules WorkerCronTriggerSchedule[]
    scriptName string
    Name of the script, used in URLs and route configuration.
    account_id str
    Identifier.
    schedules Sequence[WorkerCronTriggerScheduleArgs]
    script_name str
    Name of the script, used in URLs and route configuration.
    accountId String
    Identifier.
    schedules List<Property Map>
    scriptName String
    Name of the script, used in URLs and route configuration.

    Supporting Types

    WorkerCronTriggerSchedule, WorkerCronTriggerScheduleArgs

    Cron string
    Cron string
    cron String
    cron string
    cron str
    cron String

    Import

    $ pulumi import cloudflare:index/workerCronTrigger:WorkerCronTrigger example '<account_id>/<script_name>'
    

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

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo
    Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi