dbt Cloud v0.1.30 published on Thursday, Mar 20, 2025 by Pulumi
dbtcloud.getNotification
Explore with Pulumi AI
Retrieve notification details
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as dbtcloud from "@pulumi/dbtcloud";
const myNotification = dbtcloud.getNotification({
    notificationId: 12345,
});
import pulumi
import pulumi_dbtcloud as dbtcloud
my_notification = dbtcloud.get_notification(notification_id=12345)
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
	})
}
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,
    });
});
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());
    }
}
variables:
  myNotification:
    fn::invoke:
      function: dbtcloud:getNotification
      arguments:
        notificationId: 12345
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>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]func LookupNotification(ctx *Context, args *LookupNotificationArgs, opts ...InvokeOption) (*LookupNotificationResult, error)
func LookupNotificationOutput(ctx *Context, args *LookupNotificationOutputArgs, opts ...InvokeOption) LookupNotificationResultOutput> 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)
}public static CompletableFuture<GetNotificationResult> getNotification(GetNotificationArgs args, InvokeOptions options)
public static Output<GetNotificationResult> getNotification(GetNotificationArgs args, InvokeOptions options)
fn::invoke:
  function: dbtcloud:index/getNotification:getNotification
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Notification
Id int - The ID of the notification
 
- Notification
Id int - The ID of the notification
 
- notification
Id Integer - The ID of the notification
 
- notification
Id number - The ID of the notification
 
- notification_
id int - The ID of the notification
 
- notification
Id Number - The ID of the notification
 
getNotification Result
The following output properties are available:
- External
Email string - The external email to receive the notification
 - Id string
 - 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_idandslack_channel_name; 4 = external email: requires setting anexternal_email) - On
Cancels List<int> - List of job IDs to trigger the webhook on cancel
 - On
Failures List<int> - List of job IDs to trigger the webhook on failure
 - On
Successes List<int> - List of job IDs to trigger the webhook on success
 - On
Warnings List<int> - List of job IDs to trigger the webhook on warning
 - Slack
Channel stringId  - The ID of the Slack channel to receive the notification. It can be found at the bottom of the Slack channel settings
 - Slack
Channel stringName  - 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
 
- External
Email string - The external email to receive the notification
 - Id string
 - 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_idandslack_channel_name; 4 = external email: requires setting anexternal_email) - On
Cancels []int - List of job IDs to trigger the webhook on cancel
 - On
Failures []int - List of job IDs to trigger the webhook on failure
 - On
Successes []int - List of job IDs to trigger the webhook on success
 - On
Warnings []int - List of job IDs to trigger the webhook on warning
 - Slack
Channel stringId  - The ID of the Slack channel to receive the notification. It can be found at the bottom of the Slack channel settings
 - Slack
Channel stringName  - 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
 
- external
Email String - The external email to receive the notification
 - id String
 - The provider-assigned unique ID for this managed resource.
 - notification
Id Integer - The ID of the notification
 - notification
Type Integer - Type of notification (1 = dbt Cloud user email (default): does not require an external_email ; 2 = Slack channel: requires 
slack_channel_idandslack_channel_name; 4 = external email: requires setting anexternal_email) - on
Cancels List<Integer> - List of job IDs to trigger the webhook on cancel
 - on
Failures List<Integer> - List of job IDs to trigger the webhook on failure
 - on
Successes List<Integer> - List of job IDs to trigger the webhook on success
 - on
Warnings List<Integer> - List of job IDs to trigger the webhook on warning
 - slack
Channel StringId  - The ID of the Slack channel to receive the notification. It can be found at the bottom of the Slack channel settings
 - slack
Channel StringName  - The name of the slack channel
 - state Integer
 - State of the notification (1 = active (default), 2 = inactive)
 - user
Id Integer - Internal dbt Cloud User ID. Must be the user_id for an existing user even if the notification is an external one
 
- external
Email string - The external email to receive the notification
 - id string
 - The provider-assigned unique ID for this managed resource.
 - notification
Id number - The ID of the notification
 - notification
Type number - Type of notification (1 = dbt Cloud user email (default): does not require an external_email ; 2 = Slack channel: requires 
slack_channel_idandslack_channel_name; 4 = external email: requires setting anexternal_email) - on
Cancels number[] - List of job IDs to trigger the webhook on cancel
 - on
Failures number[] - List of job IDs to trigger the webhook on failure
 - on
Successes number[] - List of job IDs to trigger the webhook on success
 - on
Warnings number[] - List of job IDs to trigger the webhook on warning
 - slack
Channel stringId  - The ID of the Slack channel to receive the notification. It can be found at the bottom of the Slack channel settings
 - slack
Channel stringName  - The name of the slack channel
 - state number
 - State of the notification (1 = active (default), 2 = inactive)
 - user
Id 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_idandslack_channel_name; 4 = external email: requires setting anexternal_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_ strid  - The ID of the Slack channel to receive the notification. It can be found at the bottom of the Slack channel settings
 - slack_
channel_ strname  - 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
 
- external
Email String - The external email to receive the notification
 - id String
 - The provider-assigned unique ID for this managed resource.
 - notification
Id Number - The ID of the notification
 - notification
Type Number - Type of notification (1 = dbt Cloud user email (default): does not require an external_email ; 2 = Slack channel: requires 
slack_channel_idandslack_channel_name; 4 = external email: requires setting anexternal_email) - on
Cancels List<Number> - List of job IDs to trigger the webhook on cancel
 - on
Failures List<Number> - List of job IDs to trigger the webhook on failure
 - on
Successes List<Number> - List of job IDs to trigger the webhook on success
 - on
Warnings List<Number> - List of job IDs to trigger the webhook on warning
 - slack
Channel StringId  - The ID of the Slack channel to receive the notification. It can be found at the bottom of the Slack channel settings
 - slack
Channel StringName  - The name of the slack channel
 - state Number
 - State of the notification (1 = active (default), 2 = inactive)
 - user
Id 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 
dbtcloudTerraform Provider.