1. Packages
  2. Pagerduty Provider
  3. API Docs
  4. SlackConnection
PagerDuty v4.23.1 published on Tuesday, Apr 22, 2025 by Pulumi

pagerduty.SlackConnection

Explore with Pulumi AI

A slack connection allows you to connect a workspace in Slack to a PagerDuty service or team which allows you to acknowledge and resolve PagerDuty incidents from the Slack user interface.

NOTES for using this resource:

  • To first use this resource you will need to map your PagerDuty account to a valid Slack Workspace. This can only be done through the PagerDuty UI.
  • This resource requires a PagerDuty user-level API key. This can be set as the user_token on the provider tag or as the PAGERDUTY_USER_TOKEN environment variable.
  • This resource is for configuring Slack V2 Next Generation connections. If you configured your Slack integration (V1 or V2) prior to August 10, 2021, you may migrate to the Slack V2 Next Generation update using this migration instructions, but if you configured your Slack integration after that date, you will have access to the update out of the box.

Example Usage

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

const foo = new pagerduty.Team("foo", {name: "Team Foo"});
const p1 = pagerduty.getPriority({
    name: "P1",
});
const fooSlackConnection = new pagerduty.SlackConnection("foo", {
    sourceId: foo.id,
    sourceType: "team_reference",
    workspaceId: "T02A123LV1A",
    channelId: "C02CABCDAC9",
    notificationType: "responder",
    configs: [{
        events: [
            "incident.triggered",
            "incident.acknowledged",
            "incident.escalated",
            "incident.resolved",
            "incident.reassigned",
            "incident.annotated",
            "incident.unacknowledged",
            "incident.delegated",
            "incident.priority_updated",
            "incident.responder.added",
            "incident.responder.replied",
            "incident.status_update_published",
            "incident.reopened",
        ],
        priorities: [p1.then(p1 => p1.id)],
    }],
});
Copy
import pulumi
import pulumi_pagerduty as pagerduty

foo = pagerduty.Team("foo", name="Team Foo")
p1 = pagerduty.get_priority(name="P1")
foo_slack_connection = pagerduty.SlackConnection("foo",
    source_id=foo.id,
    source_type="team_reference",
    workspace_id="T02A123LV1A",
    channel_id="C02CABCDAC9",
    notification_type="responder",
    configs=[{
        "events": [
            "incident.triggered",
            "incident.acknowledged",
            "incident.escalated",
            "incident.resolved",
            "incident.reassigned",
            "incident.annotated",
            "incident.unacknowledged",
            "incident.delegated",
            "incident.priority_updated",
            "incident.responder.added",
            "incident.responder.replied",
            "incident.status_update_published",
            "incident.reopened",
        ],
        "priorities": [p1.id],
    }])
Copy
package main

import (
	"github.com/pulumi/pulumi-pagerduty/sdk/v4/go/pagerduty"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		foo, err := pagerduty.NewTeam(ctx, "foo", &pagerduty.TeamArgs{
			Name: pulumi.String("Team Foo"),
		})
		if err != nil {
			return err
		}
		p1, err := pagerduty.GetPriority(ctx, &pagerduty.GetPriorityArgs{
			Name: "P1",
		}, nil)
		if err != nil {
			return err
		}
		_, err = pagerduty.NewSlackConnection(ctx, "foo", &pagerduty.SlackConnectionArgs{
			SourceId:         foo.ID(),
			SourceType:       pulumi.String("team_reference"),
			WorkspaceId:      pulumi.String("T02A123LV1A"),
			ChannelId:        pulumi.String("C02CABCDAC9"),
			NotificationType: pulumi.String("responder"),
			Configs: pagerduty.SlackConnectionConfigArray{
				&pagerduty.SlackConnectionConfigArgs{
					Events: pulumi.StringArray{
						pulumi.String("incident.triggered"),
						pulumi.String("incident.acknowledged"),
						pulumi.String("incident.escalated"),
						pulumi.String("incident.resolved"),
						pulumi.String("incident.reassigned"),
						pulumi.String("incident.annotated"),
						pulumi.String("incident.unacknowledged"),
						pulumi.String("incident.delegated"),
						pulumi.String("incident.priority_updated"),
						pulumi.String("incident.responder.added"),
						pulumi.String("incident.responder.replied"),
						pulumi.String("incident.status_update_published"),
						pulumi.String("incident.reopened"),
					},
					Priorities: pulumi.StringArray{
						pulumi.String(p1.Id),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Pagerduty = Pulumi.Pagerduty;

return await Deployment.RunAsync(() => 
{
    var foo = new Pagerduty.Team("foo", new()
    {
        Name = "Team Foo",
    });

    var p1 = Pagerduty.GetPriority.Invoke(new()
    {
        Name = "P1",
    });

    var fooSlackConnection = new Pagerduty.SlackConnection("foo", new()
    {
        SourceId = foo.Id,
        SourceType = "team_reference",
        WorkspaceId = "T02A123LV1A",
        ChannelId = "C02CABCDAC9",
        NotificationType = "responder",
        Configs = new[]
        {
            new Pagerduty.Inputs.SlackConnectionConfigArgs
            {
                Events = new[]
                {
                    "incident.triggered",
                    "incident.acknowledged",
                    "incident.escalated",
                    "incident.resolved",
                    "incident.reassigned",
                    "incident.annotated",
                    "incident.unacknowledged",
                    "incident.delegated",
                    "incident.priority_updated",
                    "incident.responder.added",
                    "incident.responder.replied",
                    "incident.status_update_published",
                    "incident.reopened",
                },
                Priorities = new[]
                {
                    p1.Apply(getPriorityResult => getPriorityResult.Id),
                },
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.pagerduty.Team;
import com.pulumi.pagerduty.TeamArgs;
import com.pulumi.pagerduty.PagerdutyFunctions;
import com.pulumi.pagerduty.inputs.GetPriorityArgs;
import com.pulumi.pagerduty.SlackConnection;
import com.pulumi.pagerduty.SlackConnectionArgs;
import com.pulumi.pagerduty.inputs.SlackConnectionConfigArgs;
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 foo = new Team("foo", TeamArgs.builder()
            .name("Team Foo")
            .build());

        final var p1 = PagerdutyFunctions.getPriority(GetPriorityArgs.builder()
            .name("P1")
            .build());

        var fooSlackConnection = new SlackConnection("fooSlackConnection", SlackConnectionArgs.builder()
            .sourceId(foo.id())
            .sourceType("team_reference")
            .workspaceId("T02A123LV1A")
            .channelId("C02CABCDAC9")
            .notificationType("responder")
            .configs(SlackConnectionConfigArgs.builder()
                .events(                
                    "incident.triggered",
                    "incident.acknowledged",
                    "incident.escalated",
                    "incident.resolved",
                    "incident.reassigned",
                    "incident.annotated",
                    "incident.unacknowledged",
                    "incident.delegated",
                    "incident.priority_updated",
                    "incident.responder.added",
                    "incident.responder.replied",
                    "incident.status_update_published",
                    "incident.reopened")
                .priorities(p1.id())
                .build())
            .build());

    }
}
Copy
resources:
  foo:
    type: pagerduty:Team
    properties:
      name: Team Foo
  fooSlackConnection:
    type: pagerduty:SlackConnection
    name: foo
    properties:
      sourceId: ${foo.id}
      sourceType: team_reference
      workspaceId: T02A123LV1A
      channelId: C02CABCDAC9
      notificationType: responder
      configs:
        - events:
            - incident.triggered
            - incident.acknowledged
            - incident.escalated
            - incident.resolved
            - incident.reassigned
            - incident.annotated
            - incident.unacknowledged
            - incident.delegated
            - incident.priority_updated
            - incident.responder.added
            - incident.responder.replied
            - incident.status_update_published
            - incident.reopened
          priorities:
            - ${p1.id}
variables:
  p1:
    fn::invoke:
      function: pagerduty:getPriority
      arguments:
        name: P1
Copy

Create SlackConnection Resource

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

Constructor syntax

new SlackConnection(name: string, args: SlackConnectionArgs, opts?: CustomResourceOptions);
@overload
def SlackConnection(resource_name: str,
                    args: SlackConnectionArgs,
                    opts: Optional[ResourceOptions] = None)

@overload
def SlackConnection(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    channel_id: Optional[str] = None,
                    configs: Optional[Sequence[SlackConnectionConfigArgs]] = None,
                    notification_type: Optional[str] = None,
                    source_id: Optional[str] = None,
                    source_type: Optional[str] = None,
                    workspace_id: Optional[str] = None)
func NewSlackConnection(ctx *Context, name string, args SlackConnectionArgs, opts ...ResourceOption) (*SlackConnection, error)
public SlackConnection(string name, SlackConnectionArgs args, CustomResourceOptions? opts = null)
public SlackConnection(String name, SlackConnectionArgs args)
public SlackConnection(String name, SlackConnectionArgs args, CustomResourceOptions options)
type: pagerduty:SlackConnection
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. SlackConnectionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. SlackConnectionArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. SlackConnectionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. SlackConnectionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. SlackConnectionArgs
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 slackConnectionResource = new Pagerduty.SlackConnection("slackConnectionResource", new()
{
    ChannelId = "string",
    Configs = new[]
    {
        new Pagerduty.Inputs.SlackConnectionConfigArgs
        {
            Events = new[]
            {
                "string",
            },
            Priorities = new[]
            {
                "string",
            },
            Urgency = "string",
        },
    },
    NotificationType = "string",
    SourceId = "string",
    SourceType = "string",
    WorkspaceId = "string",
});
Copy
example, err := pagerduty.NewSlackConnection(ctx, "slackConnectionResource", &pagerduty.SlackConnectionArgs{
	ChannelId: pulumi.String("string"),
	Configs: pagerduty.SlackConnectionConfigArray{
		&pagerduty.SlackConnectionConfigArgs{
			Events: pulumi.StringArray{
				pulumi.String("string"),
			},
			Priorities: pulumi.StringArray{
				pulumi.String("string"),
			},
			Urgency: pulumi.String("string"),
		},
	},
	NotificationType: pulumi.String("string"),
	SourceId:         pulumi.String("string"),
	SourceType:       pulumi.String("string"),
	WorkspaceId:      pulumi.String("string"),
})
Copy
var slackConnectionResource = new SlackConnection("slackConnectionResource", SlackConnectionArgs.builder()
    .channelId("string")
    .configs(SlackConnectionConfigArgs.builder()
        .events("string")
        .priorities("string")
        .urgency("string")
        .build())
    .notificationType("string")
    .sourceId("string")
    .sourceType("string")
    .workspaceId("string")
    .build());
Copy
slack_connection_resource = pagerduty.SlackConnection("slackConnectionResource",
    channel_id="string",
    configs=[{
        "events": ["string"],
        "priorities": ["string"],
        "urgency": "string",
    }],
    notification_type="string",
    source_id="string",
    source_type="string",
    workspace_id="string")
Copy
const slackConnectionResource = new pagerduty.SlackConnection("slackConnectionResource", {
    channelId: "string",
    configs: [{
        events: ["string"],
        priorities: ["string"],
        urgency: "string",
    }],
    notificationType: "string",
    sourceId: "string",
    sourceType: "string",
    workspaceId: "string",
});
Copy
type: pagerduty:SlackConnection
properties:
    channelId: string
    configs:
        - events:
            - string
          priorities:
            - string
          urgency: string
    notificationType: string
    sourceId: string
    sourceType: string
    workspaceId: string
Copy

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

ChannelId This property is required. string
The ID of a Slack channel in the workspace.
Configs This property is required. List<SlackConnectionConfig>
Configuration options for the Slack connection that provide options to filter events.
NotificationType This property is required. string
Type of notification. Either responder or stakeholder.
SourceId This property is required. string
The ID of the source in PagerDuty. Valid sources are services or teams.
SourceType This property is required. string
The type of the source. Either team_reference or service_reference.
WorkspaceId This property is required. string
The slack team (workspace) ID of the connected Slack workspace. Can also be defined by the SLACK_CONNECTION_WORKSPACE_ID environment variable.
ChannelId This property is required. string
The ID of a Slack channel in the workspace.
Configs This property is required. []SlackConnectionConfigArgs
Configuration options for the Slack connection that provide options to filter events.
NotificationType This property is required. string
Type of notification. Either responder or stakeholder.
SourceId This property is required. string
The ID of the source in PagerDuty. Valid sources are services or teams.
SourceType This property is required. string
The type of the source. Either team_reference or service_reference.
WorkspaceId This property is required. string
The slack team (workspace) ID of the connected Slack workspace. Can also be defined by the SLACK_CONNECTION_WORKSPACE_ID environment variable.
channelId This property is required. String
The ID of a Slack channel in the workspace.
configs This property is required. List<SlackConnectionConfig>
Configuration options for the Slack connection that provide options to filter events.
notificationType This property is required. String
Type of notification. Either responder or stakeholder.
sourceId This property is required. String
The ID of the source in PagerDuty. Valid sources are services or teams.
sourceType This property is required. String
The type of the source. Either team_reference or service_reference.
workspaceId This property is required. String
The slack team (workspace) ID of the connected Slack workspace. Can also be defined by the SLACK_CONNECTION_WORKSPACE_ID environment variable.
channelId This property is required. string
The ID of a Slack channel in the workspace.
configs This property is required. SlackConnectionConfig[]
Configuration options for the Slack connection that provide options to filter events.
notificationType This property is required. string
Type of notification. Either responder or stakeholder.
sourceId This property is required. string
The ID of the source in PagerDuty. Valid sources are services or teams.
sourceType This property is required. string
The type of the source. Either team_reference or service_reference.
workspaceId This property is required. string
The slack team (workspace) ID of the connected Slack workspace. Can also be defined by the SLACK_CONNECTION_WORKSPACE_ID environment variable.
channel_id This property is required. str
The ID of a Slack channel in the workspace.
configs This property is required. Sequence[SlackConnectionConfigArgs]
Configuration options for the Slack connection that provide options to filter events.
notification_type This property is required. str
Type of notification. Either responder or stakeholder.
source_id This property is required. str
The ID of the source in PagerDuty. Valid sources are services or teams.
source_type This property is required. str
The type of the source. Either team_reference or service_reference.
workspace_id This property is required. str
The slack team (workspace) ID of the connected Slack workspace. Can also be defined by the SLACK_CONNECTION_WORKSPACE_ID environment variable.
channelId This property is required. String
The ID of a Slack channel in the workspace.
configs This property is required. List<Property Map>
Configuration options for the Slack connection that provide options to filter events.
notificationType This property is required. String
Type of notification. Either responder or stakeholder.
sourceId This property is required. String
The ID of the source in PagerDuty. Valid sources are services or teams.
sourceType This property is required. String
The type of the source. Either team_reference or service_reference.
workspaceId This property is required. String
The slack team (workspace) ID of the connected Slack workspace. Can also be defined by the SLACK_CONNECTION_WORKSPACE_ID environment variable.

Outputs

All input properties are implicitly available as output properties. Additionally, the SlackConnection resource produces the following output properties:

ChannelName string
Name of the Slack channel in Slack connection.
Id string
The provider-assigned unique ID for this managed resource.
SourceName string
Name of the source (team or service) in Slack connection.
ChannelName string
Name of the Slack channel in Slack connection.
Id string
The provider-assigned unique ID for this managed resource.
SourceName string
Name of the source (team or service) in Slack connection.
channelName String
Name of the Slack channel in Slack connection.
id String
The provider-assigned unique ID for this managed resource.
sourceName String
Name of the source (team or service) in Slack connection.
channelName string
Name of the Slack channel in Slack connection.
id string
The provider-assigned unique ID for this managed resource.
sourceName string
Name of the source (team or service) in Slack connection.
channel_name str
Name of the Slack channel in Slack connection.
id str
The provider-assigned unique ID for this managed resource.
source_name str
Name of the source (team or service) in Slack connection.
channelName String
Name of the Slack channel in Slack connection.
id String
The provider-assigned unique ID for this managed resource.
sourceName String
Name of the source (team or service) in Slack connection.

Look up Existing SlackConnection Resource

Get an existing SlackConnection 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?: SlackConnectionState, opts?: CustomResourceOptions): SlackConnection
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        channel_id: Optional[str] = None,
        channel_name: Optional[str] = None,
        configs: Optional[Sequence[SlackConnectionConfigArgs]] = None,
        notification_type: Optional[str] = None,
        source_id: Optional[str] = None,
        source_name: Optional[str] = None,
        source_type: Optional[str] = None,
        workspace_id: Optional[str] = None) -> SlackConnection
func GetSlackConnection(ctx *Context, name string, id IDInput, state *SlackConnectionState, opts ...ResourceOption) (*SlackConnection, error)
public static SlackConnection Get(string name, Input<string> id, SlackConnectionState? state, CustomResourceOptions? opts = null)
public static SlackConnection get(String name, Output<String> id, SlackConnectionState state, CustomResourceOptions options)
resources:  _:    type: pagerduty:SlackConnection    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
ChannelId string
The ID of a Slack channel in the workspace.
ChannelName string
Name of the Slack channel in Slack connection.
Configs List<SlackConnectionConfig>
Configuration options for the Slack connection that provide options to filter events.
NotificationType string
Type of notification. Either responder or stakeholder.
SourceId string
The ID of the source in PagerDuty. Valid sources are services or teams.
SourceName string
Name of the source (team or service) in Slack connection.
SourceType string
The type of the source. Either team_reference or service_reference.
WorkspaceId string
The slack team (workspace) ID of the connected Slack workspace. Can also be defined by the SLACK_CONNECTION_WORKSPACE_ID environment variable.
ChannelId string
The ID of a Slack channel in the workspace.
ChannelName string
Name of the Slack channel in Slack connection.
Configs []SlackConnectionConfigArgs
Configuration options for the Slack connection that provide options to filter events.
NotificationType string
Type of notification. Either responder or stakeholder.
SourceId string
The ID of the source in PagerDuty. Valid sources are services or teams.
SourceName string
Name of the source (team or service) in Slack connection.
SourceType string
The type of the source. Either team_reference or service_reference.
WorkspaceId string
The slack team (workspace) ID of the connected Slack workspace. Can also be defined by the SLACK_CONNECTION_WORKSPACE_ID environment variable.
channelId String
The ID of a Slack channel in the workspace.
channelName String
Name of the Slack channel in Slack connection.
configs List<SlackConnectionConfig>
Configuration options for the Slack connection that provide options to filter events.
notificationType String
Type of notification. Either responder or stakeholder.
sourceId String
The ID of the source in PagerDuty. Valid sources are services or teams.
sourceName String
Name of the source (team or service) in Slack connection.
sourceType String
The type of the source. Either team_reference or service_reference.
workspaceId String
The slack team (workspace) ID of the connected Slack workspace. Can also be defined by the SLACK_CONNECTION_WORKSPACE_ID environment variable.
channelId string
The ID of a Slack channel in the workspace.
channelName string
Name of the Slack channel in Slack connection.
configs SlackConnectionConfig[]
Configuration options for the Slack connection that provide options to filter events.
notificationType string
Type of notification. Either responder or stakeholder.
sourceId string
The ID of the source in PagerDuty. Valid sources are services or teams.
sourceName string
Name of the source (team or service) in Slack connection.
sourceType string
The type of the source. Either team_reference or service_reference.
workspaceId string
The slack team (workspace) ID of the connected Slack workspace. Can also be defined by the SLACK_CONNECTION_WORKSPACE_ID environment variable.
channel_id str
The ID of a Slack channel in the workspace.
channel_name str
Name of the Slack channel in Slack connection.
configs Sequence[SlackConnectionConfigArgs]
Configuration options for the Slack connection that provide options to filter events.
notification_type str
Type of notification. Either responder or stakeholder.
source_id str
The ID of the source in PagerDuty. Valid sources are services or teams.
source_name str
Name of the source (team or service) in Slack connection.
source_type str
The type of the source. Either team_reference or service_reference.
workspace_id str
The slack team (workspace) ID of the connected Slack workspace. Can also be defined by the SLACK_CONNECTION_WORKSPACE_ID environment variable.
channelId String
The ID of a Slack channel in the workspace.
channelName String
Name of the Slack channel in Slack connection.
configs List<Property Map>
Configuration options for the Slack connection that provide options to filter events.
notificationType String
Type of notification. Either responder or stakeholder.
sourceId String
The ID of the source in PagerDuty. Valid sources are services or teams.
sourceName String
Name of the source (team or service) in Slack connection.
sourceType String
The type of the source. Either team_reference or service_reference.
workspaceId String
The slack team (workspace) ID of the connected Slack workspace. Can also be defined by the SLACK_CONNECTION_WORKSPACE_ID environment variable.

Supporting Types

SlackConnectionConfig
, SlackConnectionConfigArgs

Events This property is required. List<string>
A list of strings to filter events by PagerDuty event type. "incident.triggered" is required. The follow event types are also possible:

  • incident.acknowledged
  • incident.escalated
  • incident.resolved
  • incident.reassigned
  • incident.annotated
  • incident.unacknowledged
  • incident.delegated
  • incident.priority_updated
  • incident.responder.added
  • incident.responder.replied
  • incident.status_update_published
  • incident.reopened
Priorities List<string>
Allows you to filter events by priority. Needs to be an array of PagerDuty priority IDs. Available through pagerduty.getPriority data source.

  • When omitted or set to an empty array ([]) in the configuration for a Slack Connection, its default behavior is to set priorities to No Priority value.
  • When set to ["*"] its corresponding value for priorities in Slack Connection's configuration will be Any Priority.
Urgency string
Allows you to filter events by urgency. Either high, low or null for Any urgency. Default is null.
Events This property is required. []string
A list of strings to filter events by PagerDuty event type. "incident.triggered" is required. The follow event types are also possible:

  • incident.acknowledged
  • incident.escalated
  • incident.resolved
  • incident.reassigned
  • incident.annotated
  • incident.unacknowledged
  • incident.delegated
  • incident.priority_updated
  • incident.responder.added
  • incident.responder.replied
  • incident.status_update_published
  • incident.reopened
Priorities []string
Allows you to filter events by priority. Needs to be an array of PagerDuty priority IDs. Available through pagerduty.getPriority data source.

  • When omitted or set to an empty array ([]) in the configuration for a Slack Connection, its default behavior is to set priorities to No Priority value.
  • When set to ["*"] its corresponding value for priorities in Slack Connection's configuration will be Any Priority.
Urgency string
Allows you to filter events by urgency. Either high, low or null for Any urgency. Default is null.
events This property is required. List<String>
A list of strings to filter events by PagerDuty event type. "incident.triggered" is required. The follow event types are also possible:

  • incident.acknowledged
  • incident.escalated
  • incident.resolved
  • incident.reassigned
  • incident.annotated
  • incident.unacknowledged
  • incident.delegated
  • incident.priority_updated
  • incident.responder.added
  • incident.responder.replied
  • incident.status_update_published
  • incident.reopened
priorities List<String>
Allows you to filter events by priority. Needs to be an array of PagerDuty priority IDs. Available through pagerduty.getPriority data source.

  • When omitted or set to an empty array ([]) in the configuration for a Slack Connection, its default behavior is to set priorities to No Priority value.
  • When set to ["*"] its corresponding value for priorities in Slack Connection's configuration will be Any Priority.
urgency String
Allows you to filter events by urgency. Either high, low or null for Any urgency. Default is null.
events This property is required. string[]
A list of strings to filter events by PagerDuty event type. "incident.triggered" is required. The follow event types are also possible:

  • incident.acknowledged
  • incident.escalated
  • incident.resolved
  • incident.reassigned
  • incident.annotated
  • incident.unacknowledged
  • incident.delegated
  • incident.priority_updated
  • incident.responder.added
  • incident.responder.replied
  • incident.status_update_published
  • incident.reopened
priorities string[]
Allows you to filter events by priority. Needs to be an array of PagerDuty priority IDs. Available through pagerduty.getPriority data source.

  • When omitted or set to an empty array ([]) in the configuration for a Slack Connection, its default behavior is to set priorities to No Priority value.
  • When set to ["*"] its corresponding value for priorities in Slack Connection's configuration will be Any Priority.
urgency string
Allows you to filter events by urgency. Either high, low or null for Any urgency. Default is null.
events This property is required. Sequence[str]
A list of strings to filter events by PagerDuty event type. "incident.triggered" is required. The follow event types are also possible:

  • incident.acknowledged
  • incident.escalated
  • incident.resolved
  • incident.reassigned
  • incident.annotated
  • incident.unacknowledged
  • incident.delegated
  • incident.priority_updated
  • incident.responder.added
  • incident.responder.replied
  • incident.status_update_published
  • incident.reopened
priorities Sequence[str]
Allows you to filter events by priority. Needs to be an array of PagerDuty priority IDs. Available through pagerduty.getPriority data source.

  • When omitted or set to an empty array ([]) in the configuration for a Slack Connection, its default behavior is to set priorities to No Priority value.
  • When set to ["*"] its corresponding value for priorities in Slack Connection's configuration will be Any Priority.
urgency str
Allows you to filter events by urgency. Either high, low or null for Any urgency. Default is null.
events This property is required. List<String>
A list of strings to filter events by PagerDuty event type. "incident.triggered" is required. The follow event types are also possible:

  • incident.acknowledged
  • incident.escalated
  • incident.resolved
  • incident.reassigned
  • incident.annotated
  • incident.unacknowledged
  • incident.delegated
  • incident.priority_updated
  • incident.responder.added
  • incident.responder.replied
  • incident.status_update_published
  • incident.reopened
priorities List<String>
Allows you to filter events by priority. Needs to be an array of PagerDuty priority IDs. Available through pagerduty.getPriority data source.

  • When omitted or set to an empty array ([]) in the configuration for a Slack Connection, its default behavior is to set priorities to No Priority value.
  • When set to ["*"] its corresponding value for priorities in Slack Connection's configuration will be Any Priority.
urgency String
Allows you to filter events by urgency. Either high, low or null for Any urgency. Default is null.

Import

Slack connections can be imported using the related workspace ID and the slack_connection ID separated by a dot, e.g.

$ pulumi import pagerduty:index/slackConnection:SlackConnection main T02A123LV1A.PUABCDL
Copy

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

Package Details

Repository
PagerDuty pulumi/pulumi-pagerduty
License
Apache-2.0
Notes
This Pulumi package is based on the pagerduty Terraform Provider.