1. Packages
  2. dbt Cloud
  3. API Docs
  4. EnvironmentVariableJobOverride
dbt Cloud v0.1.8 published on Tuesday, Jun 11, 2024 by Pulumi

dbtcloud.EnvironmentVariableJobOverride

Explore with Pulumi AI

dbtcloud logo
dbt Cloud v0.1.8 published on Tuesday, Jun 11, 2024 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as dbtcloud from "@pulumi/dbtcloud";
    
    const myEnvVarJobOverride = new dbtcloud.EnvironmentVariableJobOverride("my_env_var_job_override", {
        name: dbtMyEnvVar.name,
        projectId: dbtProject.id,
        jobDefinitionId: dailyJob.id,
        rawValue: "my_override_value",
    });
    
    import pulumi
    import pulumi_dbtcloud as dbtcloud
    
    my_env_var_job_override = dbtcloud.EnvironmentVariableJobOverride("my_env_var_job_override",
        name=dbt_my_env_var["name"],
        project_id=dbt_project["id"],
        job_definition_id=daily_job["id"],
        raw_value="my_override_value")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-dbtcloud/sdk/go/dbtcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := dbtcloud.NewEnvironmentVariableJobOverride(ctx, "my_env_var_job_override", &dbtcloud.EnvironmentVariableJobOverrideArgs{
    			Name:            pulumi.Any(dbtMyEnvVar.Name),
    			ProjectId:       pulumi.Any(dbtProject.Id),
    			JobDefinitionId: pulumi.Any(dailyJob.Id),
    			RawValue:        pulumi.String("my_override_value"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using DbtCloud = Pulumi.DbtCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var myEnvVarJobOverride = new DbtCloud.EnvironmentVariableJobOverride("my_env_var_job_override", new()
        {
            Name = dbtMyEnvVar.Name,
            ProjectId = dbtProject.Id,
            JobDefinitionId = dailyJob.Id,
            RawValue = "my_override_value",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.dbtcloud.EnvironmentVariableJobOverride;
    import com.pulumi.dbtcloud.EnvironmentVariableJobOverrideArgs;
    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 myEnvVarJobOverride = new EnvironmentVariableJobOverride("myEnvVarJobOverride", EnvironmentVariableJobOverrideArgs.builder()
                .name(dbtMyEnvVar.name())
                .projectId(dbtProject.id())
                .jobDefinitionId(dailyJob.id())
                .rawValue("my_override_value")
                .build());
    
        }
    }
    
    resources:
      myEnvVarJobOverride:
        type: dbtcloud:EnvironmentVariableJobOverride
        name: my_env_var_job_override
        properties:
          name: ${dbtMyEnvVar.name}
          projectId: ${dbtProject.id}
          jobDefinitionId: ${dailyJob.id}
          rawValue: my_override_value
    

    Create EnvironmentVariableJobOverride Resource

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

    Constructor syntax

    new EnvironmentVariableJobOverride(name: string, args: EnvironmentVariableJobOverrideArgs, opts?: CustomResourceOptions);
    @overload
    def EnvironmentVariableJobOverride(resource_name: str,
                                       args: EnvironmentVariableJobOverrideArgs,
                                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def EnvironmentVariableJobOverride(resource_name: str,
                                       opts: Optional[ResourceOptions] = None,
                                       job_definition_id: Optional[int] = None,
                                       project_id: Optional[int] = None,
                                       raw_value: Optional[str] = None,
                                       name: Optional[str] = None)
    func NewEnvironmentVariableJobOverride(ctx *Context, name string, args EnvironmentVariableJobOverrideArgs, opts ...ResourceOption) (*EnvironmentVariableJobOverride, error)
    public EnvironmentVariableJobOverride(string name, EnvironmentVariableJobOverrideArgs args, CustomResourceOptions? opts = null)
    public EnvironmentVariableJobOverride(String name, EnvironmentVariableJobOverrideArgs args)
    public EnvironmentVariableJobOverride(String name, EnvironmentVariableJobOverrideArgs args, CustomResourceOptions options)
    
    type: dbtcloud:EnvironmentVariableJobOverride
    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 EnvironmentVariableJobOverrideArgs
    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 EnvironmentVariableJobOverrideArgs
    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 EnvironmentVariableJobOverrideArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EnvironmentVariableJobOverrideArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EnvironmentVariableJobOverrideArgs
    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 environmentVariableJobOverrideResource = new DbtCloud.EnvironmentVariableJobOverride("environmentVariableJobOverrideResource", new()
    {
        JobDefinitionId = 0,
        ProjectId = 0,
        RawValue = "string",
        Name = "string",
    });
    
    example, err := dbtcloud.NewEnvironmentVariableJobOverride(ctx, "environmentVariableJobOverrideResource", &dbtcloud.EnvironmentVariableJobOverrideArgs{
    	JobDefinitionId: pulumi.Int(0),
    	ProjectId:       pulumi.Int(0),
    	RawValue:        pulumi.String("string"),
    	Name:            pulumi.String("string"),
    })
    
    var environmentVariableJobOverrideResource = new EnvironmentVariableJobOverride("environmentVariableJobOverrideResource", EnvironmentVariableJobOverrideArgs.builder()
        .jobDefinitionId(0)
        .projectId(0)
        .rawValue("string")
        .name("string")
        .build());
    
    environment_variable_job_override_resource = dbtcloud.EnvironmentVariableJobOverride("environmentVariableJobOverrideResource",
        job_definition_id=0,
        project_id=0,
        raw_value="string",
        name="string")
    
    const environmentVariableJobOverrideResource = new dbtcloud.EnvironmentVariableJobOverride("environmentVariableJobOverrideResource", {
        jobDefinitionId: 0,
        projectId: 0,
        rawValue: "string",
        name: "string",
    });
    
    type: dbtcloud:EnvironmentVariableJobOverride
    properties:
        jobDefinitionId: 0
        name: string
        projectId: 0
        rawValue: string
    

    EnvironmentVariableJobOverride Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The EnvironmentVariableJobOverride resource accepts the following input properties:

    JobDefinitionId int
    The job ID for which the environment variable is being overridden
    ProjectId int
    The project ID for which the environment variable is being overridden
    RawValue string
    The value for the override of the environment variable
    Name string
    The environment variable name to override
    JobDefinitionId int
    The job ID for which the environment variable is being overridden
    ProjectId int
    The project ID for which the environment variable is being overridden
    RawValue string
    The value for the override of the environment variable
    Name string
    The environment variable name to override
    jobDefinitionId Integer
    The job ID for which the environment variable is being overridden
    projectId Integer
    The project ID for which the environment variable is being overridden
    rawValue String
    The value for the override of the environment variable
    name String
    The environment variable name to override
    jobDefinitionId number
    The job ID for which the environment variable is being overridden
    projectId number
    The project ID for which the environment variable is being overridden
    rawValue string
    The value for the override of the environment variable
    name string
    The environment variable name to override
    job_definition_id int
    The job ID for which the environment variable is being overridden
    project_id int
    The project ID for which the environment variable is being overridden
    raw_value str
    The value for the override of the environment variable
    name str
    The environment variable name to override
    jobDefinitionId Number
    The job ID for which the environment variable is being overridden
    projectId Number
    The project ID for which the environment variable is being overridden
    rawValue String
    The value for the override of the environment variable
    name String
    The environment variable name to override

    Outputs

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

    EnvironmentVariableJobOverrideId int
    The ID of the environment variable job override
    Id string
    The provider-assigned unique ID for this managed resource.
    EnvironmentVariableJobOverrideId int
    The ID of the environment variable job override
    Id string
    The provider-assigned unique ID for this managed resource.
    environmentVariableJobOverrideId Integer
    The ID of the environment variable job override
    id String
    The provider-assigned unique ID for this managed resource.
    environmentVariableJobOverrideId number
    The ID of the environment variable job override
    id string
    The provider-assigned unique ID for this managed resource.
    environment_variable_job_override_id int
    The ID of the environment variable job override
    id str
    The provider-assigned unique ID for this managed resource.
    environmentVariableJobOverrideId Number
    The ID of the environment variable job override
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing EnvironmentVariableJobOverride Resource

    Get an existing EnvironmentVariableJobOverride 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?: EnvironmentVariableJobOverrideState, opts?: CustomResourceOptions): EnvironmentVariableJobOverride
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            environment_variable_job_override_id: Optional[int] = None,
            job_definition_id: Optional[int] = None,
            name: Optional[str] = None,
            project_id: Optional[int] = None,
            raw_value: Optional[str] = None) -> EnvironmentVariableJobOverride
    func GetEnvironmentVariableJobOverride(ctx *Context, name string, id IDInput, state *EnvironmentVariableJobOverrideState, opts ...ResourceOption) (*EnvironmentVariableJobOverride, error)
    public static EnvironmentVariableJobOverride Get(string name, Input<string> id, EnvironmentVariableJobOverrideState? state, CustomResourceOptions? opts = null)
    public static EnvironmentVariableJobOverride get(String name, Output<String> id, EnvironmentVariableJobOverrideState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    EnvironmentVariableJobOverrideId int
    The ID of the environment variable job override
    JobDefinitionId int
    The job ID for which the environment variable is being overridden
    Name string
    The environment variable name to override
    ProjectId int
    The project ID for which the environment variable is being overridden
    RawValue string
    The value for the override of the environment variable
    EnvironmentVariableJobOverrideId int
    The ID of the environment variable job override
    JobDefinitionId int
    The job ID for which the environment variable is being overridden
    Name string
    The environment variable name to override
    ProjectId int
    The project ID for which the environment variable is being overridden
    RawValue string
    The value for the override of the environment variable
    environmentVariableJobOverrideId Integer
    The ID of the environment variable job override
    jobDefinitionId Integer
    The job ID for which the environment variable is being overridden
    name String
    The environment variable name to override
    projectId Integer
    The project ID for which the environment variable is being overridden
    rawValue String
    The value for the override of the environment variable
    environmentVariableJobOverrideId number
    The ID of the environment variable job override
    jobDefinitionId number
    The job ID for which the environment variable is being overridden
    name string
    The environment variable name to override
    projectId number
    The project ID for which the environment variable is being overridden
    rawValue string
    The value for the override of the environment variable
    environment_variable_job_override_id int
    The ID of the environment variable job override
    job_definition_id int
    The job ID for which the environment variable is being overridden
    name str
    The environment variable name to override
    project_id int
    The project ID for which the environment variable is being overridden
    raw_value str
    The value for the override of the environment variable
    environmentVariableJobOverrideId Number
    The ID of the environment variable job override
    jobDefinitionId Number
    The job ID for which the environment variable is being overridden
    name String
    The environment variable name to override
    projectId Number
    The project ID for which the environment variable is being overridden
    rawValue String
    The value for the override of the environment variable

    Import

    using import blocks (requires Terraform >= 1.5)

    import {

    to = dbtcloud_environment_variable_job_override.test_environment_variable_job_override

    id = “project_id:job_id:environment_variable_override_id”

    }

    import {

    to = dbtcloud_environment_variable_job_override.test_environment_variable_job_override

    id = “12345:678:123456”

    }

    using the older import command

    $ pulumi import dbtcloud:index/environmentVariableJobOverride:EnvironmentVariableJobOverride test_environment_variable_job_override "project_id:job_id:environment_variable_override_id"
    
    $ pulumi import dbtcloud:index/environmentVariableJobOverride:EnvironmentVariableJobOverride test_environment_variable_job_override 12345:678:123456
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    dbtcloud pulumi/pulumi-dbtcloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the dbtcloud Terraform Provider.
    dbtcloud logo
    dbt Cloud v0.1.8 published on Tuesday, Jun 11, 2024 by Pulumi