published on Saturday, May 30, 2026 by Pulumi
published on Saturday, May 30, 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:
- Job
Id int - The ID of the downstream job that will be triggered.
- Project
Id 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. - Trigger
Job intId - 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 []string
- The set of job completion statuses that trigger the downstream job. Valid values:
success,error,canceled. - Trigger
Job intId - 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_ numberid - The ID of the upstream job whose completion fires this trigger.
- job
Id Integer - The ID of the downstream job that will be triggered.
- project
Id 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. - trigger
Job IntegerId - 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 string[]
- The set of job completion statuses that trigger the downstream job. Valid values:
success,error,canceled. - trigger
Job numberId - 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_ intid - 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 NumberId - 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) -> JobCompletionTriggerfunc 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.
- Job
Id int - The ID of the downstream job that will be triggered.
- Project
Id 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. - Trigger
Job intId - 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 []string
- The set of job completion statuses that trigger the downstream job. Valid values:
success,error,canceled. - Trigger
Job intId - 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_ numberid - The ID of the upstream job whose completion fires this trigger.
- job
Id Integer - The ID of the downstream job that will be triggered.
- project
Id 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. - trigger
Job IntegerId - 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 string[]
- The set of job completion statuses that trigger the downstream job. Valid values:
success,error,canceled. - trigger
Job numberId - 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_ intid - 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 NumberId - 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
dbtcloudTerraform Provider.
published on Saturday, May 30, 2026 by Pulumi