1. Packages
  2. Dbtcloud Provider
  3. API Docs
  4. PartialNotification
dbt Cloud v0.1.25 published on Friday, Nov 8, 2024 by Pulumi

dbtcloud.PartialNotification

Explore with Pulumi AI

dbtcloud logo
dbt Cloud v0.1.25 published on Friday, Nov 8, 2024 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as dbtcloud from "@pulumi/dbtcloud";
    
    // the config is the same as for `dbtcloud_notification`
    const prodJobInternalNotification = new dbtcloud.PartialNotification("prod_job_internal_notification", {
        userId: 100,
        onSuccesses: [prodJob.id],
        onFailures: [12345],
        notificationType: 1,
    });
    // we can also send "external" email notifications to emails to related to dbt Cloud users
    const prodJobExternalNotification = new dbtcloud.PartialNotification("prod_job_external_notification", {
        userId: 100,
        onFailures: [
            23456,
            56788,
        ],
        onCancels: [prodJob.id],
        notificationType: 4,
        externalEmail: "my_email@mail.com",
    });
    // and finally, we can set up Slack notifications
    const prodJobSlackNotifications = new dbtcloud.PartialNotification("prod_job_slack_notifications", {
        userId: 100,
        onFailures: [
            23456,
            56788,
        ],
        onCancels: [prodJob.id],
        notificationType: 2,
        slackChannelId: "C12345ABCDE",
        slackChannelName: "#my-awesome-channel",
    });
    
    import pulumi
    import pulumi_dbtcloud as dbtcloud
    
    # the config is the same as for `dbtcloud_notification`
    prod_job_internal_notification = dbtcloud.PartialNotification("prod_job_internal_notification",
        user_id=100,
        on_successes=[prod_job["id"]],
        on_failures=[12345],
        notification_type=1)
    # we can also send "external" email notifications to emails to related to dbt Cloud users
    prod_job_external_notification = dbtcloud.PartialNotification("prod_job_external_notification",
        user_id=100,
        on_failures=[
            23456,
            56788,
        ],
        on_cancels=[prod_job["id"]],
        notification_type=4,
        external_email="my_email@mail.com")
    # and finally, we can set up Slack notifications
    prod_job_slack_notifications = dbtcloud.PartialNotification("prod_job_slack_notifications",
        user_id=100,
        on_failures=[
            23456,
            56788,
        ],
        on_cancels=[prod_job["id"]],
        notification_type=2,
        slack_channel_id="C12345ABCDE",
        slack_channel_name="#my-awesome-channel")
    
    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 {
    		// the config is the same as for `dbtcloud_notification`
    		_, err := dbtcloud.NewPartialNotification(ctx, "prod_job_internal_notification", &dbtcloud.PartialNotificationArgs{
    			UserId: pulumi.Int(100),
    			OnSuccesses: pulumi.IntArray{
    				prodJob.Id,
    			},
    			OnFailures: pulumi.IntArray{
    				pulumi.Int(12345),
    			},
    			NotificationType: pulumi.Int(1),
    		})
    		if err != nil {
    			return err
    		}
    		// we can also send "external" email notifications to emails to related to dbt Cloud users
    		_, err = dbtcloud.NewPartialNotification(ctx, "prod_job_external_notification", &dbtcloud.PartialNotificationArgs{
    			UserId: pulumi.Int(100),
    			OnFailures: pulumi.IntArray{
    				pulumi.Int(23456),
    				pulumi.Int(56788),
    			},
    			OnCancels: pulumi.IntArray{
    				prodJob.Id,
    			},
    			NotificationType: pulumi.Int(4),
    			ExternalEmail:    pulumi.String("my_email@mail.com"),
    		})
    		if err != nil {
    			return err
    		}
    		// and finally, we can set up Slack notifications
    		_, err = dbtcloud.NewPartialNotification(ctx, "prod_job_slack_notifications", &dbtcloud.PartialNotificationArgs{
    			UserId: pulumi.Int(100),
    			OnFailures: pulumi.IntArray{
    				pulumi.Int(23456),
    				pulumi.Int(56788),
    			},
    			OnCancels: pulumi.IntArray{
    				prodJob.Id,
    			},
    			NotificationType: pulumi.Int(2),
    			SlackChannelId:   pulumi.String("C12345ABCDE"),
    			SlackChannelName: pulumi.String("#my-awesome-channel"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using DbtCloud = Pulumi.DbtCloud;
    
    return await Deployment.RunAsync(() => 
    {
        // the config is the same as for `dbtcloud_notification`
        var prodJobInternalNotification = new DbtCloud.PartialNotification("prod_job_internal_notification", new()
        {
            UserId = 100,
            OnSuccesses = new[]
            {
                prodJob.Id,
            },
            OnFailures = new[]
            {
                12345,
            },
            NotificationType = 1,
        });
    
        // we can also send "external" email notifications to emails to related to dbt Cloud users
        var prodJobExternalNotification = new DbtCloud.PartialNotification("prod_job_external_notification", new()
        {
            UserId = 100,
            OnFailures = new[]
            {
                23456,
                56788,
            },
            OnCancels = new[]
            {
                prodJob.Id,
            },
            NotificationType = 4,
            ExternalEmail = "my_email@mail.com",
        });
    
        // and finally, we can set up Slack notifications
        var prodJobSlackNotifications = new DbtCloud.PartialNotification("prod_job_slack_notifications", new()
        {
            UserId = 100,
            OnFailures = new[]
            {
                23456,
                56788,
            },
            OnCancels = new[]
            {
                prodJob.Id,
            },
            NotificationType = 2,
            SlackChannelId = "C12345ABCDE",
            SlackChannelName = "#my-awesome-channel",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.dbtcloud.PartialNotification;
    import com.pulumi.dbtcloud.PartialNotificationArgs;
    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) {
            // the config is the same as for `dbtcloud_notification`
            var prodJobInternalNotification = new PartialNotification("prodJobInternalNotification", PartialNotificationArgs.builder()
                .userId(100)
                .onSuccesses(prodJob.id())
                .onFailures(12345)
                .notificationType(1)
                .build());
    
            // we can also send "external" email notifications to emails to related to dbt Cloud users
            var prodJobExternalNotification = new PartialNotification("prodJobExternalNotification", PartialNotificationArgs.builder()
                .userId(100)
                .onFailures(            
                    23456,
                    56788)
                .onCancels(prodJob.id())
                .notificationType(4)
                .externalEmail("my_email@mail.com")
                .build());
    
            // and finally, we can set up Slack notifications
            var prodJobSlackNotifications = new PartialNotification("prodJobSlackNotifications", PartialNotificationArgs.builder()
                .userId(100)
                .onFailures(            
                    23456,
                    56788)
                .onCancels(prodJob.id())
                .notificationType(2)
                .slackChannelId("C12345ABCDE")
                .slackChannelName("#my-awesome-channel")
                .build());
    
        }
    }
    
    resources:
      # the config is the same as for `dbtcloud_notification`
      prodJobInternalNotification:
        type: dbtcloud:PartialNotification
        name: prod_job_internal_notification
        properties:
          userId: 100
          onSuccesses:
            - ${prodJob.id}
          onFailures:
            - 12345
          notificationType: 1
      # we can also send "external" email notifications to emails to related to dbt Cloud users
      prodJobExternalNotification:
        type: dbtcloud:PartialNotification
        name: prod_job_external_notification
        properties:
          userId: 100
          onFailures:
            - 23456
            - 56788
          onCancels:
            - ${prodJob.id}
          notificationType: 4 # the external_email is the email address that will receive the notification
          externalEmail: my_email@mail.com
      # and finally, we can set up Slack notifications
      prodJobSlackNotifications:
        type: dbtcloud:PartialNotification
        name: prod_job_slack_notifications
        properties:
          userId: 100
          onFailures:
            - 23456
            - 56788
          onCancels:
            - ${prodJob.id}
          notificationType: 2
          slackChannelId: C12345ABCDE
          slackChannelName: '#my-awesome-channel'
    

    Create PartialNotification Resource

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

    Constructor syntax

    new PartialNotification(name: string, args: PartialNotificationArgs, opts?: CustomResourceOptions);
    @overload
    def PartialNotification(resource_name: str,
                            args: PartialNotificationArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def PartialNotification(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            user_id: Optional[int] = None,
                            external_email: Optional[str] = None,
                            notification_type: Optional[int] = None,
                            on_cancels: Optional[Sequence[int]] = None,
                            on_failures: Optional[Sequence[int]] = None,
                            on_successes: Optional[Sequence[int]] = None,
                            on_warnings: Optional[Sequence[int]] = None,
                            slack_channel_id: Optional[str] = None,
                            slack_channel_name: Optional[str] = None,
                            state: Optional[int] = None)
    func NewPartialNotification(ctx *Context, name string, args PartialNotificationArgs, opts ...ResourceOption) (*PartialNotification, error)
    public PartialNotification(string name, PartialNotificationArgs args, CustomResourceOptions? opts = null)
    public PartialNotification(String name, PartialNotificationArgs args)
    public PartialNotification(String name, PartialNotificationArgs args, CustomResourceOptions options)
    
    type: dbtcloud:PartialNotification
    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 PartialNotificationArgs
    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 PartialNotificationArgs
    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 PartialNotificationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PartialNotificationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PartialNotificationArgs
    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 partialNotificationResource = new DbtCloud.PartialNotification("partialNotificationResource", new()
    {
        UserId = 0,
        ExternalEmail = "string",
        NotificationType = 0,
        OnCancels = new[]
        {
            0,
        },
        OnFailures = new[]
        {
            0,
        },
        OnSuccesses = new[]
        {
            0,
        },
        OnWarnings = new[]
        {
            0,
        },
        SlackChannelId = "string",
        SlackChannelName = "string",
        State = 0,
    });
    
    example, err := dbtcloud.NewPartialNotification(ctx, "partialNotificationResource", &dbtcloud.PartialNotificationArgs{
    	UserId:           pulumi.Int(0),
    	ExternalEmail:    pulumi.String("string"),
    	NotificationType: pulumi.Int(0),
    	OnCancels: pulumi.IntArray{
    		pulumi.Int(0),
    	},
    	OnFailures: pulumi.IntArray{
    		pulumi.Int(0),
    	},
    	OnSuccesses: pulumi.IntArray{
    		pulumi.Int(0),
    	},
    	OnWarnings: pulumi.IntArray{
    		pulumi.Int(0),
    	},
    	SlackChannelId:   pulumi.String("string"),
    	SlackChannelName: pulumi.String("string"),
    	State:            pulumi.Int(0),
    })
    
    var partialNotificationResource = new PartialNotification("partialNotificationResource", PartialNotificationArgs.builder()
        .userId(0)
        .externalEmail("string")
        .notificationType(0)
        .onCancels(0)
        .onFailures(0)
        .onSuccesses(0)
        .onWarnings(0)
        .slackChannelId("string")
        .slackChannelName("string")
        .state(0)
        .build());
    
    partial_notification_resource = dbtcloud.PartialNotification("partialNotificationResource",
        user_id=0,
        external_email="string",
        notification_type=0,
        on_cancels=[0],
        on_failures=[0],
        on_successes=[0],
        on_warnings=[0],
        slack_channel_id="string",
        slack_channel_name="string",
        state=0)
    
    const partialNotificationResource = new dbtcloud.PartialNotification("partialNotificationResource", {
        userId: 0,
        externalEmail: "string",
        notificationType: 0,
        onCancels: [0],
        onFailures: [0],
        onSuccesses: [0],
        onWarnings: [0],
        slackChannelId: "string",
        slackChannelName: "string",
        state: 0,
    });
    
    type: dbtcloud:PartialNotification
    properties:
        externalEmail: string
        notificationType: 0
        onCancels:
            - 0
        onFailures:
            - 0
        onSuccesses:
            - 0
        onWarnings:
            - 0
        slackChannelId: string
        slackChannelName: string
        state: 0
        userId: 0
    

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

    UserId int
    Internal dbt Cloud User ID. Must be the user_id for an existing user even if the notification is an external one [global]
    ExternalEmail string
    The external email to receive the notification [global, used as identifier]
    NotificationType int
    Type of notification (1 = dbt Cloud user email (default): does not require an external_email ; 2 = Slack channel: requires slack_channel_id and slack_channel_name ; 4 = external email: requires setting an external_email) [global, used as identifier]
    OnCancels List<int>
    List of job IDs to trigger the webhook on cancel. Those will be added/removed when config is added/removed.
    OnFailures List<int>
    List of job IDs to trigger the webhook on failure Those will be added/removed when config is added/removed.
    OnSuccesses List<int>
    List of job IDs to trigger the webhook on success Those will be added/removed when config is added/removed.
    OnWarnings List<int>
    List of job IDs to trigger the webhook on warning Those will be added/removed when config is added/removed.
    SlackChannelId string
    The ID of the Slack channel to receive the notification. It can be found at the bottom of the Slack channel settings [global, used as identifier]
    SlackChannelName string
    The name of the slack channel [global, used as identifier]
    State int
    State of the notification (1 = active (default), 2 = inactive) [global]
    UserId int
    Internal dbt Cloud User ID. Must be the user_id for an existing user even if the notification is an external one [global]
    ExternalEmail string
    The external email to receive the notification [global, used as identifier]
    NotificationType int
    Type of notification (1 = dbt Cloud user email (default): does not require an external_email ; 2 = Slack channel: requires slack_channel_id and slack_channel_name ; 4 = external email: requires setting an external_email) [global, used as identifier]
    OnCancels []int
    List of job IDs to trigger the webhook on cancel. Those will be added/removed when config is added/removed.
    OnFailures []int
    List of job IDs to trigger the webhook on failure Those will be added/removed when config is added/removed.
    OnSuccesses []int
    List of job IDs to trigger the webhook on success Those will be added/removed when config is added/removed.
    OnWarnings []int
    List of job IDs to trigger the webhook on warning Those will be added/removed when config is added/removed.
    SlackChannelId string
    The ID of the Slack channel to receive the notification. It can be found at the bottom of the Slack channel settings [global, used as identifier]
    SlackChannelName string
    The name of the slack channel [global, used as identifier]
    State int
    State of the notification (1 = active (default), 2 = inactive) [global]
    userId Integer
    Internal dbt Cloud User ID. Must be the user_id for an existing user even if the notification is an external one [global]
    externalEmail String
    The external email to receive the notification [global, used as identifier]
    notificationType Integer
    Type of notification (1 = dbt Cloud user email (default): does not require an external_email ; 2 = Slack channel: requires slack_channel_id and slack_channel_name ; 4 = external email: requires setting an external_email) [global, used as identifier]
    onCancels List<Integer>
    List of job IDs to trigger the webhook on cancel. Those will be added/removed when config is added/removed.
    onFailures List<Integer>
    List of job IDs to trigger the webhook on failure Those will be added/removed when config is added/removed.
    onSuccesses List<Integer>
    List of job IDs to trigger the webhook on success Those will be added/removed when config is added/removed.
    onWarnings List<Integer>
    List of job IDs to trigger the webhook on warning Those will be added/removed when config is added/removed.
    slackChannelId String
    The ID of the Slack channel to receive the notification. It can be found at the bottom of the Slack channel settings [global, used as identifier]
    slackChannelName String
    The name of the slack channel [global, used as identifier]
    state Integer
    State of the notification (1 = active (default), 2 = inactive) [global]
    userId number
    Internal dbt Cloud User ID. Must be the user_id for an existing user even if the notification is an external one [global]
    externalEmail string
    The external email to receive the notification [global, used as identifier]
    notificationType number
    Type of notification (1 = dbt Cloud user email (default): does not require an external_email ; 2 = Slack channel: requires slack_channel_id and slack_channel_name ; 4 = external email: requires setting an external_email) [global, used as identifier]
    onCancels number[]
    List of job IDs to trigger the webhook on cancel. Those will be added/removed when config is added/removed.
    onFailures number[]
    List of job IDs to trigger the webhook on failure Those will be added/removed when config is added/removed.
    onSuccesses number[]
    List of job IDs to trigger the webhook on success Those will be added/removed when config is added/removed.
    onWarnings number[]
    List of job IDs to trigger the webhook on warning Those will be added/removed when config is added/removed.
    slackChannelId string
    The ID of the Slack channel to receive the notification. It can be found at the bottom of the Slack channel settings [global, used as identifier]
    slackChannelName string
    The name of the slack channel [global, used as identifier]
    state number
    State of the notification (1 = active (default), 2 = inactive) [global]
    user_id int
    Internal dbt Cloud User ID. Must be the user_id for an existing user even if the notification is an external one [global]
    external_email str
    The external email to receive the notification [global, used as identifier]
    notification_type int
    Type of notification (1 = dbt Cloud user email (default): does not require an external_email ; 2 = Slack channel: requires slack_channel_id and slack_channel_name ; 4 = external email: requires setting an external_email) [global, used as identifier]
    on_cancels Sequence[int]
    List of job IDs to trigger the webhook on cancel. Those will be added/removed when config is added/removed.
    on_failures Sequence[int]
    List of job IDs to trigger the webhook on failure Those will be added/removed when config is added/removed.
    on_successes Sequence[int]
    List of job IDs to trigger the webhook on success Those will be added/removed when config is added/removed.
    on_warnings Sequence[int]
    List of job IDs to trigger the webhook on warning Those will be added/removed when config is added/removed.
    slack_channel_id str
    The ID of the Slack channel to receive the notification. It can be found at the bottom of the Slack channel settings [global, used as identifier]
    slack_channel_name str
    The name of the slack channel [global, used as identifier]
    state int
    State of the notification (1 = active (default), 2 = inactive) [global]
    userId Number
    Internal dbt Cloud User ID. Must be the user_id for an existing user even if the notification is an external one [global]
    externalEmail String
    The external email to receive the notification [global, used as identifier]
    notificationType Number
    Type of notification (1 = dbt Cloud user email (default): does not require an external_email ; 2 = Slack channel: requires slack_channel_id and slack_channel_name ; 4 = external email: requires setting an external_email) [global, used as identifier]
    onCancels List<Number>
    List of job IDs to trigger the webhook on cancel. Those will be added/removed when config is added/removed.
    onFailures List<Number>
    List of job IDs to trigger the webhook on failure Those will be added/removed when config is added/removed.
    onSuccesses List<Number>
    List of job IDs to trigger the webhook on success Those will be added/removed when config is added/removed.
    onWarnings List<Number>
    List of job IDs to trigger the webhook on warning Those will be added/removed when config is added/removed.
    slackChannelId String
    The ID of the Slack channel to receive the notification. It can be found at the bottom of the Slack channel settings [global, used as identifier]
    slackChannelName String
    The name of the slack channel [global, used as identifier]
    state Number
    State of the notification (1 = active (default), 2 = inactive) [global]

    Outputs

    All input properties are implicitly available as output properties. Additionally, the PartialNotification 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 str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing PartialNotification Resource

    Get an existing PartialNotification 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?: PartialNotificationState, opts?: CustomResourceOptions): PartialNotification
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            external_email: Optional[str] = None,
            notification_type: Optional[int] = None,
            on_cancels: Optional[Sequence[int]] = None,
            on_failures: Optional[Sequence[int]] = None,
            on_successes: Optional[Sequence[int]] = None,
            on_warnings: Optional[Sequence[int]] = None,
            slack_channel_id: Optional[str] = None,
            slack_channel_name: Optional[str] = None,
            state: Optional[int] = None,
            user_id: Optional[int] = None) -> PartialNotification
    func GetPartialNotification(ctx *Context, name string, id IDInput, state *PartialNotificationState, opts ...ResourceOption) (*PartialNotification, error)
    public static PartialNotification Get(string name, Input<string> id, PartialNotificationState? state, CustomResourceOptions? opts = null)
    public static PartialNotification get(String name, Output<String> id, PartialNotificationState 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:
    ExternalEmail string
    The external email to receive the notification [global, used as identifier]
    NotificationType int
    Type of notification (1 = dbt Cloud user email (default): does not require an external_email ; 2 = Slack channel: requires slack_channel_id and slack_channel_name ; 4 = external email: requires setting an external_email) [global, used as identifier]
    OnCancels List<int>
    List of job IDs to trigger the webhook on cancel. Those will be added/removed when config is added/removed.
    OnFailures List<int>
    List of job IDs to trigger the webhook on failure Those will be added/removed when config is added/removed.
    OnSuccesses List<int>
    List of job IDs to trigger the webhook on success Those will be added/removed when config is added/removed.
    OnWarnings List<int>
    List of job IDs to trigger the webhook on warning Those will be added/removed when config is added/removed.
    SlackChannelId string
    The ID of the Slack channel to receive the notification. It can be found at the bottom of the Slack channel settings [global, used as identifier]
    SlackChannelName string
    The name of the slack channel [global, used as identifier]
    State int
    State of the notification (1 = active (default), 2 = inactive) [global]
    UserId int
    Internal dbt Cloud User ID. Must be the user_id for an existing user even if the notification is an external one [global]
    ExternalEmail string
    The external email to receive the notification [global, used as identifier]
    NotificationType int
    Type of notification (1 = dbt Cloud user email (default): does not require an external_email ; 2 = Slack channel: requires slack_channel_id and slack_channel_name ; 4 = external email: requires setting an external_email) [global, used as identifier]
    OnCancels []int
    List of job IDs to trigger the webhook on cancel. Those will be added/removed when config is added/removed.
    OnFailures []int
    List of job IDs to trigger the webhook on failure Those will be added/removed when config is added/removed.
    OnSuccesses []int
    List of job IDs to trigger the webhook on success Those will be added/removed when config is added/removed.
    OnWarnings []int
    List of job IDs to trigger the webhook on warning Those will be added/removed when config is added/removed.
    SlackChannelId string
    The ID of the Slack channel to receive the notification. It can be found at the bottom of the Slack channel settings [global, used as identifier]
    SlackChannelName string
    The name of the slack channel [global, used as identifier]
    State int
    State of the notification (1 = active (default), 2 = inactive) [global]
    UserId int
    Internal dbt Cloud User ID. Must be the user_id for an existing user even if the notification is an external one [global]
    externalEmail String
    The external email to receive the notification [global, used as identifier]
    notificationType Integer
    Type of notification (1 = dbt Cloud user email (default): does not require an external_email ; 2 = Slack channel: requires slack_channel_id and slack_channel_name ; 4 = external email: requires setting an external_email) [global, used as identifier]
    onCancels List<Integer>
    List of job IDs to trigger the webhook on cancel. Those will be added/removed when config is added/removed.
    onFailures List<Integer>
    List of job IDs to trigger the webhook on failure Those will be added/removed when config is added/removed.
    onSuccesses List<Integer>
    List of job IDs to trigger the webhook on success Those will be added/removed when config is added/removed.
    onWarnings List<Integer>
    List of job IDs to trigger the webhook on warning Those will be added/removed when config is added/removed.
    slackChannelId String
    The ID of the Slack channel to receive the notification. It can be found at the bottom of the Slack channel settings [global, used as identifier]
    slackChannelName String
    The name of the slack channel [global, used as identifier]
    state Integer
    State of the notification (1 = active (default), 2 = inactive) [global]
    userId Integer
    Internal dbt Cloud User ID. Must be the user_id for an existing user even if the notification is an external one [global]
    externalEmail string
    The external email to receive the notification [global, used as identifier]
    notificationType number
    Type of notification (1 = dbt Cloud user email (default): does not require an external_email ; 2 = Slack channel: requires slack_channel_id and slack_channel_name ; 4 = external email: requires setting an external_email) [global, used as identifier]
    onCancels number[]
    List of job IDs to trigger the webhook on cancel. Those will be added/removed when config is added/removed.
    onFailures number[]
    List of job IDs to trigger the webhook on failure Those will be added/removed when config is added/removed.
    onSuccesses number[]
    List of job IDs to trigger the webhook on success Those will be added/removed when config is added/removed.
    onWarnings number[]
    List of job IDs to trigger the webhook on warning Those will be added/removed when config is added/removed.
    slackChannelId string
    The ID of the Slack channel to receive the notification. It can be found at the bottom of the Slack channel settings [global, used as identifier]
    slackChannelName string
    The name of the slack channel [global, used as identifier]
    state number
    State of the notification (1 = active (default), 2 = inactive) [global]
    userId number
    Internal dbt Cloud User ID. Must be the user_id for an existing user even if the notification is an external one [global]
    external_email str
    The external email to receive the notification [global, used as identifier]
    notification_type int
    Type of notification (1 = dbt Cloud user email (default): does not require an external_email ; 2 = Slack channel: requires slack_channel_id and slack_channel_name ; 4 = external email: requires setting an external_email) [global, used as identifier]
    on_cancels Sequence[int]
    List of job IDs to trigger the webhook on cancel. Those will be added/removed when config is added/removed.
    on_failures Sequence[int]
    List of job IDs to trigger the webhook on failure Those will be added/removed when config is added/removed.
    on_successes Sequence[int]
    List of job IDs to trigger the webhook on success Those will be added/removed when config is added/removed.
    on_warnings Sequence[int]
    List of job IDs to trigger the webhook on warning Those will be added/removed when config is added/removed.
    slack_channel_id str
    The ID of the Slack channel to receive the notification. It can be found at the bottom of the Slack channel settings [global, used as identifier]
    slack_channel_name str
    The name of the slack channel [global, used as identifier]
    state int
    State of the notification (1 = active (default), 2 = inactive) [global]
    user_id int
    Internal dbt Cloud User ID. Must be the user_id for an existing user even if the notification is an external one [global]
    externalEmail String
    The external email to receive the notification [global, used as identifier]
    notificationType Number
    Type of notification (1 = dbt Cloud user email (default): does not require an external_email ; 2 = Slack channel: requires slack_channel_id and slack_channel_name ; 4 = external email: requires setting an external_email) [global, used as identifier]
    onCancels List<Number>
    List of job IDs to trigger the webhook on cancel. Those will be added/removed when config is added/removed.
    onFailures List<Number>
    List of job IDs to trigger the webhook on failure Those will be added/removed when config is added/removed.
    onSuccesses List<Number>
    List of job IDs to trigger the webhook on success Those will be added/removed when config is added/removed.
    onWarnings List<Number>
    List of job IDs to trigger the webhook on warning Those will be added/removed when config is added/removed.
    slackChannelId String
    The ID of the Slack channel to receive the notification. It can be found at the bottom of the Slack channel settings [global, used as identifier]
    slackChannelName String
    The name of the slack channel [global, used as identifier]
    state Number
    State of the notification (1 = active (default), 2 = inactive) [global]
    userId Number
    Internal dbt Cloud User ID. Must be the user_id for an existing user even if the notification is an external one [global]

    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.25 published on Friday, Nov 8, 2024 by Pulumi