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

dbtcloud.getNotification

Explore with Pulumi AI

dbtcloud logo
dbt Cloud v0.1.8 published on Tuesday, Jun 11, 2024 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,
    });
    
    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: dbtcloud:index/getNotification:getNotification
      arguments:
        # arguments dictionary

    The following arguments are supported:

    NotificationId int
    The ID of the notification
    NotificationId int
    The ID of the notification
    notificationId Integer
    The ID of the notification
    notificationId number
    The ID of the notification
    notification_id int
    The ID of the notification
    notificationId 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.
    dbtcloud logo
    dbt Cloud v0.1.8 published on Tuesday, Jun 11, 2024 by Pulumi