1. Packages
  2. Packages
  3. dbt Cloud Provider
  4. API Docs
  5. JobCompletionTrigger
Viewing docs for dbt Cloud v1.10.0
published on Friday, May 29, 2026 by Pulumi
dbtcloud logo
Viewing docs for dbt Cloud v1.10.0
published on Friday, May 29, 2026 by Pulumi

    Manages a job completion trigger, which fires a downstream job when an upstream job reaches certain statuses. Use this resource instead of the jobCompletionTrigger block on dbtcloud.Job to break circular dependency chains.

    Create JobCompletionTrigger Resource

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

    Constructor syntax

    new JobCompletionTrigger(name: string, args: JobCompletionTriggerArgs, opts?: CustomResourceOptions);
    @overload
    def JobCompletionTrigger(resource_name: str,
                             args: JobCompletionTriggerArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def JobCompletionTrigger(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             job_id: Optional[int] = None,
                             project_id: Optional[int] = None,
                             statuses: Optional[Sequence[str]] = None,
                             trigger_job_id: Optional[int] = None)
    func NewJobCompletionTrigger(ctx *Context, name string, args JobCompletionTriggerArgs, opts ...ResourceOption) (*JobCompletionTrigger, error)
    public JobCompletionTrigger(string name, JobCompletionTriggerArgs args, CustomResourceOptions? opts = null)
    public JobCompletionTrigger(String name, JobCompletionTriggerArgs args)
    public JobCompletionTrigger(String name, JobCompletionTriggerArgs args, CustomResourceOptions options)
    
    type: dbtcloud:JobCompletionTrigger
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "dbtcloud_jobcompletiontrigger" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args JobCompletionTriggerArgs
    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 JobCompletionTriggerArgs
    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 JobCompletionTriggerArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args JobCompletionTriggerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args JobCompletionTriggerArgs
    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 jobCompletionTriggerResource = new DbtCloud.JobCompletionTrigger("jobCompletionTriggerResource", new()
    {
        JobId = 0,
        ProjectId = 0,
        Statuses = new[]
        {
            "string",
        },
        TriggerJobId = 0,
    });
    
    example, err := dbtcloud.NewJobCompletionTrigger(ctx, "jobCompletionTriggerResource", &dbtcloud.JobCompletionTriggerArgs{
    	JobId:     pulumi.Int(0),
    	ProjectId: pulumi.Int(0),
    	Statuses: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	TriggerJobId: pulumi.Int(0),
    })
    
    resource "dbtcloud_jobcompletiontrigger" "jobCompletionTriggerResource" {
      job_id         = 0
      project_id     = 0
      statuses       = ["string"]
      trigger_job_id = 0
    }
    
    var jobCompletionTriggerResource = new JobCompletionTrigger("jobCompletionTriggerResource", JobCompletionTriggerArgs.builder()
        .jobId(0)
        .projectId(0)
        .statuses("string")
        .triggerJobId(0)
        .build());
    
    job_completion_trigger_resource = dbtcloud.JobCompletionTrigger("jobCompletionTriggerResource",
        job_id=0,
        project_id=0,
        statuses=["string"],
        trigger_job_id=0)
    
    const jobCompletionTriggerResource = new dbtcloud.JobCompletionTrigger("jobCompletionTriggerResource", {
        jobId: 0,
        projectId: 0,
        statuses: ["string"],
        triggerJobId: 0,
    });
    
    type: dbtcloud:JobCompletionTrigger
    properties:
        jobId: 0
        projectId: 0
        statuses:
            - string
        triggerJobId: 0
    

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

    JobId int
    The ID of the downstream job that will be triggered.
    ProjectId int
    The dbt Cloud project ID.
    Statuses List<string>
    The set of job completion statuses that trigger the downstream job. Valid values: success, error, canceled.
    TriggerJobId int
    The ID of the upstream job whose completion fires this trigger.
    JobId int
    The ID of the downstream job that will be triggered.
    ProjectId int
    The dbt Cloud project ID.
    Statuses []string
    The set of job completion statuses that trigger the downstream job. Valid values: success, error, canceled.
    TriggerJobId int
    The ID of the upstream job whose completion fires this trigger.
    job_id number
    The ID of the downstream job that will be triggered.
    project_id number
    The dbt Cloud project ID.
    statuses list(string)
    The set of job completion statuses that trigger the downstream job. Valid values: success, error, canceled.
    trigger_job_id number
    The ID of the upstream job whose completion fires this trigger.
    jobId Integer
    The ID of the downstream job that will be triggered.
    projectId Integer
    The dbt Cloud project ID.
    statuses List<String>
    The set of job completion statuses that trigger the downstream job. Valid values: success, error, canceled.
    triggerJobId Integer
    The ID of the upstream job whose completion fires this trigger.
    jobId number
    The ID of the downstream job that will be triggered.
    projectId number
    The dbt Cloud project ID.
    statuses string[]
    The set of job completion statuses that trigger the downstream job. Valid values: success, error, canceled.
    triggerJobId number
    The ID of the upstream job whose completion fires this trigger.
    job_id int
    The ID of the downstream job that will be triggered.
    project_id int
    The dbt Cloud project ID.
    statuses Sequence[str]
    The set of job completion statuses that trigger the downstream job. Valid values: success, error, canceled.
    trigger_job_id int
    The ID of the upstream job whose completion fires this trigger.
    jobId Number
    The ID of the downstream job that will be triggered.
    projectId Number
    The dbt Cloud project ID.
    statuses List<String>
    The set of job completion statuses that trigger the downstream job. Valid values: success, error, canceled.
    triggerJobId Number
    The ID of the upstream job whose completion fires this trigger.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the JobCompletionTrigger 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 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 JobCompletionTrigger Resource

    Get an existing JobCompletionTrigger 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?: JobCompletionTriggerState, opts?: CustomResourceOptions): JobCompletionTrigger
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            job_id: Optional[int] = None,
            project_id: Optional[int] = None,
            statuses: Optional[Sequence[str]] = None,
            trigger_job_id: Optional[int] = None) -> JobCompletionTrigger
    func GetJobCompletionTrigger(ctx *Context, name string, id IDInput, state *JobCompletionTriggerState, opts ...ResourceOption) (*JobCompletionTrigger, error)
    public static JobCompletionTrigger Get(string name, Input<string> id, JobCompletionTriggerState? state, CustomResourceOptions? opts = null)
    public static JobCompletionTrigger get(String name, Output<String> id, JobCompletionTriggerState state, CustomResourceOptions options)
    resources:  _:    type: dbtcloud:JobCompletionTrigger    get:      id: ${id}
    import {
      to = dbtcloud_jobcompletiontrigger.example
      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:
    JobId int
    The ID of the downstream job that will be triggered.
    ProjectId int
    The dbt Cloud project ID.
    Statuses List<string>
    The set of job completion statuses that trigger the downstream job. Valid values: success, error, canceled.
    TriggerJobId int
    The ID of the upstream job whose completion fires this trigger.
    JobId int
    The ID of the downstream job that will be triggered.
    ProjectId int
    The dbt Cloud project ID.
    Statuses []string
    The set of job completion statuses that trigger the downstream job. Valid values: success, error, canceled.
    TriggerJobId int
    The ID of the upstream job whose completion fires this trigger.
    job_id number
    The ID of the downstream job that will be triggered.
    project_id number
    The dbt Cloud project ID.
    statuses list(string)
    The set of job completion statuses that trigger the downstream job. Valid values: success, error, canceled.
    trigger_job_id number
    The ID of the upstream job whose completion fires this trigger.
    jobId Integer
    The ID of the downstream job that will be triggered.
    projectId Integer
    The dbt Cloud project ID.
    statuses List<String>
    The set of job completion statuses that trigger the downstream job. Valid values: success, error, canceled.
    triggerJobId Integer
    The ID of the upstream job whose completion fires this trigger.
    jobId number
    The ID of the downstream job that will be triggered.
    projectId number
    The dbt Cloud project ID.
    statuses string[]
    The set of job completion statuses that trigger the downstream job. Valid values: success, error, canceled.
    triggerJobId number
    The ID of the upstream job whose completion fires this trigger.
    job_id int
    The ID of the downstream job that will be triggered.
    project_id int
    The dbt Cloud project ID.
    statuses Sequence[str]
    The set of job completion statuses that trigger the downstream job. Valid values: success, error, canceled.
    trigger_job_id int
    The ID of the upstream job whose completion fires this trigger.
    jobId Number
    The ID of the downstream job that will be triggered.
    projectId Number
    The dbt Cloud project ID.
    statuses List<String>
    The set of job completion statuses that trigger the downstream job. Valid values: success, error, canceled.
    triggerJobId Number
    The ID of the upstream job whose completion fires this trigger.

    Package Details

    Repository
    dbtcloud pulumi/pulumi-dbtcloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the dbtcloud Terraform Provider.
    dbtcloud logo
    Viewing docs for dbt Cloud v1.10.0
    published on Friday, May 29, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial