1. Packages
  2. Packages
  3. Chronosphere
  4. API Docs
  5. SlackExternalConnection
Viewing docs for Chronosphere v0.9.16
published on Friday, Jun 5, 2026 by Chronosphere
Viewing docs for Chronosphere v0.9.16
published on Friday, Jun 5, 2026 by Chronosphere

    Workspace-scoped Slack credentials that downstream notifiers and LogScale actions can reference. Centralizes webhook URLs and bot tokens so they aren’t duplicated across notifiers; modern equivalent of the per-notifier credentials.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Pulumi = Chronosphere.Pulumi;
    
    return await Deployment.RunAsync(() => 
    {
        var slack = new Pulumi.SlackExternalConnection("slack", new()
        {
            ApiUrl = "https://hooks.slack.com/services/XXXXX/XXXXX/XXXXX",
            Name = "Slack",
        });
    
    });
    
    package main
    
    import (
    	"github.com/chronosphereio/pulumi-chronosphere/sdk/go/chronosphere"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := chronosphere.NewSlackExternalConnection(ctx, "slack", &chronosphere.SlackExternalConnectionArgs{
    			ApiUrl: pulumi.String("https://hooks.slack.com/services/XXXXX/XXXXX/XXXXX"),
    			Name:   pulumi.String("Slack"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Example coming soon!

    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.chronosphere.SlackExternalConnection;
    import com.pulumi.chronosphere.SlackExternalConnectionArgs;
    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 slack = new SlackExternalConnection("slack", SlackExternalConnectionArgs.builder()        
                .apiUrl("https://hooks.slack.com/services/XXXXX/XXXXX/XXXXX")
                .name("Slack")
                .build());
    
        }
    }
    
    import * as pulumi from "@pulumi/pulumi";
    import * as chronosphere from "@pulumi-chronosphere/pulumi-chronosphere";
    
    const slack = new chronosphere.SlackExternalConnection("slack", {
        apiUrl: "https://hooks.slack.com/services/XXXXX/XXXXX/XXXXX",
        name: "Slack",
    });
    
    import pulumi
    import pulumi_chronosphere as chronosphere
    
    slack = chronosphere.SlackExternalConnection("slack",
        api_url="https://hooks.slack.com/services/XXXXX/XXXXX/XXXXX",
        name="Slack")
    
    resources:
      slack:
        type: chronosphere:SlackExternalConnection
        properties:
          apiUrl: https://hooks.slack.com/services/XXXXX/XXXXX/XXXXX
          name: Slack
    

    Create SlackExternalConnection Resource

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

    Constructor syntax

    new SlackExternalConnection(name: string, args: SlackExternalConnectionArgs, opts?: CustomResourceOptions);
    @overload
    def SlackExternalConnection(resource_name: str,
                                args: SlackExternalConnectionArgs,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def SlackExternalConnection(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                name: Optional[str] = None,
                                api_url: Optional[str] = None,
                                slug: Optional[str] = None,
                                token: Optional[str] = None)
    func NewSlackExternalConnection(ctx *Context, name string, args SlackExternalConnectionArgs, opts ...ResourceOption) (*SlackExternalConnection, error)
    public SlackExternalConnection(string name, SlackExternalConnectionArgs args, CustomResourceOptions? opts = null)
    public SlackExternalConnection(String name, SlackExternalConnectionArgs args)
    public SlackExternalConnection(String name, SlackExternalConnectionArgs args, CustomResourceOptions options)
    
    type: chronosphere:SlackExternalConnection
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "chronosphere_slackexternalconnection" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args SlackExternalConnectionArgs
    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 SlackExternalConnectionArgs
    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 SlackExternalConnectionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SlackExternalConnectionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SlackExternalConnectionArgs
    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 slackExternalConnectionResource = new Pulumi.SlackExternalConnection("slackExternalConnectionResource", new()
    {
        Name = "string",
        ApiUrl = "string",
        Slug = "string",
        Token = "string",
    });
    
    example, err := chronosphere.NewSlackExternalConnection(ctx, "slackExternalConnectionResource", &chronosphere.SlackExternalConnectionArgs{
    	Name:   pulumi.String("string"),
    	ApiUrl: pulumi.String("string"),
    	Slug:   pulumi.String("string"),
    	Token:  pulumi.String("string"),
    })
    
    resource "chronosphere_slackexternalconnection" "slackExternalConnectionResource" {
      name    = "string"
      api_url = "string"
      slug    = "string"
      token   = "string"
    }
    
    var slackExternalConnectionResource = new SlackExternalConnection("slackExternalConnectionResource", SlackExternalConnectionArgs.builder()
        .name("string")
        .apiUrl("string")
        .slug("string")
        .token("string")
        .build());
    
    slack_external_connection_resource = chronosphere.SlackExternalConnection("slackExternalConnectionResource",
        name="string",
        api_url="string",
        slug="string",
        token="string")
    
    const slackExternalConnectionResource = new chronosphere.SlackExternalConnection("slackExternalConnectionResource", {
        name: "string",
        apiUrl: "string",
        slug: "string",
        token: "string",
    });
    
    type: chronosphere:SlackExternalConnection
    properties:
        apiUrl: string
        name: string
        slug: string
        token: string
    

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

    Name string
    Display name of the external connection.
    ApiUrl string
    Slack incoming webhook URL used to deliver messages. Treat as a secret.
    Slug string
    Stable identifier for the connection. Generated from name if omitted. Immutable after creation.
    Token string
    Slack bot or app token used to authenticate API calls when posting messages. Treat as a secret.
    Name string
    Display name of the external connection.
    ApiUrl string
    Slack incoming webhook URL used to deliver messages. Treat as a secret.
    Slug string
    Stable identifier for the connection. Generated from name if omitted. Immutable after creation.
    Token string
    Slack bot or app token used to authenticate API calls when posting messages. Treat as a secret.
    name string
    Display name of the external connection.
    api_url string
    Slack incoming webhook URL used to deliver messages. Treat as a secret.
    slug string
    Stable identifier for the connection. Generated from name if omitted. Immutable after creation.
    token string
    Slack bot or app token used to authenticate API calls when posting messages. Treat as a secret.
    name String
    Display name of the external connection.
    apiUrl String
    Slack incoming webhook URL used to deliver messages. Treat as a secret.
    slug String
    Stable identifier for the connection. Generated from name if omitted. Immutable after creation.
    token String
    Slack bot or app token used to authenticate API calls when posting messages. Treat as a secret.
    name string
    Display name of the external connection.
    apiUrl string
    Slack incoming webhook URL used to deliver messages. Treat as a secret.
    slug string
    Stable identifier for the connection. Generated from name if omitted. Immutable after creation.
    token string
    Slack bot or app token used to authenticate API calls when posting messages. Treat as a secret.
    name str
    Display name of the external connection.
    api_url str
    Slack incoming webhook URL used to deliver messages. Treat as a secret.
    slug str
    Stable identifier for the connection. Generated from name if omitted. Immutable after creation.
    token str
    Slack bot or app token used to authenticate API calls when posting messages. Treat as a secret.
    name String
    Display name of the external connection.
    apiUrl String
    Slack incoming webhook URL used to deliver messages. Treat as a secret.
    slug String
    Stable identifier for the connection. Generated from name if omitted. Immutable after creation.
    token String
    Slack bot or app token used to authenticate API calls when posting messages. Treat as a secret.

    Outputs

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

    Get an existing SlackExternalConnection 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?: SlackExternalConnectionState, opts?: CustomResourceOptions): SlackExternalConnection
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            api_url: Optional[str] = None,
            name: Optional[str] = None,
            slug: Optional[str] = None,
            token: Optional[str] = None) -> SlackExternalConnection
    func GetSlackExternalConnection(ctx *Context, name string, id IDInput, state *SlackExternalConnectionState, opts ...ResourceOption) (*SlackExternalConnection, error)
    public static SlackExternalConnection Get(string name, Input<string> id, SlackExternalConnectionState? state, CustomResourceOptions? opts = null)
    public static SlackExternalConnection get(String name, Output<String> id, SlackExternalConnectionState state, CustomResourceOptions options)
    resources:  _:    type: chronosphere:SlackExternalConnection    get:      id: ${id}
    import {
      to = chronosphere_slackexternalconnection.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:
    ApiUrl string
    Slack incoming webhook URL used to deliver messages. Treat as a secret.
    Name string
    Display name of the external connection.
    Slug string
    Stable identifier for the connection. Generated from name if omitted. Immutable after creation.
    Token string
    Slack bot or app token used to authenticate API calls when posting messages. Treat as a secret.
    ApiUrl string
    Slack incoming webhook URL used to deliver messages. Treat as a secret.
    Name string
    Display name of the external connection.
    Slug string
    Stable identifier for the connection. Generated from name if omitted. Immutable after creation.
    Token string
    Slack bot or app token used to authenticate API calls when posting messages. Treat as a secret.
    api_url string
    Slack incoming webhook URL used to deliver messages. Treat as a secret.
    name string
    Display name of the external connection.
    slug string
    Stable identifier for the connection. Generated from name if omitted. Immutable after creation.
    token string
    Slack bot or app token used to authenticate API calls when posting messages. Treat as a secret.
    apiUrl String
    Slack incoming webhook URL used to deliver messages. Treat as a secret.
    name String
    Display name of the external connection.
    slug String
    Stable identifier for the connection. Generated from name if omitted. Immutable after creation.
    token String
    Slack bot or app token used to authenticate API calls when posting messages. Treat as a secret.
    apiUrl string
    Slack incoming webhook URL used to deliver messages. Treat as a secret.
    name string
    Display name of the external connection.
    slug string
    Stable identifier for the connection. Generated from name if omitted. Immutable after creation.
    token string
    Slack bot or app token used to authenticate API calls when posting messages. Treat as a secret.
    api_url str
    Slack incoming webhook URL used to deliver messages. Treat as a secret.
    name str
    Display name of the external connection.
    slug str
    Stable identifier for the connection. Generated from name if omitted. Immutable after creation.
    token str
    Slack bot or app token used to authenticate API calls when posting messages. Treat as a secret.
    apiUrl String
    Slack incoming webhook URL used to deliver messages. Treat as a secret.
    name String
    Display name of the external connection.
    slug String
    Stable identifier for the connection. Generated from name if omitted. Immutable after creation.
    token String
    Slack bot or app token used to authenticate API calls when posting messages. Treat as a secret.

    Package Details

    Repository
    chronosphere chronosphereio/pulumi-chronosphere
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the chronosphere Terraform Provider.
    Viewing docs for Chronosphere v0.9.16
    published on Friday, Jun 5, 2026 by Chronosphere

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial