1. Packages
  2. dbt Cloud Provider
  3. API Docs
  4. getNotification
dbt Cloud v0.1.30 published on Thursday, Mar 20, 2025 by Pulumi

dbtcloud.getNotification

Explore with Pulumi AI

dbt Cloud v0.1.30 published on Thursday, Mar 20, 2025 by Pulumi

Retrieve notification details

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as dbtcloud from "@pulumi/dbtcloud";

const myNotification = dbtcloud.getNotification({
    notificationId: 12345,
});
Copy
import pulumi
import pulumi_dbtcloud as dbtcloud

my_notification = dbtcloud.get_notification(notification_id=12345)
Copy
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.LookupNotification(ctx, &dbtcloud.LookupNotificationArgs{
			NotificationId: 12345,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using DbtCloud = Pulumi.DbtCloud;

return await Deployment.RunAsync(() => 
{
    var myNotification = DbtCloud.GetNotification.Invoke(new()
    {
        NotificationId = 12345,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.dbtcloud.DbtcloudFunctions;
import com.pulumi.dbtcloud.inputs.GetNotificationArgs;
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) {
        final var myNotification = DbtcloudFunctions.getNotification(GetNotificationArgs.builder()
            .notificationId(12345)
            .build());

    }
}
Copy
variables:
  myNotification:
    fn::invoke:
      function: dbtcloud:getNotification
      arguments:
        notificationId: 12345
Copy

Using getNotification

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getNotification(args: GetNotificationArgs, opts?: InvokeOptions): Promise<GetNotificationResult>
function getNotificationOutput(args: GetNotificationOutputArgs, opts?: InvokeOptions): Output<GetNotificationResult>
Copy
def get_notification(notification_id: Optional[int] = None,
                     opts: Optional[InvokeOptions] = None) -> GetNotificationResult
def get_notification_output(notification_id: Optional[pulumi.Input[int]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetNotificationResult]
Copy
func LookupNotification(ctx *Context, args *LookupNotificationArgs, opts ...InvokeOption) (*LookupNotificationResult, error)
func LookupNotificationOutput(ctx *Context, args *LookupNotificationOutputArgs, opts ...InvokeOption) LookupNotificationResultOutput
Copy

> Note: This function is named LookupNotification in the Go SDK.

public static class GetNotification 
{
    public static Task<GetNotificationResult> InvokeAsync(GetNotificationArgs args, InvokeOptions? opts = null)
    public static Output<GetNotificationResult> Invoke(GetNotificationInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetNotificationResult> getNotification(GetNotificationArgs args, InvokeOptions options)
public static Output<GetNotificationResult> getNotification(GetNotificationArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: dbtcloud:index/getNotification:getNotification
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

NotificationId This property is required. int
The ID of the notification
NotificationId This property is required. int
The ID of the notification
notificationId This property is required. Integer
The ID of the notification
notificationId This property is required. number
The ID of the notification
notification_id This property is required. int
The ID of the notification
notificationId This property is required. Number
The ID of the notification

getNotification Result

The following output properties are available:

ExternalEmail string
The external email to receive the notification
Id string
The provider-assigned unique ID for this managed resource.
NotificationId int
The ID of the notification
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)
OnCancels List<int>
List of job IDs to trigger the webhook on cancel
OnFailures List<int>
List of job IDs to trigger the webhook on failure
OnSuccesses List<int>
List of job IDs to trigger the webhook on success
OnWarnings List<int>
List of job IDs to trigger the webhook on warning
SlackChannelId string
The ID of the Slack channel to receive the notification. It can be found at the bottom of the Slack channel settings
SlackChannelName string
The name of the slack channel
State int
State of the notification (1 = active (default), 2 = inactive)
UserId int
Internal dbt Cloud User ID. Must be the user_id for an existing user even if the notification is an external one
ExternalEmail string
The external email to receive the notification
Id string
The provider-assigned unique ID for this managed resource.
NotificationId int
The ID of the notification
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)
OnCancels []int
List of job IDs to trigger the webhook on cancel
OnFailures []int
List of job IDs to trigger the webhook on failure
OnSuccesses []int
List of job IDs to trigger the webhook on success
OnWarnings []int
List of job IDs to trigger the webhook on warning
SlackChannelId string
The ID of the Slack channel to receive the notification. It can be found at the bottom of the Slack channel settings
SlackChannelName string
The name of the slack channel
State int
State of the notification (1 = active (default), 2 = inactive)
UserId int
Internal dbt Cloud User ID. Must be the user_id for an existing user even if the notification is an external one
externalEmail String
The external email to receive the notification
id String
The provider-assigned unique ID for this managed resource.
notificationId Integer
The ID of the notification
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)
onCancels List<Integer>
List of job IDs to trigger the webhook on cancel
onFailures List<Integer>
List of job IDs to trigger the webhook on failure
onSuccesses List<Integer>
List of job IDs to trigger the webhook on success
onWarnings List<Integer>
List of job IDs to trigger the webhook on warning
slackChannelId String
The ID of the Slack channel to receive the notification. It can be found at the bottom of the Slack channel settings
slackChannelName String
The name of the slack channel
state Integer
State of the notification (1 = active (default), 2 = inactive)
userId Integer
Internal dbt Cloud User ID. Must be the user_id for an existing user even if the notification is an external one
externalEmail string
The external email to receive the notification
id string
The provider-assigned unique ID for this managed resource.
notificationId number
The ID of the notification
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)
onCancels number[]
List of job IDs to trigger the webhook on cancel
onFailures number[]
List of job IDs to trigger the webhook on failure
onSuccesses number[]
List of job IDs to trigger the webhook on success
onWarnings number[]
List of job IDs to trigger the webhook on warning
slackChannelId string
The ID of the Slack channel to receive the notification. It can be found at the bottom of the Slack channel settings
slackChannelName string
The name of the slack channel
state number
State of the notification (1 = active (default), 2 = inactive)
userId number
Internal dbt Cloud User ID. Must be the user_id for an existing user even if the notification is an external one
external_email str
The external email to receive the notification
id str
The provider-assigned unique ID for this managed resource.
notification_id int
The ID of the notification
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)
on_cancels Sequence[int]
List of job IDs to trigger the webhook on cancel
on_failures Sequence[int]
List of job IDs to trigger the webhook on failure
on_successes Sequence[int]
List of job IDs to trigger the webhook on success
on_warnings Sequence[int]
List of job IDs to trigger the webhook on warning
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
slack_channel_name str
The name of the slack channel
state int
State of the notification (1 = active (default), 2 = inactive)
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
externalEmail String
The external email to receive the notification
id String
The provider-assigned unique ID for this managed resource.
notificationId Number
The ID of the notification
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)
onCancels List<Number>
List of job IDs to trigger the webhook on cancel
onFailures List<Number>
List of job IDs to trigger the webhook on failure
onSuccesses List<Number>
List of job IDs to trigger the webhook on success
onWarnings List<Number>
List of job IDs to trigger the webhook on warning
slackChannelId String
The ID of the Slack channel to receive the notification. It can be found at the bottom of the Slack channel settings
slackChannelName String
The name of the slack channel
state Number
State of the notification (1 = active (default), 2 = inactive)
userId Number
Internal dbt Cloud User ID. Must be the user_id for an existing user even if the notification is an external one

Package Details

Repository
dbtcloud pulumi/pulumi-dbtcloud
License
Apache-2.0
Notes
This Pulumi package is based on the dbtcloud Terraform Provider.
dbt Cloud v0.1.30 published on Thursday, Mar 20, 2025 by Pulumi