published on Wednesday, Nov 18, 2026 by Pulumi
published on Wednesday, Nov 18, 2026 by Pulumi
Declares the pipeline. It gives the release number of the run. Set delivery:source in the stack config to tell Delivery where the program lives. A program has one Pipeline.
To register the pipeline, run pulumi delivery register on the pipeline stack. Registering starts no run.
Example Usage
import * as delivery from "@pulumi/delivery";
const pipeline = new delivery.Pipeline("shop");
export const release = pipeline.releaseNumber;
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?: ComponentResourceOptions);@overload
def Pipeline(resource_name: str,
args: Optional[PipelineArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Pipeline(resource_name: str,
opts: Optional[ResourceOptions] = None,
runtime: Optional[WorkflowsRuntime] = None,
service_principal: Optional[PipelineServicePrincipalArgs] = None)func NewPipeline(ctx *Context, name string, args *PipelineArgs, opts ...ResourceOption) (*Pipeline, error)public Pipeline(string name, PipelineArgs? args = null, ComponentResourceOptions? opts = null)
public Pipeline(String name, PipelineArgs args)
public Pipeline(String name, PipelineArgs args, ComponentResourceOptions options)
type: delivery:Pipeline
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "delivery_pipeline" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args PipelineArgs
- The arguments to resource properties.
- opts ComponentResourceOptions
- 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 ComponentResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PipelineArgs
- The arguments to resource properties.
- options ComponentResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var pipelineResource = new Delivery.Pipeline("pipelineResource", new()
{
Runtime = workflowsRuntime,
ServicePrincipal = new Delivery.Inputs.PipelineServicePrincipalArgs
{
TeamName = "string",
UserId = "string",
},
});
example, err := delivery.NewPipeline(ctx, "pipelineResource", &delivery.PipelineArgs{
Runtime: pulumi.Any(workflowsRuntime),
ServicePrincipal: &delivery.PipelineServicePrincipalArgs{
TeamName: pulumi.String("string"),
UserId: pulumi.String("string"),
},
})
resource "delivery_pipeline" "pipelineResource" {
lifecycle {
create_before_destroy = true
}
runtime = workflowsRuntime
service_principal = {
team_name = "string"
user_id = "string"
}
}
var pipelineResource = new Pipeline("pipelineResource", PipelineArgs.builder()
.runtime(workflowsRuntime)
.servicePrincipal(PipelineServicePrincipalArgs.builder()
.teamName("string")
.userId("string")
.build())
.build());
pipeline_resource = delivery.Pipeline("pipelineResource",
runtime=workflows_runtime,
service_principal={
"team_name": "string",
"user_id": "string",
})
const pipelineResource = new delivery.Pipeline("pipelineResource", {
runtime: workflowsRuntime,
servicePrincipal: {
teamName: "string",
userId: "string",
},
});
type: delivery:Pipeline
properties:
runtime: ${workflowsRuntime}
servicePrincipal:
teamName: string
userId: 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:
- Runtime
Pulumi.
Delivery. Workflows Runtime - Pool that runs the pipeline program.
- Service
Principal PipelineService Principal - Service principal that the pipeline runs as. Without it, Delivery generates one for the pipeline.
- Runtime
Workflows
Runtime - Pool that runs the pipeline program.
- Service
Principal PipelineService Principal Args - Service principal that the pipeline runs as. Without it, Delivery generates one for the pipeline.
- runtime
delivery_
workflows_ runtime - Pool that runs the pipeline program.
- service_
principal object - Service principal that the pipeline runs as. Without it, Delivery generates one for the pipeline.
- runtime
Workflows
Runtime - Pool that runs the pipeline program.
- service
Principal PipelineService Principal - Service principal that the pipeline runs as. Without it, Delivery generates one for the pipeline.
- runtime
Workflows
Runtime - Pool that runs the pipeline program.
- service
Principal PipelineService Principal - Service principal that the pipeline runs as. Without it, Delivery generates one for the pipeline.
- runtime
Workflows
Runtime - Pool that runs the pipeline program.
- service_
principal PipelineService Principal Args - Service principal that the pipeline runs as. Without it, Delivery generates one for the pipeline.
- runtime
delivery:Workflows
Runtime - Pool that runs the pipeline program.
- service
Principal Property Map - Service principal that the pipeline runs as. Without it, Delivery generates one for the pipeline.
Outputs
All input properties are implicitly available as output properties. Additionally, the Pipeline resource produces the following output properties:
- Release
Number int - Number of the release of the run. It is unknown during registration and preview.
- Release
Number int - Number of the release of the run. It is unknown during registration and preview.
- release_
number number - Number of the release of the run. It is unknown during registration and preview.
- release
Number Integer - Number of the release of the run. It is unknown during registration and preview.
- release
Number number - Number of the release of the run. It is unknown during registration and preview.
- release_
number int - Number of the release of the run. It is unknown during registration and preview.
- release
Number Number - Number of the release of the run. It is unknown during registration and preview.
Supporting Types
PipelineServicePrincipal, PipelineServicePrincipalArgs
Service principal that the pipeline runs as. Without it, Delivery generates one for the pipeline.Package Details
- Repository
- delivery pulumi/pulumi-delivery
- License
- Apache-2.0
published on Wednesday, Nov 18, 2026 by Pulumi