1. Registry
  2. Packages
  3. Vercel Provider
  4. API Docs
  5. AlertRuleSlackNotification
Viewing docs for Vercel v5.21.1
published on Thursday, Oct 15, 2026 by Pulumiverse
vercel logo vercel logo
Viewing docs for Vercel v5.21.1
published on Thursday, Oct 15, 2026 by Pulumiverse

    Manages a link between a Vercel alert rule and one Slack channel.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as vercel from "@pulumiverse/vercel";
    
    const alerts = new vercel.AlertRuleSlackNotification("alerts", {
        alertRuleId: "ar_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
        slackChannelId: "C0123456789",
    });
    
    import pulumi
    import pulumiverse_vercel as vercel
    
    alerts = vercel.AlertRuleSlackNotification("alerts",
        alert_rule_id="ar_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
        slack_channel_id="C0123456789")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-vercel/sdk/v5/go/vercel"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := vercel.NewAlertRuleSlackNotification(ctx, "alerts", &vercel.AlertRuleSlackNotificationArgs{
    			AlertRuleId:    pulumi.String("ar_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"),
    			SlackChannelId: pulumi.String("C0123456789"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Vercel = Pulumiverse.Vercel;
    
    return await Deployment.RunAsync(() => 
    {
        var alerts = new Vercel.AlertRuleSlackNotification("alerts", new()
        {
            AlertRuleId = "ar_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
            SlackChannelId = "C0123456789",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumiverse.vercel.AlertRuleSlackNotification;
    import com.pulumiverse.vercel.AlertRuleSlackNotificationArgs;
    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 alerts = new AlertRuleSlackNotification("alerts", AlertRuleSlackNotificationArgs.builder()
                .alertRuleId("ar_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")
                .slackChannelId("C0123456789")
                .build());
    
        }
    }
    
    resources:
      alerts:
        type: vercel:AlertRuleSlackNotification
        properties:
          alertRuleId: ar_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
          slackChannelId: C0123456789
    
    Example coming soon!
    

    Destination requirements

    Each resource owns one link. Do not manage the same alert-rule and Slack destination pair in multiple Terraform resources or states.

    If the team has exactly one completed Slack installation, slack_installation_id can be omitted and the provider stores the installation selected by the API in state. Teams with multiple Slack installations must configure slack_installation_id explicitly. The Vercel bot must already be invited to private channels.

    The special ar_default alert rule ID is supported even though the default rule itself cannot be managed by vercel.AlertRule.

    Create AlertRuleSlackNotification Resource

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

    Constructor syntax

    new AlertRuleSlackNotification(name: string, args: AlertRuleSlackNotificationArgs, opts?: CustomResourceOptions);
    @overload
    def AlertRuleSlackNotification(resource_name: str,
                                   args: AlertRuleSlackNotificationArgs,
                                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def AlertRuleSlackNotification(resource_name: str,
                                   opts: Optional[ResourceOptions] = None,
                                   alert_rule_id: Optional[str] = None,
                                   slack_channel_id: Optional[str] = None,
                                   minimum_severity_level: Optional[str] = None,
                                   slack_installation_id: Optional[str] = None,
                                   team_id: Optional[str] = None)
    func NewAlertRuleSlackNotification(ctx *Context, name string, args AlertRuleSlackNotificationArgs, opts ...ResourceOption) (*AlertRuleSlackNotification, error)
    public AlertRuleSlackNotification(string name, AlertRuleSlackNotificationArgs args, CustomResourceOptions? opts = null)
    public AlertRuleSlackNotification(String name, AlertRuleSlackNotificationArgs args)
    public AlertRuleSlackNotification(String name, AlertRuleSlackNotificationArgs args, CustomResourceOptions options)
    
    type: vercel:AlertRuleSlackNotification
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "vercel_alert_rule_slack_notification" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args AlertRuleSlackNotificationArgs
    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 AlertRuleSlackNotificationArgs
    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 AlertRuleSlackNotificationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AlertRuleSlackNotificationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AlertRuleSlackNotificationArgs
    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 alertRuleSlackNotificationResource = new Vercel.AlertRuleSlackNotification("alertRuleSlackNotificationResource", new()
    {
        AlertRuleId = "string",
        SlackChannelId = "string",
        MinimumSeverityLevel = "string",
        SlackInstallationId = "string",
        TeamId = "string",
    });
    
    example, err := vercel.NewAlertRuleSlackNotification(ctx, "alertRuleSlackNotificationResource", &vercel.AlertRuleSlackNotificationArgs{
    	AlertRuleId:          pulumi.String("string"),
    	SlackChannelId:       pulumi.String("string"),
    	MinimumSeverityLevel: pulumi.String("string"),
    	SlackInstallationId:  pulumi.String("string"),
    	TeamId:               pulumi.String("string"),
    })
    
    resource "vercel_alert_rule_slack_notification" "alertRuleSlackNotificationResource" {
      lifecycle {
        create_before_destroy = true
      }
      alert_rule_id          = "string"
      slack_channel_id       = "string"
      minimum_severity_level = "string"
      slack_installation_id  = "string"
      team_id                = "string"
    }
    
    var alertRuleSlackNotificationResource = new AlertRuleSlackNotification("alertRuleSlackNotificationResource", AlertRuleSlackNotificationArgs.builder()
        .alertRuleId("string")
        .slackChannelId("string")
        .minimumSeverityLevel("string")
        .slackInstallationId("string")
        .teamId("string")
        .build());
    
    alert_rule_slack_notification_resource = vercel.AlertRuleSlackNotification("alertRuleSlackNotificationResource",
        alert_rule_id="string",
        slack_channel_id="string",
        minimum_severity_level="string",
        slack_installation_id="string",
        team_id="string")
    
    const alertRuleSlackNotificationResource = new vercel.AlertRuleSlackNotification("alertRuleSlackNotificationResource", {
        alertRuleId: "string",
        slackChannelId: "string",
        minimumSeverityLevel: "string",
        slackInstallationId: "string",
        teamId: "string",
    });
    
    type: vercel:AlertRuleSlackNotification
    properties:
        alertRuleId: string
        minimumSeverityLevel: string
        slackChannelId: string
        slackInstallationId: string
        teamId: string
    

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

    AlertRuleId string
    The ID of the alert rule. Use ar_default to manage a notification destination for the team's default rule.
    SlackChannelId string
    The ID of the Slack channel.
    MinimumSeverityLevel string
    Set to critical to notify this destination only when an alert is classified as Critical. For custom alert rules, Critical is assigned after the agent investigation completes. Omit to notify this destination at every severity.
    SlackInstallationId string
    The ID of the completed Slack integration installation that owns the channel. It can be omitted when the team has exactly one completed Slack installation; the resolved ID is then stored in state. It must be configured when the team has multiple Slack installations.
    TeamId string
    The ID of the team that owns the alert rule and notification destination. Required if a default team is not configured in the provider.
    AlertRuleId string
    The ID of the alert rule. Use ar_default to manage a notification destination for the team's default rule.
    SlackChannelId string
    The ID of the Slack channel.
    MinimumSeverityLevel string
    Set to critical to notify this destination only when an alert is classified as Critical. For custom alert rules, Critical is assigned after the agent investigation completes. Omit to notify this destination at every severity.
    SlackInstallationId string
    The ID of the completed Slack integration installation that owns the channel. It can be omitted when the team has exactly one completed Slack installation; the resolved ID is then stored in state. It must be configured when the team has multiple Slack installations.
    TeamId string
    The ID of the team that owns the alert rule and notification destination. Required if a default team is not configured in the provider.
    alert_rule_id string
    The ID of the alert rule. Use ar_default to manage a notification destination for the team's default rule.
    slack_channel_id string
    The ID of the Slack channel.
    minimum_severity_level string
    Set to critical to notify this destination only when an alert is classified as Critical. For custom alert rules, Critical is assigned after the agent investigation completes. Omit to notify this destination at every severity.
    slack_installation_id string
    The ID of the completed Slack integration installation that owns the channel. It can be omitted when the team has exactly one completed Slack installation; the resolved ID is then stored in state. It must be configured when the team has multiple Slack installations.
    team_id string
    The ID of the team that owns the alert rule and notification destination. Required if a default team is not configured in the provider.
    alertRuleId String
    The ID of the alert rule. Use ar_default to manage a notification destination for the team's default rule.
    slackChannelId String
    The ID of the Slack channel.
    minimumSeverityLevel String
    Set to critical to notify this destination only when an alert is classified as Critical. For custom alert rules, Critical is assigned after the agent investigation completes. Omit to notify this destination at every severity.
    slackInstallationId String
    The ID of the completed Slack integration installation that owns the channel. It can be omitted when the team has exactly one completed Slack installation; the resolved ID is then stored in state. It must be configured when the team has multiple Slack installations.
    teamId String
    The ID of the team that owns the alert rule and notification destination. Required if a default team is not configured in the provider.
    alertRuleId string
    The ID of the alert rule. Use ar_default to manage a notification destination for the team's default rule.
    slackChannelId string
    The ID of the Slack channel.
    minimumSeverityLevel string
    Set to critical to notify this destination only when an alert is classified as Critical. For custom alert rules, Critical is assigned after the agent investigation completes. Omit to notify this destination at every severity.
    slackInstallationId string
    The ID of the completed Slack integration installation that owns the channel. It can be omitted when the team has exactly one completed Slack installation; the resolved ID is then stored in state. It must be configured when the team has multiple Slack installations.
    teamId string
    The ID of the team that owns the alert rule and notification destination. Required if a default team is not configured in the provider.
    alert_rule_id str
    The ID of the alert rule. Use ar_default to manage a notification destination for the team's default rule.
    slack_channel_id str
    The ID of the Slack channel.
    minimum_severity_level str
    Set to critical to notify this destination only when an alert is classified as Critical. For custom alert rules, Critical is assigned after the agent investigation completes. Omit to notify this destination at every severity.
    slack_installation_id str
    The ID of the completed Slack integration installation that owns the channel. It can be omitted when the team has exactly one completed Slack installation; the resolved ID is then stored in state. It must be configured when the team has multiple Slack installations.
    team_id str
    The ID of the team that owns the alert rule and notification destination. Required if a default team is not configured in the provider.
    alertRuleId String
    The ID of the alert rule. Use ar_default to manage a notification destination for the team's default rule.
    slackChannelId String
    The ID of the Slack channel.
    minimumSeverityLevel String
    Set to critical to notify this destination only when an alert is classified as Critical. For custom alert rules, Critical is assigned after the agent investigation completes. Omit to notify this destination at every severity.
    slackInstallationId String
    The ID of the completed Slack integration installation that owns the channel. It can be omitted when the team has exactly one completed Slack installation; the resolved ID is then stored in state. It must be configured when the team has multiple Slack installations.
    teamId String
    The ID of the team that owns the alert rule and notification destination. Required if a default team is not configured in the provider.

    Outputs

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

    Get an existing AlertRuleSlackNotification 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?: AlertRuleSlackNotificationState, opts?: CustomResourceOptions): AlertRuleSlackNotification
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            alert_rule_id: Optional[str] = None,
            minimum_severity_level: Optional[str] = None,
            slack_channel_id: Optional[str] = None,
            slack_installation_id: Optional[str] = None,
            team_id: Optional[str] = None) -> AlertRuleSlackNotification
    func GetAlertRuleSlackNotification(ctx *Context, name string, id IDInput, state *AlertRuleSlackNotificationState, opts ...ResourceOption) (*AlertRuleSlackNotification, error)
    public static AlertRuleSlackNotification Get(string name, Input<string> id, AlertRuleSlackNotificationState? state, CustomResourceOptions? opts = null)
    public static AlertRuleSlackNotification get(String name, Output<String> id, AlertRuleSlackNotificationState state, CustomResourceOptions options)
    resources:  _:    type: vercel:AlertRuleSlackNotification    get:      id: ${id}
    import {
      to = vercel_alert_rule_slack_notification.example
      id = "${id}"
    }
    
    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:
    AlertRuleId string
    The ID of the alert rule. Use ar_default to manage a notification destination for the team's default rule.
    MinimumSeverityLevel string
    Set to critical to notify this destination only when an alert is classified as Critical. For custom alert rules, Critical is assigned after the agent investigation completes. Omit to notify this destination at every severity.
    SlackChannelId string
    The ID of the Slack channel.
    SlackInstallationId string
    The ID of the completed Slack integration installation that owns the channel. It can be omitted when the team has exactly one completed Slack installation; the resolved ID is then stored in state. It must be configured when the team has multiple Slack installations.
    TeamId string
    The ID of the team that owns the alert rule and notification destination. Required if a default team is not configured in the provider.
    AlertRuleId string
    The ID of the alert rule. Use ar_default to manage a notification destination for the team's default rule.
    MinimumSeverityLevel string
    Set to critical to notify this destination only when an alert is classified as Critical. For custom alert rules, Critical is assigned after the agent investigation completes. Omit to notify this destination at every severity.
    SlackChannelId string
    The ID of the Slack channel.
    SlackInstallationId string
    The ID of the completed Slack integration installation that owns the channel. It can be omitted when the team has exactly one completed Slack installation; the resolved ID is then stored in state. It must be configured when the team has multiple Slack installations.
    TeamId string
    The ID of the team that owns the alert rule and notification destination. Required if a default team is not configured in the provider.
    alert_rule_id string
    The ID of the alert rule. Use ar_default to manage a notification destination for the team's default rule.
    minimum_severity_level string
    Set to critical to notify this destination only when an alert is classified as Critical. For custom alert rules, Critical is assigned after the agent investigation completes. Omit to notify this destination at every severity.
    slack_channel_id string
    The ID of the Slack channel.
    slack_installation_id string
    The ID of the completed Slack integration installation that owns the channel. It can be omitted when the team has exactly one completed Slack installation; the resolved ID is then stored in state. It must be configured when the team has multiple Slack installations.
    team_id string
    The ID of the team that owns the alert rule and notification destination. Required if a default team is not configured in the provider.
    alertRuleId String
    The ID of the alert rule. Use ar_default to manage a notification destination for the team's default rule.
    minimumSeverityLevel String
    Set to critical to notify this destination only when an alert is classified as Critical. For custom alert rules, Critical is assigned after the agent investigation completes. Omit to notify this destination at every severity.
    slackChannelId String
    The ID of the Slack channel.
    slackInstallationId String
    The ID of the completed Slack integration installation that owns the channel. It can be omitted when the team has exactly one completed Slack installation; the resolved ID is then stored in state. It must be configured when the team has multiple Slack installations.
    teamId String
    The ID of the team that owns the alert rule and notification destination. Required if a default team is not configured in the provider.
    alertRuleId string
    The ID of the alert rule. Use ar_default to manage a notification destination for the team's default rule.
    minimumSeverityLevel string
    Set to critical to notify this destination only when an alert is classified as Critical. For custom alert rules, Critical is assigned after the agent investigation completes. Omit to notify this destination at every severity.
    slackChannelId string
    The ID of the Slack channel.
    slackInstallationId string
    The ID of the completed Slack integration installation that owns the channel. It can be omitted when the team has exactly one completed Slack installation; the resolved ID is then stored in state. It must be configured when the team has multiple Slack installations.
    teamId string
    The ID of the team that owns the alert rule and notification destination. Required if a default team is not configured in the provider.
    alert_rule_id str
    The ID of the alert rule. Use ar_default to manage a notification destination for the team's default rule.
    minimum_severity_level str
    Set to critical to notify this destination only when an alert is classified as Critical. For custom alert rules, Critical is assigned after the agent investigation completes. Omit to notify this destination at every severity.
    slack_channel_id str
    The ID of the Slack channel.
    slack_installation_id str
    The ID of the completed Slack integration installation that owns the channel. It can be omitted when the team has exactly one completed Slack installation; the resolved ID is then stored in state. It must be configured when the team has multiple Slack installations.
    team_id str
    The ID of the team that owns the alert rule and notification destination. Required if a default team is not configured in the provider.
    alertRuleId String
    The ID of the alert rule. Use ar_default to manage a notification destination for the team's default rule.
    minimumSeverityLevel String
    Set to critical to notify this destination only when an alert is classified as Critical. For custom alert rules, Critical is assigned after the agent investigation completes. Omit to notify this destination at every severity.
    slackChannelId String
    The ID of the Slack channel.
    slackInstallationId String
    The ID of the completed Slack integration installation that owns the channel. It can be omitted when the team has exactly one completed Slack installation; the resolved ID is then stored in state. It must be configured when the team has multiple Slack installations.
    teamId String
    The ID of the team that owns the alert rule and notification destination. Required if a default team is not configured in the provider.

    Import

    The pulumi import command can be used, for example:

    If a default team is configured in the provider, import using:

    $ pulumi import vercel:index/alertRuleSlackNotification:AlertRuleSlackNotification alerts ar_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/icfg_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/C0123456789
    

    Otherwise, prefix the import ID with the team ID:

    $ pulumi import vercel:index/alertRuleSlackNotification:AlertRuleSlackNotification alerts team_xxxxxxxxxxxxxxxxxxxxxxxx/ar_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/icfg_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/C0123456789
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    vercel pulumiverse/pulumi-vercel
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the vercel Terraform Provider.
    vercel logo vercel logo
    Viewing docs for Vercel v5.21.1
    published on Thursday, Oct 15, 2026 by Pulumiverse

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial