1. Packages
  2. Databricks
  3. API Docs
  4. NotificationDestination
Databricks v1.56.0 published on Tuesday, Nov 12, 2024 by Pulumi

databricks.NotificationDestination

Explore with Pulumi AI

databricks logo
Databricks v1.56.0 published on Tuesday, Nov 12, 2024 by Pulumi

    This resource allows you to manage Notification Destinations. Notification destinations are used to send notifications for query alerts and jobs to destinations outside of Databricks. Only workspace admins can create, update, and delete notification destinations.

    Example Usage

    Email notification destination:

    import * as pulumi from "@pulumi/pulumi";
    import * as databricks from "@pulumi/databricks";
    
    const ndresource = new databricks.NotificationDestination("ndresource", {
        displayName: "Notification Destination",
        config: {
            email: {
                addresses: ["abc@gmail.com"],
            },
        },
    });
    
    import pulumi
    import pulumi_databricks as databricks
    
    ndresource = databricks.NotificationDestination("ndresource",
        display_name="Notification Destination",
        config={
            "email": {
                "addresses": ["abc@gmail.com"],
            },
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-databricks/sdk/go/databricks"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := databricks.NewNotificationDestination(ctx, "ndresource", &databricks.NotificationDestinationArgs{
    			DisplayName: pulumi.String("Notification Destination"),
    			Config: &databricks.NotificationDestinationConfigArgs{
    				Email: &databricks.NotificationDestinationConfigEmailArgs{
    					Addresses: pulumi.StringArray{
    						pulumi.String("abc@gmail.com"),
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Databricks = Pulumi.Databricks;
    
    return await Deployment.RunAsync(() => 
    {
        var ndresource = new Databricks.NotificationDestination("ndresource", new()
        {
            DisplayName = "Notification Destination",
            Config = new Databricks.Inputs.NotificationDestinationConfigArgs
            {
                Email = new Databricks.Inputs.NotificationDestinationConfigEmailArgs
                {
                    Addresses = new[]
                    {
                        "abc@gmail.com",
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.databricks.NotificationDestination;
    import com.pulumi.databricks.NotificationDestinationArgs;
    import com.pulumi.databricks.inputs.NotificationDestinationConfigArgs;
    import com.pulumi.databricks.inputs.NotificationDestinationConfigEmailArgs;
    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 ndresource = new NotificationDestination("ndresource", NotificationDestinationArgs.builder()
                .displayName("Notification Destination")
                .config(NotificationDestinationConfigArgs.builder()
                    .email(NotificationDestinationConfigEmailArgs.builder()
                        .addresses("abc@gmail.com")
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      ndresource:
        type: databricks:NotificationDestination
        properties:
          displayName: Notification Destination
          config:
            email:
              addresses:
                - abc@gmail.com
    

    Slack notification destination:

    import * as pulumi from "@pulumi/pulumi";
    import * as databricks from "@pulumi/databricks";
    
    const ndresource = new databricks.NotificationDestination("ndresource", {
        displayName: "Notification Destination",
        config: {
            slack: {
                url: "https://hooks.slack.com/services/...",
            },
        },
    });
    
    import pulumi
    import pulumi_databricks as databricks
    
    ndresource = databricks.NotificationDestination("ndresource",
        display_name="Notification Destination",
        config={
            "slack": {
                "url": "https://hooks.slack.com/services/...",
            },
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-databricks/sdk/go/databricks"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := databricks.NewNotificationDestination(ctx, "ndresource", &databricks.NotificationDestinationArgs{
    			DisplayName: pulumi.String("Notification Destination"),
    			Config: &databricks.NotificationDestinationConfigArgs{
    				Slack: &databricks.NotificationDestinationConfigSlackArgs{
    					Url: pulumi.String("https://hooks.slack.com/services/..."),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Databricks = Pulumi.Databricks;
    
    return await Deployment.RunAsync(() => 
    {
        var ndresource = new Databricks.NotificationDestination("ndresource", new()
        {
            DisplayName = "Notification Destination",
            Config = new Databricks.Inputs.NotificationDestinationConfigArgs
            {
                Slack = new Databricks.Inputs.NotificationDestinationConfigSlackArgs
                {
                    Url = "https://hooks.slack.com/services/...",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.databricks.NotificationDestination;
    import com.pulumi.databricks.NotificationDestinationArgs;
    import com.pulumi.databricks.inputs.NotificationDestinationConfigArgs;
    import com.pulumi.databricks.inputs.NotificationDestinationConfigSlackArgs;
    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 ndresource = new NotificationDestination("ndresource", NotificationDestinationArgs.builder()
                .displayName("Notification Destination")
                .config(NotificationDestinationConfigArgs.builder()
                    .slack(NotificationDestinationConfigSlackArgs.builder()
                        .url("https://hooks.slack.com/services/...")
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      ndresource:
        type: databricks:NotificationDestination
        properties:
          displayName: Notification Destination
          config:
            slack:
              url: https://hooks.slack.com/services/...
    

    PagerDuty notification destination:

    import * as pulumi from "@pulumi/pulumi";
    import * as databricks from "@pulumi/databricks";
    
    const ndresource = new databricks.NotificationDestination("ndresource", {
        displayName: "Notification Destination",
        config: {
            pagerduty: {
                integrationKey: "xxxxxx",
            },
        },
    });
    
    import pulumi
    import pulumi_databricks as databricks
    
    ndresource = databricks.NotificationDestination("ndresource",
        display_name="Notification Destination",
        config={
            "pagerduty": {
                "integration_key": "xxxxxx",
            },
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-databricks/sdk/go/databricks"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := databricks.NewNotificationDestination(ctx, "ndresource", &databricks.NotificationDestinationArgs{
    			DisplayName: pulumi.String("Notification Destination"),
    			Config: &databricks.NotificationDestinationConfigArgs{
    				Pagerduty: &databricks.NotificationDestinationConfigPagerdutyArgs{
    					IntegrationKey: pulumi.String("xxxxxx"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Databricks = Pulumi.Databricks;
    
    return await Deployment.RunAsync(() => 
    {
        var ndresource = new Databricks.NotificationDestination("ndresource", new()
        {
            DisplayName = "Notification Destination",
            Config = new Databricks.Inputs.NotificationDestinationConfigArgs
            {
                Pagerduty = new Databricks.Inputs.NotificationDestinationConfigPagerdutyArgs
                {
                    IntegrationKey = "xxxxxx",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.databricks.NotificationDestination;
    import com.pulumi.databricks.NotificationDestinationArgs;
    import com.pulumi.databricks.inputs.NotificationDestinationConfigArgs;
    import com.pulumi.databricks.inputs.NotificationDestinationConfigPagerdutyArgs;
    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 ndresource = new NotificationDestination("ndresource", NotificationDestinationArgs.builder()
                .displayName("Notification Destination")
                .config(NotificationDestinationConfigArgs.builder()
                    .pagerduty(NotificationDestinationConfigPagerdutyArgs.builder()
                        .integrationKey("xxxxxx")
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      ndresource:
        type: databricks:NotificationDestination
        properties:
          displayName: Notification Destination
          config:
            pagerduty:
              integrationKey: xxxxxx
    

    Microsoft Teams notification destination:

    import * as pulumi from "@pulumi/pulumi";
    import * as databricks from "@pulumi/databricks";
    
    const ndresource = new databricks.NotificationDestination("ndresource", {
        displayName: "Notification Destination",
        config: {
            microsoftTeams: {
                url: "https://outlook.office.com/webhook/...",
            },
        },
    });
    
    import pulumi
    import pulumi_databricks as databricks
    
    ndresource = databricks.NotificationDestination("ndresource",
        display_name="Notification Destination",
        config={
            "microsoft_teams": {
                "url": "https://outlook.office.com/webhook/...",
            },
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-databricks/sdk/go/databricks"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := databricks.NewNotificationDestination(ctx, "ndresource", &databricks.NotificationDestinationArgs{
    			DisplayName: pulumi.String("Notification Destination"),
    			Config: &databricks.NotificationDestinationConfigArgs{
    				MicrosoftTeams: &databricks.NotificationDestinationConfigMicrosoftTeamsArgs{
    					Url: pulumi.String("https://outlook.office.com/webhook/..."),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Databricks = Pulumi.Databricks;
    
    return await Deployment.RunAsync(() => 
    {
        var ndresource = new Databricks.NotificationDestination("ndresource", new()
        {
            DisplayName = "Notification Destination",
            Config = new Databricks.Inputs.NotificationDestinationConfigArgs
            {
                MicrosoftTeams = new Databricks.Inputs.NotificationDestinationConfigMicrosoftTeamsArgs
                {
                    Url = "https://outlook.office.com/webhook/...",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.databricks.NotificationDestination;
    import com.pulumi.databricks.NotificationDestinationArgs;
    import com.pulumi.databricks.inputs.NotificationDestinationConfigArgs;
    import com.pulumi.databricks.inputs.NotificationDestinationConfigMicrosoftTeamsArgs;
    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 ndresource = new NotificationDestination("ndresource", NotificationDestinationArgs.builder()
                .displayName("Notification Destination")
                .config(NotificationDestinationConfigArgs.builder()
                    .microsoftTeams(NotificationDestinationConfigMicrosoftTeamsArgs.builder()
                        .url("https://outlook.office.com/webhook/...")
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      ndresource:
        type: databricks:NotificationDestination
        properties:
          displayName: Notification Destination
          config:
            microsoftTeams:
              url: https://outlook.office.com/webhook/...
    

    Generic Webhook notification destination:

    import * as pulumi from "@pulumi/pulumi";
    import * as databricks from "@pulumi/databricks";
    
    const ndresource = new databricks.NotificationDestination("ndresource", {
        displayName: "Notification Destination",
        config: {
            genericWebhook: {
                url: "https://example.com/webhook",
                username: "username",
                password: "password",
            },
        },
    });
    
    import pulumi
    import pulumi_databricks as databricks
    
    ndresource = databricks.NotificationDestination("ndresource",
        display_name="Notification Destination",
        config={
            "generic_webhook": {
                "url": "https://example.com/webhook",
                "username": "username",
                "password": "password",
            },
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-databricks/sdk/go/databricks"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := databricks.NewNotificationDestination(ctx, "ndresource", &databricks.NotificationDestinationArgs{
    			DisplayName: pulumi.String("Notification Destination"),
    			Config: &databricks.NotificationDestinationConfigArgs{
    				GenericWebhook: &databricks.NotificationDestinationConfigGenericWebhookArgs{
    					Url:      pulumi.String("https://example.com/webhook"),
    					Username: pulumi.String("username"),
    					Password: pulumi.String("password"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Databricks = Pulumi.Databricks;
    
    return await Deployment.RunAsync(() => 
    {
        var ndresource = new Databricks.NotificationDestination("ndresource", new()
        {
            DisplayName = "Notification Destination",
            Config = new Databricks.Inputs.NotificationDestinationConfigArgs
            {
                GenericWebhook = new Databricks.Inputs.NotificationDestinationConfigGenericWebhookArgs
                {
                    Url = "https://example.com/webhook",
                    Username = "username",
                    Password = "password",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.databricks.NotificationDestination;
    import com.pulumi.databricks.NotificationDestinationArgs;
    import com.pulumi.databricks.inputs.NotificationDestinationConfigArgs;
    import com.pulumi.databricks.inputs.NotificationDestinationConfigGenericWebhookArgs;
    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 ndresource = new NotificationDestination("ndresource", NotificationDestinationArgs.builder()
                .displayName("Notification Destination")
                .config(NotificationDestinationConfigArgs.builder()
                    .genericWebhook(NotificationDestinationConfigGenericWebhookArgs.builder()
                        .url("https://example.com/webhook")
                        .username("username")
                        .password("password")
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      ndresource:
        type: databricks:NotificationDestination
        properties:
          displayName: Notification Destination
          config:
            genericWebhook:
              url: https://example.com/webhook
              username: username
              password: password
    

    Create NotificationDestination Resource

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

    Constructor syntax

    new NotificationDestination(name: string, args: NotificationDestinationArgs, opts?: CustomResourceOptions);
    @overload
    def NotificationDestination(resource_name: str,
                                args: NotificationDestinationArgs,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def NotificationDestination(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                display_name: Optional[str] = None,
                                config: Optional[NotificationDestinationConfigArgs] = None,
                                destination_type: Optional[str] = None)
    func NewNotificationDestination(ctx *Context, name string, args NotificationDestinationArgs, opts ...ResourceOption) (*NotificationDestination, error)
    public NotificationDestination(string name, NotificationDestinationArgs args, CustomResourceOptions? opts = null)
    public NotificationDestination(String name, NotificationDestinationArgs args)
    public NotificationDestination(String name, NotificationDestinationArgs args, CustomResourceOptions options)
    
    type: databricks:NotificationDestination
    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 NotificationDestinationArgs
    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 NotificationDestinationArgs
    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 NotificationDestinationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NotificationDestinationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NotificationDestinationArgs
    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 notificationDestinationResource = new Databricks.NotificationDestination("notificationDestinationResource", new()
    {
        DisplayName = "string",
        Config = new Databricks.Inputs.NotificationDestinationConfigArgs
        {
            Email = new Databricks.Inputs.NotificationDestinationConfigEmailArgs
            {
                Addresses = new[]
                {
                    "string",
                },
            },
            GenericWebhook = new Databricks.Inputs.NotificationDestinationConfigGenericWebhookArgs
            {
                Password = "string",
                PasswordSet = false,
                Url = "string",
                UrlSet = false,
                Username = "string",
                UsernameSet = false,
            },
            MicrosoftTeams = new Databricks.Inputs.NotificationDestinationConfigMicrosoftTeamsArgs
            {
                Url = "string",
                UrlSet = false,
            },
            Pagerduty = new Databricks.Inputs.NotificationDestinationConfigPagerdutyArgs
            {
                IntegrationKey = "string",
                IntegrationKeySet = false,
            },
            Slack = new Databricks.Inputs.NotificationDestinationConfigSlackArgs
            {
                Url = "string",
                UrlSet = false,
            },
        },
        DestinationType = "string",
    });
    
    example, err := databricks.NewNotificationDestination(ctx, "notificationDestinationResource", &databricks.NotificationDestinationArgs{
    	DisplayName: pulumi.String("string"),
    	Config: &databricks.NotificationDestinationConfigArgs{
    		Email: &databricks.NotificationDestinationConfigEmailArgs{
    			Addresses: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    		GenericWebhook: &databricks.NotificationDestinationConfigGenericWebhookArgs{
    			Password:    pulumi.String("string"),
    			PasswordSet: pulumi.Bool(false),
    			Url:         pulumi.String("string"),
    			UrlSet:      pulumi.Bool(false),
    			Username:    pulumi.String("string"),
    			UsernameSet: pulumi.Bool(false),
    		},
    		MicrosoftTeams: &databricks.NotificationDestinationConfigMicrosoftTeamsArgs{
    			Url:    pulumi.String("string"),
    			UrlSet: pulumi.Bool(false),
    		},
    		Pagerduty: &databricks.NotificationDestinationConfigPagerdutyArgs{
    			IntegrationKey:    pulumi.String("string"),
    			IntegrationKeySet: pulumi.Bool(false),
    		},
    		Slack: &databricks.NotificationDestinationConfigSlackArgs{
    			Url:    pulumi.String("string"),
    			UrlSet: pulumi.Bool(false),
    		},
    	},
    	DestinationType: pulumi.String("string"),
    })
    
    var notificationDestinationResource = new NotificationDestination("notificationDestinationResource", NotificationDestinationArgs.builder()
        .displayName("string")
        .config(NotificationDestinationConfigArgs.builder()
            .email(NotificationDestinationConfigEmailArgs.builder()
                .addresses("string")
                .build())
            .genericWebhook(NotificationDestinationConfigGenericWebhookArgs.builder()
                .password("string")
                .passwordSet(false)
                .url("string")
                .urlSet(false)
                .username("string")
                .usernameSet(false)
                .build())
            .microsoftTeams(NotificationDestinationConfigMicrosoftTeamsArgs.builder()
                .url("string")
                .urlSet(false)
                .build())
            .pagerduty(NotificationDestinationConfigPagerdutyArgs.builder()
                .integrationKey("string")
                .integrationKeySet(false)
                .build())
            .slack(NotificationDestinationConfigSlackArgs.builder()
                .url("string")
                .urlSet(false)
                .build())
            .build())
        .destinationType("string")
        .build());
    
    notification_destination_resource = databricks.NotificationDestination("notificationDestinationResource",
        display_name="string",
        config={
            "email": {
                "addresses": ["string"],
            },
            "generic_webhook": {
                "password": "string",
                "password_set": False,
                "url": "string",
                "url_set": False,
                "username": "string",
                "username_set": False,
            },
            "microsoft_teams": {
                "url": "string",
                "url_set": False,
            },
            "pagerduty": {
                "integration_key": "string",
                "integration_key_set": False,
            },
            "slack": {
                "url": "string",
                "url_set": False,
            },
        },
        destination_type="string")
    
    const notificationDestinationResource = new databricks.NotificationDestination("notificationDestinationResource", {
        displayName: "string",
        config: {
            email: {
                addresses: ["string"],
            },
            genericWebhook: {
                password: "string",
                passwordSet: false,
                url: "string",
                urlSet: false,
                username: "string",
                usernameSet: false,
            },
            microsoftTeams: {
                url: "string",
                urlSet: false,
            },
            pagerduty: {
                integrationKey: "string",
                integrationKeySet: false,
            },
            slack: {
                url: "string",
                urlSet: false,
            },
        },
        destinationType: "string",
    });
    
    type: databricks:NotificationDestination
    properties:
        config:
            email:
                addresses:
                    - string
            genericWebhook:
                password: string
                passwordSet: false
                url: string
                urlSet: false
                username: string
                usernameSet: false
            microsoftTeams:
                url: string
                urlSet: false
            pagerduty:
                integrationKey: string
                integrationKeySet: false
            slack:
                url: string
                urlSet: false
        destinationType: string
        displayName: string
    

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

    DisplayName string
    The display name of the Notification Destination.
    Config NotificationDestinationConfig
    The configuration of the Notification Destination. It must contain exactly one of the following blocks:
    DestinationType string
    the type of Notification Destination.
    DisplayName string
    The display name of the Notification Destination.
    Config NotificationDestinationConfigArgs
    The configuration of the Notification Destination. It must contain exactly one of the following blocks:
    DestinationType string
    the type of Notification Destination.
    displayName String
    The display name of the Notification Destination.
    config NotificationDestinationConfig
    The configuration of the Notification Destination. It must contain exactly one of the following blocks:
    destinationType String
    the type of Notification Destination.
    displayName string
    The display name of the Notification Destination.
    config NotificationDestinationConfig
    The configuration of the Notification Destination. It must contain exactly one of the following blocks:
    destinationType string
    the type of Notification Destination.
    display_name str
    The display name of the Notification Destination.
    config NotificationDestinationConfigArgs
    The configuration of the Notification Destination. It must contain exactly one of the following blocks:
    destination_type str
    the type of Notification Destination.
    displayName String
    The display name of the Notification Destination.
    config Property Map
    The configuration of the Notification Destination. It must contain exactly one of the following blocks:
    destinationType String
    the type of Notification Destination.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the NotificationDestination 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 NotificationDestination Resource

    Get an existing NotificationDestination 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?: NotificationDestinationState, opts?: CustomResourceOptions): NotificationDestination
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            config: Optional[NotificationDestinationConfigArgs] = None,
            destination_type: Optional[str] = None,
            display_name: Optional[str] = None) -> NotificationDestination
    func GetNotificationDestination(ctx *Context, name string, id IDInput, state *NotificationDestinationState, opts ...ResourceOption) (*NotificationDestination, error)
    public static NotificationDestination Get(string name, Input<string> id, NotificationDestinationState? state, CustomResourceOptions? opts = null)
    public static NotificationDestination get(String name, Output<String> id, NotificationDestinationState 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:
    Config NotificationDestinationConfig
    The configuration of the Notification Destination. It must contain exactly one of the following blocks:
    DestinationType string
    the type of Notification Destination.
    DisplayName string
    The display name of the Notification Destination.
    Config NotificationDestinationConfigArgs
    The configuration of the Notification Destination. It must contain exactly one of the following blocks:
    DestinationType string
    the type of Notification Destination.
    DisplayName string
    The display name of the Notification Destination.
    config NotificationDestinationConfig
    The configuration of the Notification Destination. It must contain exactly one of the following blocks:
    destinationType String
    the type of Notification Destination.
    displayName String
    The display name of the Notification Destination.
    config NotificationDestinationConfig
    The configuration of the Notification Destination. It must contain exactly one of the following blocks:
    destinationType string
    the type of Notification Destination.
    displayName string
    The display name of the Notification Destination.
    config NotificationDestinationConfigArgs
    The configuration of the Notification Destination. It must contain exactly one of the following blocks:
    destination_type str
    the type of Notification Destination.
    display_name str
    The display name of the Notification Destination.
    config Property Map
    The configuration of the Notification Destination. It must contain exactly one of the following blocks:
    destinationType String
    the type of Notification Destination.
    displayName String
    The display name of the Notification Destination.

    Supporting Types

    NotificationDestinationConfig, NotificationDestinationConfigArgs

    Email NotificationDestinationConfigEmail
    The email configuration of the Notification Destination. It must contain the following:
    GenericWebhook NotificationDestinationConfigGenericWebhook
    The Generic Webhook configuration of the Notification Destination. It must contain the following:
    MicrosoftTeams NotificationDestinationConfigMicrosoftTeams
    The Microsoft Teams configuration of the Notification Destination. It must contain the following:
    Pagerduty NotificationDestinationConfigPagerduty
    The PagerDuty configuration of the Notification Destination. It must contain the following:
    Slack NotificationDestinationConfigSlack
    The Slack configuration of the Notification Destination. It must contain the following:
    Email NotificationDestinationConfigEmail
    The email configuration of the Notification Destination. It must contain the following:
    GenericWebhook NotificationDestinationConfigGenericWebhook
    The Generic Webhook configuration of the Notification Destination. It must contain the following:
    MicrosoftTeams NotificationDestinationConfigMicrosoftTeams
    The Microsoft Teams configuration of the Notification Destination. It must contain the following:
    Pagerduty NotificationDestinationConfigPagerduty
    The PagerDuty configuration of the Notification Destination. It must contain the following:
    Slack NotificationDestinationConfigSlack
    The Slack configuration of the Notification Destination. It must contain the following:
    email NotificationDestinationConfigEmail
    The email configuration of the Notification Destination. It must contain the following:
    genericWebhook NotificationDestinationConfigGenericWebhook
    The Generic Webhook configuration of the Notification Destination. It must contain the following:
    microsoftTeams NotificationDestinationConfigMicrosoftTeams
    The Microsoft Teams configuration of the Notification Destination. It must contain the following:
    pagerduty NotificationDestinationConfigPagerduty
    The PagerDuty configuration of the Notification Destination. It must contain the following:
    slack NotificationDestinationConfigSlack
    The Slack configuration of the Notification Destination. It must contain the following:
    email NotificationDestinationConfigEmail
    The email configuration of the Notification Destination. It must contain the following:
    genericWebhook NotificationDestinationConfigGenericWebhook
    The Generic Webhook configuration of the Notification Destination. It must contain the following:
    microsoftTeams NotificationDestinationConfigMicrosoftTeams
    The Microsoft Teams configuration of the Notification Destination. It must contain the following:
    pagerduty NotificationDestinationConfigPagerduty
    The PagerDuty configuration of the Notification Destination. It must contain the following:
    slack NotificationDestinationConfigSlack
    The Slack configuration of the Notification Destination. It must contain the following:
    email NotificationDestinationConfigEmail
    The email configuration of the Notification Destination. It must contain the following:
    generic_webhook NotificationDestinationConfigGenericWebhook
    The Generic Webhook configuration of the Notification Destination. It must contain the following:
    microsoft_teams NotificationDestinationConfigMicrosoftTeams
    The Microsoft Teams configuration of the Notification Destination. It must contain the following:
    pagerduty NotificationDestinationConfigPagerduty
    The PagerDuty configuration of the Notification Destination. It must contain the following:
    slack NotificationDestinationConfigSlack
    The Slack configuration of the Notification Destination. It must contain the following:
    email Property Map
    The email configuration of the Notification Destination. It must contain the following:
    genericWebhook Property Map
    The Generic Webhook configuration of the Notification Destination. It must contain the following:
    microsoftTeams Property Map
    The Microsoft Teams configuration of the Notification Destination. It must contain the following:
    pagerduty Property Map
    The PagerDuty configuration of the Notification Destination. It must contain the following:
    slack Property Map
    The Slack configuration of the Notification Destination. It must contain the following:

    NotificationDestinationConfigEmail, NotificationDestinationConfigEmailArgs

    Addresses List<string>
    The list of email addresses to send notifications to.
    Addresses []string
    The list of email addresses to send notifications to.
    addresses List<String>
    The list of email addresses to send notifications to.
    addresses string[]
    The list of email addresses to send notifications to.
    addresses Sequence[str]
    The list of email addresses to send notifications to.
    addresses List<String>
    The list of email addresses to send notifications to.

    NotificationDestinationConfigGenericWebhook, NotificationDestinationConfigGenericWebhookArgs

    Password string

    The password for basic authentication.

    NOTE If the type of notification destination is changed, the existing notification destination will be deleted and a new notification destination will be created with the new type.

    PasswordSet bool
    Url string
    The Generic Webhook URL.
    UrlSet bool
    Username string
    The username for basic authentication.
    UsernameSet bool
    Password string

    The password for basic authentication.

    NOTE If the type of notification destination is changed, the existing notification destination will be deleted and a new notification destination will be created with the new type.

    PasswordSet bool
    Url string
    The Generic Webhook URL.
    UrlSet bool
    Username string
    The username for basic authentication.
    UsernameSet bool
    password String

    The password for basic authentication.

    NOTE If the type of notification destination is changed, the existing notification destination will be deleted and a new notification destination will be created with the new type.

    passwordSet Boolean
    url String
    The Generic Webhook URL.
    urlSet Boolean
    username String
    The username for basic authentication.
    usernameSet Boolean
    password string

    The password for basic authentication.

    NOTE If the type of notification destination is changed, the existing notification destination will be deleted and a new notification destination will be created with the new type.

    passwordSet boolean
    url string
    The Generic Webhook URL.
    urlSet boolean
    username string
    The username for basic authentication.
    usernameSet boolean
    password str

    The password for basic authentication.

    NOTE If the type of notification destination is changed, the existing notification destination will be deleted and a new notification destination will be created with the new type.

    password_set bool
    url str
    The Generic Webhook URL.
    url_set bool
    username str
    The username for basic authentication.
    username_set bool
    password String

    The password for basic authentication.

    NOTE If the type of notification destination is changed, the existing notification destination will be deleted and a new notification destination will be created with the new type.

    passwordSet Boolean
    url String
    The Generic Webhook URL.
    urlSet Boolean
    username String
    The username for basic authentication.
    usernameSet Boolean

    NotificationDestinationConfigMicrosoftTeams, NotificationDestinationConfigMicrosoftTeamsArgs

    Url string
    The Microsoft Teams webhook URL.
    UrlSet bool
    Url string
    The Microsoft Teams webhook URL.
    UrlSet bool
    url String
    The Microsoft Teams webhook URL.
    urlSet Boolean
    url string
    The Microsoft Teams webhook URL.
    urlSet boolean
    url str
    The Microsoft Teams webhook URL.
    url_set bool
    url String
    The Microsoft Teams webhook URL.
    urlSet Boolean

    NotificationDestinationConfigPagerduty, NotificationDestinationConfigPagerdutyArgs

    IntegrationKey string
    The PagerDuty integration key.
    IntegrationKeySet bool
    IntegrationKey string
    The PagerDuty integration key.
    IntegrationKeySet bool
    integrationKey String
    The PagerDuty integration key.
    integrationKeySet Boolean
    integrationKey string
    The PagerDuty integration key.
    integrationKeySet boolean
    integration_key str
    The PagerDuty integration key.
    integration_key_set bool
    integrationKey String
    The PagerDuty integration key.
    integrationKeySet Boolean

    NotificationDestinationConfigSlack, NotificationDestinationConfigSlackArgs

    Url string
    The Slack webhook URL.
    UrlSet bool
    Url string
    The Slack webhook URL.
    UrlSet bool
    url String
    The Slack webhook URL.
    urlSet Boolean
    url string
    The Slack webhook URL.
    urlSet boolean
    url str
    The Slack webhook URL.
    url_set bool
    url String
    The Slack webhook URL.
    urlSet Boolean

    Package Details

    Repository
    databricks pulumi/pulumi-databricks
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the databricks Terraform Provider.
    databricks logo
    Databricks v1.56.0 published on Tuesday, Nov 12, 2024 by Pulumi