cloudflare.WorkerCronTrigger
Explore with Pulumi AI
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:
- Account
Id string - Identifier.
- Schedules
List<Worker
Cron Trigger Schedule> - Script
Name string - Name of the script, used in URLs and route configuration.
- Account
Id string - Identifier.
- Schedules
[]Worker
Cron Trigger Schedule Args - Script
Name string - Name of the script, used in URLs and route configuration.
- account
Id String - Identifier.
- schedules
List<Worker
Cron Trigger Schedule> - script
Name String - Name of the script, used in URLs and route configuration.
- account
Id string - Identifier.
- schedules
Worker
Cron Trigger Schedule[] - script
Name string - Name of the script, used in URLs and route configuration.
- account_
id str - Identifier.
- schedules
Sequence[Worker
Cron Trigger Schedule Args] - script_
name str - Name of the script, used in URLs and route configuration.
- account
Id String - Identifier.
- schedules List<Property Map>
- script
Name 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.
- Account
Id string - Identifier.
- Schedules
List<Worker
Cron Trigger Schedule> - Script
Name string - Name of the script, used in URLs and route configuration.
- Account
Id string - Identifier.
- Schedules
[]Worker
Cron Trigger Schedule Args - Script
Name string - Name of the script, used in URLs and route configuration.
- account
Id String - Identifier.
- schedules
List<Worker
Cron Trigger Schedule> - script
Name String - Name of the script, used in URLs and route configuration.
- account
Id string - Identifier.
- schedules
Worker
Cron Trigger Schedule[] - script
Name string - Name of the script, used in URLs and route configuration.
- account_
id str - Identifier.
- schedules
Sequence[Worker
Cron Trigger Schedule Args] - script_
name str - Name of the script, used in URLs and route configuration.
- account
Id String - Identifier.
- schedules List<Property Map>
- script
Name 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.