published on Wednesday, Nov 18, 2026 by Pulumi
published on Wednesday, Nov 18, 2026 by Pulumi
Publishes a value for the pipelines that read this stage with a PipelineSource. The artifact has the name of the resource. It succeeds when its stage admits the release and its value is known.
Example Usage
import * as delivery from "@pulumi/delivery";
new delivery.Artifact("clusterEndpoint", {
stage: prod,
value: cluster.endpoint,
});
Create Artifact Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Artifact(name: string, args: ArtifactArgs, opts?: ComponentResourceOptions);@overload
def Artifact(resource_name: str,
args: ArtifactArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Artifact(resource_name: str,
opts: Optional[ResourceOptions] = None,
stage: Optional[Stage] = None,
value: Optional[Any] = None)func NewArtifact(ctx *Context, name string, args ArtifactArgs, opts ...ResourceOption) (*Artifact, error)public Artifact(string name, ArtifactArgs args, ComponentResourceOptions? opts = null)
public Artifact(String name, ArtifactArgs args)
public Artifact(String name, ArtifactArgs args, ComponentResourceOptions options)
type: delivery:Artifact
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "delivery_artifact" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args ArtifactArgs
- 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 ArtifactArgs
- 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 ArtifactArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ArtifactArgs
- The arguments to resource properties.
- opts ComponentResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ArtifactArgs
- 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 artifactResource = new Delivery.Artifact("artifactResource", new()
{
Stage = stage,
Value = "any",
});
example, err := delivery.NewArtifact(ctx, "artifactResource", &delivery.ArtifactArgs{
Stage: pulumi.Any(stage),
Value: pulumi.Any("any"),
})
resource "delivery_artifact" "artifactResource" {
lifecycle {
create_before_destroy = true
}
stage = stage
value = "any"
}
var artifactResource = new Artifact("artifactResource", ArtifactArgs.builder()
.stage(stage)
.value("any")
.build());
artifact_resource = delivery.Artifact("artifactResource",
stage=stage,
value="any")
const artifactResource = new delivery.Artifact("artifactResource", {
stage: stage,
value: "any",
});
type: delivery:Artifact
properties:
stage: ${stage}
value: any
Artifact 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 Artifact resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the Artifact resource produces the following output properties:
Package Details
- Repository
- delivery pulumi/pulumi-delivery
- License
- Apache-2.0
published on Wednesday, Nov 18, 2026 by Pulumi