1. Packages
  2. Packages
  3. Cloudflare Provider
  4. API Docs
  5. Pipeline
Viewing docs for Cloudflare v6.15.0
published on Saturday, May 2, 2026 by Pulumi
cloudflare logo
Viewing docs for Cloudflare v6.15.0
published on Saturday, May 2, 2026 by Pulumi

    Accepted Permissions

    • Pipelines Read
    • Pipelines Write

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const examplePipeline = new cloudflare.Pipeline("example_pipeline", {
        accountId: "0123105f4ecef8ad9ca31a8372d0c353",
        name: "my_pipeline",
        sql: "insert into sink select * from source;",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_pipeline = cloudflare.Pipeline("example_pipeline",
        account_id="0123105f4ecef8ad9ca31a8372d0c353",
        name="my_pipeline",
        sql="insert into sink select * from source;")
    
    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.NewPipeline(ctx, "example_pipeline", &cloudflare.PipelineArgs{
    			AccountId: pulumi.String("0123105f4ecef8ad9ca31a8372d0c353"),
    			Name:      pulumi.String("my_pipeline"),
    			Sql:       pulumi.String("insert into sink select * from source;"),
    		})
    		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 examplePipeline = new Cloudflare.Index.Pipeline("example_pipeline", new()
        {
            AccountId = "0123105f4ecef8ad9ca31a8372d0c353",
            Name = "my_pipeline",
            Sql = "insert into sink select * from source;",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.Pipeline;
    import com.pulumi.cloudflare.PipelineArgs;
    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 examplePipeline = new Pipeline("examplePipeline", PipelineArgs.builder()
                .accountId("0123105f4ecef8ad9ca31a8372d0c353")
                .name("my_pipeline")
                .sql("insert into sink select * from source;")
                .build());
    
        }
    }
    
    resources:
      examplePipeline:
        type: cloudflare:Pipeline
        name: example_pipeline
        properties:
          accountId: 0123105f4ecef8ad9ca31a8372d0c353
          name: my_pipeline
          sql: insert into sink select * from source;
    

    Create Pipeline Resource

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

    Constructor syntax

    new Pipeline(name: string, args: PipelineArgs, opts?: CustomResourceOptions);
    @overload
    def Pipeline(resource_name: str,
                 args: PipelineArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def Pipeline(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 name: Optional[str] = None,
                 sql: Optional[str] = None,
                 account_id: Optional[str] = None)
    func NewPipeline(ctx *Context, name string, args PipelineArgs, opts ...ResourceOption) (*Pipeline, error)
    public Pipeline(string name, PipelineArgs args, CustomResourceOptions? opts = null)
    public Pipeline(String name, PipelineArgs args)
    public Pipeline(String name, PipelineArgs args, CustomResourceOptions options)
    
    type: cloudflare:Pipeline
    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 PipelineArgs
    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 PipelineArgs
    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 PipelineArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PipelineArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PipelineArgs
    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 pipelineResource = new Cloudflare.Pipeline("pipelineResource", new()
    {
        Name = "string",
        Sql = "string",
        AccountId = "string",
    });
    
    example, err := cloudflare.NewPipeline(ctx, "pipelineResource", &cloudflare.PipelineArgs{
    	Name:      pulumi.String("string"),
    	Sql:       pulumi.String("string"),
    	AccountId: pulumi.String("string"),
    })
    
    var pipelineResource = new Pipeline("pipelineResource", PipelineArgs.builder()
        .name("string")
        .sql("string")
        .accountId("string")
        .build());
    
    pipeline_resource = cloudflare.Pipeline("pipelineResource",
        name="string",
        sql="string",
        account_id="string")
    
    const pipelineResource = new cloudflare.Pipeline("pipelineResource", {
        name: "string",
        sql: "string",
        accountId: "string",
    });
    
    type: cloudflare:Pipeline
    properties:
        accountId: string
        name: string
        sql: string
    

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

    Name string
    Specifies the name of the Pipeline.
    Sql string
    Specifies SQL for the Pipeline processing flow.
    AccountId string
    Specifies the public ID of the account.
    Name string
    Specifies the name of the Pipeline.
    Sql string
    Specifies SQL for the Pipeline processing flow.
    AccountId string
    Specifies the public ID of the account.
    name String
    Specifies the name of the Pipeline.
    sql String
    Specifies SQL for the Pipeline processing flow.
    accountId String
    Specifies the public ID of the account.
    name string
    Specifies the name of the Pipeline.
    sql string
    Specifies SQL for the Pipeline processing flow.
    accountId string
    Specifies the public ID of the account.
    name str
    Specifies the name of the Pipeline.
    sql str
    Specifies SQL for the Pipeline processing flow.
    account_id str
    Specifies the public ID of the account.
    name String
    Specifies the name of the Pipeline.
    sql String
    Specifies SQL for the Pipeline processing flow.
    accountId String
    Specifies the public ID of the account.

    Outputs

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

    CreatedAt string
    FailureReason string
    Indicates the reason for the failure of the Pipeline.
    Id string
    The provider-assigned unique ID for this managed resource.
    ModifiedAt string
    Status string
    Indicates the current status of the Pipeline.
    Tables List<PipelineTable>
    List of streams and sinks used by this pipeline.
    CreatedAt string
    FailureReason string
    Indicates the reason for the failure of the Pipeline.
    Id string
    The provider-assigned unique ID for this managed resource.
    ModifiedAt string
    Status string
    Indicates the current status of the Pipeline.
    Tables []PipelineTable
    List of streams and sinks used by this pipeline.
    createdAt String
    failureReason String
    Indicates the reason for the failure of the Pipeline.
    id String
    The provider-assigned unique ID for this managed resource.
    modifiedAt String
    status String
    Indicates the current status of the Pipeline.
    tables List<PipelineTable>
    List of streams and sinks used by this pipeline.
    createdAt string
    failureReason string
    Indicates the reason for the failure of the Pipeline.
    id string
    The provider-assigned unique ID for this managed resource.
    modifiedAt string
    status string
    Indicates the current status of the Pipeline.
    tables PipelineTable[]
    List of streams and sinks used by this pipeline.
    created_at str
    failure_reason str
    Indicates the reason for the failure of the Pipeline.
    id str
    The provider-assigned unique ID for this managed resource.
    modified_at str
    status str
    Indicates the current status of the Pipeline.
    tables Sequence[PipelineTable]
    List of streams and sinks used by this pipeline.
    createdAt String
    failureReason String
    Indicates the reason for the failure of the Pipeline.
    id String
    The provider-assigned unique ID for this managed resource.
    modifiedAt String
    status String
    Indicates the current status of the Pipeline.
    tables List<Property Map>
    List of streams and sinks used by this pipeline.

    Look up Existing Pipeline Resource

    Get an existing Pipeline 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?: PipelineState, opts?: CustomResourceOptions): Pipeline
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            created_at: Optional[str] = None,
            failure_reason: Optional[str] = None,
            modified_at: Optional[str] = None,
            name: Optional[str] = None,
            sql: Optional[str] = None,
            status: Optional[str] = None,
            tables: Optional[Sequence[PipelineTableArgs]] = None) -> Pipeline
    func GetPipeline(ctx *Context, name string, id IDInput, state *PipelineState, opts ...ResourceOption) (*Pipeline, error)
    public static Pipeline Get(string name, Input<string> id, PipelineState? state, CustomResourceOptions? opts = null)
    public static Pipeline get(String name, Output<String> id, PipelineState state, CustomResourceOptions options)
    resources:  _:    type: cloudflare:Pipeline    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
    Specifies the public ID of the account.
    CreatedAt string
    FailureReason string
    Indicates the reason for the failure of the Pipeline.
    ModifiedAt string
    Name string
    Specifies the name of the Pipeline.
    Sql string
    Specifies SQL for the Pipeline processing flow.
    Status string
    Indicates the current status of the Pipeline.
    Tables List<PipelineTable>
    List of streams and sinks used by this pipeline.
    AccountId string
    Specifies the public ID of the account.
    CreatedAt string
    FailureReason string
    Indicates the reason for the failure of the Pipeline.
    ModifiedAt string
    Name string
    Specifies the name of the Pipeline.
    Sql string
    Specifies SQL for the Pipeline processing flow.
    Status string
    Indicates the current status of the Pipeline.
    Tables []PipelineTableArgs
    List of streams and sinks used by this pipeline.
    accountId String
    Specifies the public ID of the account.
    createdAt String
    failureReason String
    Indicates the reason for the failure of the Pipeline.
    modifiedAt String
    name String
    Specifies the name of the Pipeline.
    sql String
    Specifies SQL for the Pipeline processing flow.
    status String
    Indicates the current status of the Pipeline.
    tables List<PipelineTable>
    List of streams and sinks used by this pipeline.
    accountId string
    Specifies the public ID of the account.
    createdAt string
    failureReason string
    Indicates the reason for the failure of the Pipeline.
    modifiedAt string
    name string
    Specifies the name of the Pipeline.
    sql string
    Specifies SQL for the Pipeline processing flow.
    status string
    Indicates the current status of the Pipeline.
    tables PipelineTable[]
    List of streams and sinks used by this pipeline.
    account_id str
    Specifies the public ID of the account.
    created_at str
    failure_reason str
    Indicates the reason for the failure of the Pipeline.
    modified_at str
    name str
    Specifies the name of the Pipeline.
    sql str
    Specifies SQL for the Pipeline processing flow.
    status str
    Indicates the current status of the Pipeline.
    tables Sequence[PipelineTableArgs]
    List of streams and sinks used by this pipeline.
    accountId String
    Specifies the public ID of the account.
    createdAt String
    failureReason String
    Indicates the reason for the failure of the Pipeline.
    modifiedAt String
    name String
    Specifies the name of the Pipeline.
    sql String
    Specifies SQL for the Pipeline processing flow.
    status String
    Indicates the current status of the Pipeline.
    tables List<Property Map>
    List of streams and sinks used by this pipeline.

    Supporting Types

    PipelineTable, PipelineTableArgs

    Id string
    Unique identifier for the connection (stream or sink).
    Latest int
    Latest available version of the connection.
    Name string
    Name of the connection.
    Type string
    Type of the connection. Available values: "stream", "sink".
    Version int
    Current version of the connection used by this pipeline.
    Id string
    Unique identifier for the connection (stream or sink).
    Latest int
    Latest available version of the connection.
    Name string
    Name of the connection.
    Type string
    Type of the connection. Available values: "stream", "sink".
    Version int
    Current version of the connection used by this pipeline.
    id String
    Unique identifier for the connection (stream or sink).
    latest Integer
    Latest available version of the connection.
    name String
    Name of the connection.
    type String
    Type of the connection. Available values: "stream", "sink".
    version Integer
    Current version of the connection used by this pipeline.
    id string
    Unique identifier for the connection (stream or sink).
    latest number
    Latest available version of the connection.
    name string
    Name of the connection.
    type string
    Type of the connection. Available values: "stream", "sink".
    version number
    Current version of the connection used by this pipeline.
    id str
    Unique identifier for the connection (stream or sink).
    latest int
    Latest available version of the connection.
    name str
    Name of the connection.
    type str
    Type of the connection. Available values: "stream", "sink".
    version int
    Current version of the connection used by this pipeline.
    id String
    Unique identifier for the connection (stream or sink).
    latest Number
    Latest available version of the connection.
    name String
    Name of the connection.
    type String
    Type of the connection. Available values: "stream", "sink".
    version Number
    Current version of the connection used by this pipeline.

    Import

    $ pulumi import cloudflare:index/pipeline:Pipeline example '<account_id>/<pipeline_id>'
    

    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
    Viewing docs for Cloudflare v6.15.0
    published on Saturday, May 2, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.