cloudflare.Workflow
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleWorkflow = new cloudflare.Workflow("example_workflow", {
accountId: "account_id",
workflowName: "x",
className: "x",
scriptName: "x",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_workflow = cloudflare.Workflow("example_workflow",
account_id="account_id",
workflow_name="x",
class_name="x",
script_name="x")
package main
import (
"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudflare.NewWorkflow(ctx, "example_workflow", &cloudflare.WorkflowArgs{
AccountId: pulumi.String("account_id"),
WorkflowName: pulumi.String("x"),
ClassName: pulumi.String("x"),
ScriptName: pulumi.String("x"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var exampleWorkflow = new Cloudflare.Workflow("example_workflow", new()
{
AccountId = "account_id",
WorkflowName = "x",
ClassName = "x",
ScriptName = "x",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.Workflow;
import com.pulumi.cloudflare.WorkflowArgs;
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 exampleWorkflow = new Workflow("exampleWorkflow", WorkflowArgs.builder()
.accountId("account_id")
.workflowName("x")
.className("x")
.scriptName("x")
.build());
}
}
resources:
exampleWorkflow:
type: cloudflare:Workflow
name: example_workflow
properties:
accountId: account_id
workflowName: x
className: x
scriptName: x
Create Workflow Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Workflow(name: string, args: WorkflowArgs, opts?: CustomResourceOptions);
@overload
def Workflow(resource_name: str,
args: WorkflowArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Workflow(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
class_name: Optional[str] = None,
script_name: Optional[str] = None,
workflow_name: Optional[str] = None)
func NewWorkflow(ctx *Context, name string, args WorkflowArgs, opts ...ResourceOption) (*Workflow, error)
public Workflow(string name, WorkflowArgs args, CustomResourceOptions? opts = null)
public Workflow(String name, WorkflowArgs args)
public Workflow(String name, WorkflowArgs args, CustomResourceOptions options)
type: cloudflare:Workflow
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 WorkflowArgs
- 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 WorkflowArgs
- 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 WorkflowArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WorkflowArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WorkflowArgs
- 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 workflowResource = new Cloudflare.Workflow("workflowResource", new()
{
AccountId = "string",
ClassName = "string",
ScriptName = "string",
WorkflowName = "string",
});
example, err := cloudflare.NewWorkflow(ctx, "workflowResource", &cloudflare.WorkflowArgs{
AccountId: pulumi.String("string"),
ClassName: pulumi.String("string"),
ScriptName: pulumi.String("string"),
WorkflowName: pulumi.String("string"),
})
var workflowResource = new Workflow("workflowResource", WorkflowArgs.builder()
.accountId("string")
.className("string")
.scriptName("string")
.workflowName("string")
.build());
workflow_resource = cloudflare.Workflow("workflowResource",
account_id="string",
class_name="string",
script_name="string",
workflow_name="string")
const workflowResource = new cloudflare.Workflow("workflowResource", {
accountId: "string",
className: "string",
scriptName: "string",
workflowName: "string",
});
type: cloudflare:Workflow
properties:
accountId: string
className: string
scriptName: string
workflowName: string
Workflow 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 Workflow resource accepts the following input properties:
- Account
Id string - Class
Name string - Script
Name string - Workflow
Name string
- Account
Id string - Class
Name string - Script
Name string - Workflow
Name string
- account
Id String - class
Name String - script
Name String - workflow
Name String
- account
Id string - class
Name string - script
Name string - workflow
Name string
- account_
id str - class_
name str - script_
name str - workflow_
name str
- account
Id String - class
Name String - script
Name String - workflow
Name String
Outputs
All input properties are implicitly available as output properties. Additionally, the Workflow resource produces the following output properties:
- Created
On string - Id string
- The provider-assigned unique ID for this managed resource.
- Instances
Workflow
Instances - Is
Deleted double - Modified
On string - Name string
- Terminator
Running double - Triggered
On string - Version
Id string
- Created
On string - Id string
- The provider-assigned unique ID for this managed resource.
- Instances
Workflow
Instances - Is
Deleted float64 - Modified
On string - Name string
- Terminator
Running float64 - Triggered
On string - Version
Id string
- created
On String - id String
- The provider-assigned unique ID for this managed resource.
- instances
Workflow
Instances - is
Deleted Double - modified
On String - name String
- terminator
Running Double - triggered
On String - version
Id String
- created
On string - id string
- The provider-assigned unique ID for this managed resource.
- instances
Workflow
Instances - is
Deleted number - modified
On string - name string
- terminator
Running number - triggered
On string - version
Id string
- created_
on str - id str
- The provider-assigned unique ID for this managed resource.
- instances
Workflow
Instances - is_
deleted float - modified_
on str - name str
- terminator_
running float - triggered_
on str - version_
id str
- created
On String - id String
- The provider-assigned unique ID for this managed resource.
- instances Property Map
- is
Deleted Number - modified
On String - name String
- terminator
Running Number - triggered
On String - version
Id String
Look up Existing Workflow Resource
Get an existing Workflow 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?: WorkflowState, opts?: CustomResourceOptions): Workflow
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
class_name: Optional[str] = None,
created_on: Optional[str] = None,
instances: Optional[WorkflowInstancesArgs] = None,
is_deleted: Optional[float] = None,
modified_on: Optional[str] = None,
name: Optional[str] = None,
script_name: Optional[str] = None,
terminator_running: Optional[float] = None,
triggered_on: Optional[str] = None,
version_id: Optional[str] = None,
workflow_name: Optional[str] = None) -> Workflow
func GetWorkflow(ctx *Context, name string, id IDInput, state *WorkflowState, opts ...ResourceOption) (*Workflow, error)
public static Workflow Get(string name, Input<string> id, WorkflowState? state, CustomResourceOptions? opts = null)
public static Workflow get(String name, Output<String> id, WorkflowState state, CustomResourceOptions options)
resources: _: type: cloudflare:Workflow 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 - Class
Name string - Created
On string - Instances
Workflow
Instances - Is
Deleted double - Modified
On string - Name string
- Script
Name string - Terminator
Running double - Triggered
On string - Version
Id string - Workflow
Name string
- Account
Id string - Class
Name string - Created
On string - Instances
Workflow
Instances Args - Is
Deleted float64 - Modified
On string - Name string
- Script
Name string - Terminator
Running float64 - Triggered
On string - Version
Id string - Workflow
Name string
- account
Id String - class
Name String - created
On String - instances
Workflow
Instances - is
Deleted Double - modified
On String - name String
- script
Name String - terminator
Running Double - triggered
On String - version
Id String - workflow
Name String
- account
Id string - class
Name string - created
On string - instances
Workflow
Instances - is
Deleted number - modified
On string - name string
- script
Name string - terminator
Running number - triggered
On string - version
Id string - workflow
Name string
- account_
id str - class_
name str - created_
on str - instances
Workflow
Instances Args - is_
deleted float - modified_
on str - name str
- script_
name str - terminator_
running float - triggered_
on str - version_
id str - workflow_
name str
- account
Id String - class
Name String - created
On String - instances Property Map
- is
Deleted Number - modified
On String - name String
- script
Name String - terminator
Running Number - triggered
On String - version
Id String - workflow
Name String
Supporting Types
WorkflowInstances, WorkflowInstancesArgs
- Complete double
- Errored double
- Paused double
- Queued double
- Running double
- Terminated double
- Waiting double
- Waiting
For doublePause
- Complete float64
- Errored float64
- Paused float64
- Queued float64
- Running float64
- Terminated float64
- Waiting float64
- Waiting
For float64Pause
- complete Double
- errored Double
- paused Double
- queued Double
- running Double
- terminated Double
- waiting Double
- waiting
For DoublePause
- complete number
- errored number
- paused number
- queued number
- running number
- terminated number
- waiting number
- waiting
For numberPause
- complete float
- errored float
- paused float
- queued float
- running float
- terminated float
- waiting float
- waiting_
for_ floatpause
- complete Number
- errored Number
- paused Number
- queued Number
- running Number
- terminated Number
- waiting Number
- waiting
For NumberPause
Import
$ pulumi import cloudflare:index/workflow:Workflow example '<account_id>/<workflow_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.