1. Packages
  2. Ibm Provider
  3. API Docs
  4. EnSubscriptionSlack
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

ibm.EnSubscriptionSlack

Explore with Pulumi AI

Create, update, or delete a slack subscription by using IBM Cloud™ Event Notifications.

Example Usage

Subscription example for Slack Destination type incoming_webhook

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

const slackSubscription = new ibm.EnSubscriptionSlack("slackSubscription", {
    instanceGuid: ibm_resource_instance.en_terraform_test_resource.guid,
    description: "The Slack subscription for slack destination in Event Notifications",
    destinationId: ibm_en_destination_slack.destination1.destination_id,
    topicId: ibm_en_topic.topic1.topic_id,
    attributes: {
        attachmentColor: "#FF0000",
        templateIdNotification: "e40843c8-hgft-4717-8ee4-f923f2786a34",
    },
});
Copy
import pulumi
import pulumi_ibm as ibm

slack_subscription = ibm.EnSubscriptionSlack("slackSubscription",
    instance_guid=ibm_resource_instance["en_terraform_test_resource"]["guid"],
    description="The Slack subscription for slack destination in Event Notifications",
    destination_id=ibm_en_destination_slack["destination1"]["destination_id"],
    topic_id=ibm_en_topic["topic1"]["topic_id"],
    attributes={
        "attachment_color": "#FF0000",
        "template_id_notification": "e40843c8-hgft-4717-8ee4-f923f2786a34",
    })
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ibm.NewEnSubscriptionSlack(ctx, "slackSubscription", &ibm.EnSubscriptionSlackArgs{
			InstanceGuid:  pulumi.Any(ibm_resource_instance.En_terraform_test_resource.Guid),
			Description:   pulumi.String("The Slack subscription for slack destination in Event Notifications"),
			DestinationId: pulumi.Any(ibm_en_destination_slack.Destination1.Destination_id),
			TopicId:       pulumi.Any(ibm_en_topic.Topic1.Topic_id),
			Attributes: &ibm.EnSubscriptionSlackAttributesArgs{
				AttachmentColor:        pulumi.String("#FF0000"),
				TemplateIdNotification: pulumi.String("e40843c8-hgft-4717-8ee4-f923f2786a34"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;

return await Deployment.RunAsync(() => 
{
    var slackSubscription = new Ibm.EnSubscriptionSlack("slackSubscription", new()
    {
        InstanceGuid = ibm_resource_instance.En_terraform_test_resource.Guid,
        Description = "The Slack subscription for slack destination in Event Notifications",
        DestinationId = ibm_en_destination_slack.Destination1.Destination_id,
        TopicId = ibm_en_topic.Topic1.Topic_id,
        Attributes = new Ibm.Inputs.EnSubscriptionSlackAttributesArgs
        {
            AttachmentColor = "#FF0000",
            TemplateIdNotification = "e40843c8-hgft-4717-8ee4-f923f2786a34",
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.EnSubscriptionSlack;
import com.pulumi.ibm.EnSubscriptionSlackArgs;
import com.pulumi.ibm.inputs.EnSubscriptionSlackAttributesArgs;
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 slackSubscription = new EnSubscriptionSlack("slackSubscription", EnSubscriptionSlackArgs.builder()
            .instanceGuid(ibm_resource_instance.en_terraform_test_resource().guid())
            .description("The Slack subscription for slack destination in Event Notifications")
            .destinationId(ibm_en_destination_slack.destination1().destination_id())
            .topicId(ibm_en_topic.topic1().topic_id())
            .attributes(EnSubscriptionSlackAttributesArgs.builder()
                .attachmentColor("#FF0000")
                .templateIdNotification("e40843c8-hgft-4717-8ee4-f923f2786a34")
                .build())
            .build());

    }
}
Copy
resources:
  slackSubscription:
    type: ibm:EnSubscriptionSlack
    properties:
      instanceGuid: ${ibm_resource_instance.en_terraform_test_resource.guid}
      description: The Slack subscription for slack destination in Event Notifications
      destinationId: ${ibm_en_destination_slack.destination1.destination_id}
      topicId: ${ibm_en_topic.topic1.topic_id}
      attributes:
        attachmentColor: '#FF0000'
        templateIdNotification: e40843c8-hgft-4717-8ee4-f923f2786a34
Copy

Subscription Create example for Slack Destination type direct_message

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

const slackSubscription = new ibm.EnSubscriptionSlack("slackSubscription", {
    instanceGuid: ibm_resource_instance.en_terraform_test_resource.guid,
    description: "The Slack subscription for slack destination in Event Notifications",
    destinationId: ibm_en_destination_slack.destination1.destination_id,
    topicId: ibm_en_topic.topic1.topic_id,
    attributes: {
        channels: [
            {
                id: "GHUIIIJBBBV",
            },
            {
                id: "TFDDDERRRV",
            },
        ],
        templateIdNotification: "e40843c8-hgft-4717-8ee4-f923f2786a34",
    },
});
Copy
import pulumi
import pulumi_ibm as ibm

slack_subscription = ibm.EnSubscriptionSlack("slackSubscription",
    instance_guid=ibm_resource_instance["en_terraform_test_resource"]["guid"],
    description="The Slack subscription for slack destination in Event Notifications",
    destination_id=ibm_en_destination_slack["destination1"]["destination_id"],
    topic_id=ibm_en_topic["topic1"]["topic_id"],
    attributes={
        "channels": [
            {
                "id": "GHUIIIJBBBV",
            },
            {
                "id": "TFDDDERRRV",
            },
        ],
        "template_id_notification": "e40843c8-hgft-4717-8ee4-f923f2786a34",
    })
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ibm.NewEnSubscriptionSlack(ctx, "slackSubscription", &ibm.EnSubscriptionSlackArgs{
			InstanceGuid:  pulumi.Any(ibm_resource_instance.En_terraform_test_resource.Guid),
			Description:   pulumi.String("The Slack subscription for slack destination in Event Notifications"),
			DestinationId: pulumi.Any(ibm_en_destination_slack.Destination1.Destination_id),
			TopicId:       pulumi.Any(ibm_en_topic.Topic1.Topic_id),
			Attributes: &ibm.EnSubscriptionSlackAttributesArgs{
				Channels: ibm.EnSubscriptionSlackAttributesChannelArray{
					&ibm.EnSubscriptionSlackAttributesChannelArgs{
						Id: pulumi.String("GHUIIIJBBBV"),
					},
					&ibm.EnSubscriptionSlackAttributesChannelArgs{
						Id: pulumi.String("TFDDDERRRV"),
					},
				},
				TemplateIdNotification: pulumi.String("e40843c8-hgft-4717-8ee4-f923f2786a34"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;

return await Deployment.RunAsync(() => 
{
    var slackSubscription = new Ibm.EnSubscriptionSlack("slackSubscription", new()
    {
        InstanceGuid = ibm_resource_instance.En_terraform_test_resource.Guid,
        Description = "The Slack subscription for slack destination in Event Notifications",
        DestinationId = ibm_en_destination_slack.Destination1.Destination_id,
        TopicId = ibm_en_topic.Topic1.Topic_id,
        Attributes = new Ibm.Inputs.EnSubscriptionSlackAttributesArgs
        {
            Channels = new[]
            {
                new Ibm.Inputs.EnSubscriptionSlackAttributesChannelArgs
                {
                    Id = "GHUIIIJBBBV",
                },
                new Ibm.Inputs.EnSubscriptionSlackAttributesChannelArgs
                {
                    Id = "TFDDDERRRV",
                },
            },
            TemplateIdNotification = "e40843c8-hgft-4717-8ee4-f923f2786a34",
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.EnSubscriptionSlack;
import com.pulumi.ibm.EnSubscriptionSlackArgs;
import com.pulumi.ibm.inputs.EnSubscriptionSlackAttributesArgs;
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 slackSubscription = new EnSubscriptionSlack("slackSubscription", EnSubscriptionSlackArgs.builder()
            .instanceGuid(ibm_resource_instance.en_terraform_test_resource().guid())
            .description("The Slack subscription for slack destination in Event Notifications")
            .destinationId(ibm_en_destination_slack.destination1().destination_id())
            .topicId(ibm_en_topic.topic1().topic_id())
            .attributes(EnSubscriptionSlackAttributesArgs.builder()
                .channels(                
                    EnSubscriptionSlackAttributesChannelArgs.builder()
                        .id("GHUIIIJBBBV")
                        .build(),
                    EnSubscriptionSlackAttributesChannelArgs.builder()
                        .id("TFDDDERRRV")
                        .build())
                .templateIdNotification("e40843c8-hgft-4717-8ee4-f923f2786a34")
                .build())
            .build());

    }
}
Copy
resources:
  slackSubscription:
    type: ibm:EnSubscriptionSlack
    properties:
      instanceGuid: ${ibm_resource_instance.en_terraform_test_resource.guid}
      description: The Slack subscription for slack destination in Event Notifications
      destinationId: ${ibm_en_destination_slack.destination1.destination_id}
      topicId: ${ibm_en_topic.topic1.topic_id}
      attributes:
        channels:
          - id: GHUIIIJBBBV
          - id: TFDDDERRRV
        templateIdNotification: e40843c8-hgft-4717-8ee4-f923f2786a34
Copy

Subscription Update example for Slack Destination type direct_message

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

const slackSubscription = new ibm.EnSubscriptionSlack("slackSubscription", {
    instanceGuid: ibm_resource_instance.en_terraform_test_resource.guid,
    description: "The Slack subscription for slack destination in Event Notifications",
    destinationId: ibm_en_destination_slack.destination1.destination_id,
    topicId: ibm_en_topic.topic1.topic_id,
    attributes: {
        channels: [
            {
                id: "GHUIIIJBBBV",
                operation: "remove",
            },
            {
                id: "GGYEXCGHHUU",
                operation: "add",
            },
        ],
        templateIdNotification: "e40843c8-hgft-4717-8ee4-f923f2786a34",
    },
});
Copy
import pulumi
import pulumi_ibm as ibm

slack_subscription = ibm.EnSubscriptionSlack("slackSubscription",
    instance_guid=ibm_resource_instance["en_terraform_test_resource"]["guid"],
    description="The Slack subscription for slack destination in Event Notifications",
    destination_id=ibm_en_destination_slack["destination1"]["destination_id"],
    topic_id=ibm_en_topic["topic1"]["topic_id"],
    attributes={
        "channels": [
            {
                "id": "GHUIIIJBBBV",
                "operation": "remove",
            },
            {
                "id": "GGYEXCGHHUU",
                "operation": "add",
            },
        ],
        "template_id_notification": "e40843c8-hgft-4717-8ee4-f923f2786a34",
    })
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ibm.NewEnSubscriptionSlack(ctx, "slackSubscription", &ibm.EnSubscriptionSlackArgs{
			InstanceGuid:  pulumi.Any(ibm_resource_instance.En_terraform_test_resource.Guid),
			Description:   pulumi.String("The Slack subscription for slack destination in Event Notifications"),
			DestinationId: pulumi.Any(ibm_en_destination_slack.Destination1.Destination_id),
			TopicId:       pulumi.Any(ibm_en_topic.Topic1.Topic_id),
			Attributes: &ibm.EnSubscriptionSlackAttributesArgs{
				Channels: ibm.EnSubscriptionSlackAttributesChannelArray{
					&ibm.EnSubscriptionSlackAttributesChannelArgs{
						Id:        pulumi.String("GHUIIIJBBBV"),
						Operation: pulumi.String("remove"),
					},
					&ibm.EnSubscriptionSlackAttributesChannelArgs{
						Id:        pulumi.String("GGYEXCGHHUU"),
						Operation: pulumi.String("add"),
					},
				},
				TemplateIdNotification: pulumi.String("e40843c8-hgft-4717-8ee4-f923f2786a34"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;

return await Deployment.RunAsync(() => 
{
    var slackSubscription = new Ibm.EnSubscriptionSlack("slackSubscription", new()
    {
        InstanceGuid = ibm_resource_instance.En_terraform_test_resource.Guid,
        Description = "The Slack subscription for slack destination in Event Notifications",
        DestinationId = ibm_en_destination_slack.Destination1.Destination_id,
        TopicId = ibm_en_topic.Topic1.Topic_id,
        Attributes = new Ibm.Inputs.EnSubscriptionSlackAttributesArgs
        {
            Channels = new[]
            {
                new Ibm.Inputs.EnSubscriptionSlackAttributesChannelArgs
                {
                    Id = "GHUIIIJBBBV",
                    Operation = "remove",
                },
                new Ibm.Inputs.EnSubscriptionSlackAttributesChannelArgs
                {
                    Id = "GGYEXCGHHUU",
                    Operation = "add",
                },
            },
            TemplateIdNotification = "e40843c8-hgft-4717-8ee4-f923f2786a34",
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.EnSubscriptionSlack;
import com.pulumi.ibm.EnSubscriptionSlackArgs;
import com.pulumi.ibm.inputs.EnSubscriptionSlackAttributesArgs;
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 slackSubscription = new EnSubscriptionSlack("slackSubscription", EnSubscriptionSlackArgs.builder()
            .instanceGuid(ibm_resource_instance.en_terraform_test_resource().guid())
            .description("The Slack subscription for slack destination in Event Notifications")
            .destinationId(ibm_en_destination_slack.destination1().destination_id())
            .topicId(ibm_en_topic.topic1().topic_id())
            .attributes(EnSubscriptionSlackAttributesArgs.builder()
                .channels(                
                    EnSubscriptionSlackAttributesChannelArgs.builder()
                        .id("GHUIIIJBBBV")
                        .operation("remove")
                        .build(),
                    EnSubscriptionSlackAttributesChannelArgs.builder()
                        .id("GGYEXCGHHUU")
                        .operation("add")
                        .build())
                .templateIdNotification("e40843c8-hgft-4717-8ee4-f923f2786a34")
                .build())
            .build());

    }
}
Copy
resources:
  slackSubscription:
    type: ibm:EnSubscriptionSlack
    properties:
      instanceGuid: ${ibm_resource_instance.en_terraform_test_resource.guid}
      description: The Slack subscription for slack destination in Event Notifications
      destinationId: ${ibm_en_destination_slack.destination1.destination_id}
      topicId: ${ibm_en_topic.topic1.topic_id}
      attributes:
        channels:
          - id: GHUIIIJBBBV
            operation: remove
          - id: GGYEXCGHHUU
            operation: add
        templateIdNotification: e40843c8-hgft-4717-8ee4-f923f2786a34
Copy

Create EnSubscriptionSlack Resource

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

Constructor syntax

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

@overload
def EnSubscriptionSlack(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        destination_id: Optional[str] = None,
                        instance_guid: Optional[str] = None,
                        topic_id: Optional[str] = None,
                        attributes: Optional[EnSubscriptionSlackAttributesArgs] = None,
                        description: Optional[str] = None,
                        en_subscription_slack_id: Optional[str] = None,
                        name: Optional[str] = None)
func NewEnSubscriptionSlack(ctx *Context, name string, args EnSubscriptionSlackArgs, opts ...ResourceOption) (*EnSubscriptionSlack, error)
public EnSubscriptionSlack(string name, EnSubscriptionSlackArgs args, CustomResourceOptions? opts = null)
public EnSubscriptionSlack(String name, EnSubscriptionSlackArgs args)
public EnSubscriptionSlack(String name, EnSubscriptionSlackArgs args, CustomResourceOptions options)
type: ibm:EnSubscriptionSlack
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. EnSubscriptionSlackArgs
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. EnSubscriptionSlackArgs
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. EnSubscriptionSlackArgs
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. EnSubscriptionSlackArgs
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. EnSubscriptionSlackArgs
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 enSubscriptionSlackResource = new Ibm.EnSubscriptionSlack("enSubscriptionSlackResource", new()
{
    DestinationId = "string",
    InstanceGuid = "string",
    TopicId = "string",
    Attributes = new Ibm.Inputs.EnSubscriptionSlackAttributesArgs
    {
        AttachmentColor = "string",
        Channels = new[]
        {
            new Ibm.Inputs.EnSubscriptionSlackAttributesChannelArgs
            {
                Id = "string",
                Operation = "string",
            },
        },
        TemplateIdNotification = "string",
    },
    Description = "string",
    EnSubscriptionSlackId = "string",
    Name = "string",
});
Copy
example, err := ibm.NewEnSubscriptionSlack(ctx, "enSubscriptionSlackResource", &ibm.EnSubscriptionSlackArgs{
	DestinationId: pulumi.String("string"),
	InstanceGuid:  pulumi.String("string"),
	TopicId:       pulumi.String("string"),
	Attributes: &ibm.EnSubscriptionSlackAttributesArgs{
		AttachmentColor: pulumi.String("string"),
		Channels: ibm.EnSubscriptionSlackAttributesChannelArray{
			&ibm.EnSubscriptionSlackAttributesChannelArgs{
				Id:        pulumi.String("string"),
				Operation: pulumi.String("string"),
			},
		},
		TemplateIdNotification: pulumi.String("string"),
	},
	Description:           pulumi.String("string"),
	EnSubscriptionSlackId: pulumi.String("string"),
	Name:                  pulumi.String("string"),
})
Copy
var enSubscriptionSlackResource = new EnSubscriptionSlack("enSubscriptionSlackResource", EnSubscriptionSlackArgs.builder()
    .destinationId("string")
    .instanceGuid("string")
    .topicId("string")
    .attributes(EnSubscriptionSlackAttributesArgs.builder()
        .attachmentColor("string")
        .channels(EnSubscriptionSlackAttributesChannelArgs.builder()
            .id("string")
            .operation("string")
            .build())
        .templateIdNotification("string")
        .build())
    .description("string")
    .enSubscriptionSlackId("string")
    .name("string")
    .build());
Copy
en_subscription_slack_resource = ibm.EnSubscriptionSlack("enSubscriptionSlackResource",
    destination_id="string",
    instance_guid="string",
    topic_id="string",
    attributes={
        "attachment_color": "string",
        "channels": [{
            "id": "string",
            "operation": "string",
        }],
        "template_id_notification": "string",
    },
    description="string",
    en_subscription_slack_id="string",
    name="string")
Copy
const enSubscriptionSlackResource = new ibm.EnSubscriptionSlack("enSubscriptionSlackResource", {
    destinationId: "string",
    instanceGuid: "string",
    topicId: "string",
    attributes: {
        attachmentColor: "string",
        channels: [{
            id: "string",
            operation: "string",
        }],
        templateIdNotification: "string",
    },
    description: "string",
    enSubscriptionSlackId: "string",
    name: "string",
});
Copy
type: ibm:EnSubscriptionSlack
properties:
    attributes:
        attachmentColor: string
        channels:
            - id: string
              operation: string
        templateIdNotification: string
    description: string
    destinationId: string
    enSubscriptionSlackId: string
    instanceGuid: string
    name: string
    topicId: string
Copy

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

DestinationId This property is required. string
Destination ID.
InstanceGuid This property is required. string
Unique identifier for IBM Cloud Event Notifications instance.
TopicId This property is required. string
Topic ID.
Attributes EnSubscriptionSlackAttributes
Subscription attributes. Nested scheme for attributes:
Description string
Subscription description.
EnSubscriptionSlackId string
(String) The unique identifier of the slack_subscription.
Name string
Subscription name.
DestinationId This property is required. string
Destination ID.
InstanceGuid This property is required. string
Unique identifier for IBM Cloud Event Notifications instance.
TopicId This property is required. string
Topic ID.
Attributes EnSubscriptionSlackAttributesArgs
Subscription attributes. Nested scheme for attributes:
Description string
Subscription description.
EnSubscriptionSlackId string
(String) The unique identifier of the slack_subscription.
Name string
Subscription name.
destinationId This property is required. String
Destination ID.
instanceGuid This property is required. String
Unique identifier for IBM Cloud Event Notifications instance.
topicId This property is required. String
Topic ID.
attributes EnSubscriptionSlackAttributes
Subscription attributes. Nested scheme for attributes:
description String
Subscription description.
enSubscriptionSlackId String
(String) The unique identifier of the slack_subscription.
name String
Subscription name.
destinationId This property is required. string
Destination ID.
instanceGuid This property is required. string
Unique identifier for IBM Cloud Event Notifications instance.
topicId This property is required. string
Topic ID.
attributes EnSubscriptionSlackAttributes
Subscription attributes. Nested scheme for attributes:
description string
Subscription description.
enSubscriptionSlackId string
(String) The unique identifier of the slack_subscription.
name string
Subscription name.
destination_id This property is required. str
Destination ID.
instance_guid This property is required. str
Unique identifier for IBM Cloud Event Notifications instance.
topic_id This property is required. str
Topic ID.
attributes EnSubscriptionSlackAttributesArgs
Subscription attributes. Nested scheme for attributes:
description str
Subscription description.
en_subscription_slack_id str
(String) The unique identifier of the slack_subscription.
name str
Subscription name.
destinationId This property is required. String
Destination ID.
instanceGuid This property is required. String
Unique identifier for IBM Cloud Event Notifications instance.
topicId This property is required. String
Topic ID.
attributes Property Map
Subscription attributes. Nested scheme for attributes:
description String
Subscription description.
enSubscriptionSlackId String
(String) The unique identifier of the slack_subscription.
name String
Subscription name.

Outputs

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

DestinationName string
The Destintion name.
DestinationType string
The type of Destination.
Id string
The provider-assigned unique ID for this managed resource.
SubscriptionId string
(String) The unique identifier of the created subscription.
TopicName string
Name of the topic.
UpdatedAt string
(String) Last updated time.
DestinationName string
The Destintion name.
DestinationType string
The type of Destination.
Id string
The provider-assigned unique ID for this managed resource.
SubscriptionId string
(String) The unique identifier of the created subscription.
TopicName string
Name of the topic.
UpdatedAt string
(String) Last updated time.
destinationName String
The Destintion name.
destinationType String
The type of Destination.
id String
The provider-assigned unique ID for this managed resource.
subscriptionId String
(String) The unique identifier of the created subscription.
topicName String
Name of the topic.
updatedAt String
(String) Last updated time.
destinationName string
The Destintion name.
destinationType string
The type of Destination.
id string
The provider-assigned unique ID for this managed resource.
subscriptionId string
(String) The unique identifier of the created subscription.
topicName string
Name of the topic.
updatedAt string
(String) Last updated time.
destination_name str
The Destintion name.
destination_type str
The type of Destination.
id str
The provider-assigned unique ID for this managed resource.
subscription_id str
(String) The unique identifier of the created subscription.
topic_name str
Name of the topic.
updated_at str
(String) Last updated time.
destinationName String
The Destintion name.
destinationType String
The type of Destination.
id String
The provider-assigned unique ID for this managed resource.
subscriptionId String
(String) The unique identifier of the created subscription.
topicName String
Name of the topic.
updatedAt String
(String) Last updated time.

Look up Existing EnSubscriptionSlack Resource

Get an existing EnSubscriptionSlack 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?: EnSubscriptionSlackState, opts?: CustomResourceOptions): EnSubscriptionSlack
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        attributes: Optional[EnSubscriptionSlackAttributesArgs] = None,
        description: Optional[str] = None,
        destination_id: Optional[str] = None,
        destination_name: Optional[str] = None,
        destination_type: Optional[str] = None,
        en_subscription_slack_id: Optional[str] = None,
        instance_guid: Optional[str] = None,
        name: Optional[str] = None,
        subscription_id: Optional[str] = None,
        topic_id: Optional[str] = None,
        topic_name: Optional[str] = None,
        updated_at: Optional[str] = None) -> EnSubscriptionSlack
func GetEnSubscriptionSlack(ctx *Context, name string, id IDInput, state *EnSubscriptionSlackState, opts ...ResourceOption) (*EnSubscriptionSlack, error)
public static EnSubscriptionSlack Get(string name, Input<string> id, EnSubscriptionSlackState? state, CustomResourceOptions? opts = null)
public static EnSubscriptionSlack get(String name, Output<String> id, EnSubscriptionSlackState state, CustomResourceOptions options)
resources:  _:    type: ibm:EnSubscriptionSlack    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:
Attributes EnSubscriptionSlackAttributes
Subscription attributes. Nested scheme for attributes:
Description string
Subscription description.
DestinationId string
Destination ID.
DestinationName string
The Destintion name.
DestinationType string
The type of Destination.
EnSubscriptionSlackId string
(String) The unique identifier of the slack_subscription.
InstanceGuid string
Unique identifier for IBM Cloud Event Notifications instance.
Name string
Subscription name.
SubscriptionId string
(String) The unique identifier of the created subscription.
TopicId string
Topic ID.
TopicName string
Name of the topic.
UpdatedAt string
(String) Last updated time.
Attributes EnSubscriptionSlackAttributesArgs
Subscription attributes. Nested scheme for attributes:
Description string
Subscription description.
DestinationId string
Destination ID.
DestinationName string
The Destintion name.
DestinationType string
The type of Destination.
EnSubscriptionSlackId string
(String) The unique identifier of the slack_subscription.
InstanceGuid string
Unique identifier for IBM Cloud Event Notifications instance.
Name string
Subscription name.
SubscriptionId string
(String) The unique identifier of the created subscription.
TopicId string
Topic ID.
TopicName string
Name of the topic.
UpdatedAt string
(String) Last updated time.
attributes EnSubscriptionSlackAttributes
Subscription attributes. Nested scheme for attributes:
description String
Subscription description.
destinationId String
Destination ID.
destinationName String
The Destintion name.
destinationType String
The type of Destination.
enSubscriptionSlackId String
(String) The unique identifier of the slack_subscription.
instanceGuid String
Unique identifier for IBM Cloud Event Notifications instance.
name String
Subscription name.
subscriptionId String
(String) The unique identifier of the created subscription.
topicId String
Topic ID.
topicName String
Name of the topic.
updatedAt String
(String) Last updated time.
attributes EnSubscriptionSlackAttributes
Subscription attributes. Nested scheme for attributes:
description string
Subscription description.
destinationId string
Destination ID.
destinationName string
The Destintion name.
destinationType string
The type of Destination.
enSubscriptionSlackId string
(String) The unique identifier of the slack_subscription.
instanceGuid string
Unique identifier for IBM Cloud Event Notifications instance.
name string
Subscription name.
subscriptionId string
(String) The unique identifier of the created subscription.
topicId string
Topic ID.
topicName string
Name of the topic.
updatedAt string
(String) Last updated time.
attributes EnSubscriptionSlackAttributesArgs
Subscription attributes. Nested scheme for attributes:
description str
Subscription description.
destination_id str
Destination ID.
destination_name str
The Destintion name.
destination_type str
The type of Destination.
en_subscription_slack_id str
(String) The unique identifier of the slack_subscription.
instance_guid str
Unique identifier for IBM Cloud Event Notifications instance.
name str
Subscription name.
subscription_id str
(String) The unique identifier of the created subscription.
topic_id str
Topic ID.
topic_name str
Name of the topic.
updated_at str
(String) Last updated time.
attributes Property Map
Subscription attributes. Nested scheme for attributes:
description String
Subscription description.
destinationId String
Destination ID.
destinationName String
The Destintion name.
destinationType String
The type of Destination.
enSubscriptionSlackId String
(String) The unique identifier of the slack_subscription.
instanceGuid String
Unique identifier for IBM Cloud Event Notifications instance.
name String
Subscription name.
subscriptionId String
(String) The unique identifier of the created subscription.
topicId String
Topic ID.
topicName String
Name of the topic.
updatedAt String
(String) Last updated time.

Supporting Types

EnSubscriptionSlackAttributes
, EnSubscriptionSlackAttributesArgs

AttachmentColor string
The color code for slack attachment.
Channels List<EnSubscriptionSlackAttributesChannel>
List of channels . Channel attributes are
TemplateIdNotification string
The templete id for notification.
AttachmentColor string
The color code for slack attachment.
Channels []EnSubscriptionSlackAttributesChannel
List of channels . Channel attributes are
TemplateIdNotification string
The templete id for notification.
attachmentColor String
The color code for slack attachment.
channels List<EnSubscriptionSlackAttributesChannel>
List of channels . Channel attributes are
templateIdNotification String
The templete id for notification.
attachmentColor string
The color code for slack attachment.
channels EnSubscriptionSlackAttributesChannel[]
List of channels . Channel attributes are
templateIdNotification string
The templete id for notification.
attachment_color str
The color code for slack attachment.
channels Sequence[EnSubscriptionSlackAttributesChannel]
List of channels . Channel attributes are
template_id_notification str
The templete id for notification.
attachmentColor String
The color code for slack attachment.
channels List<Property Map>
List of channels . Channel attributes are
templateIdNotification String
The templete id for notification.

EnSubscriptionSlackAttributesChannel
, EnSubscriptionSlackAttributesChannelArgs

Id This property is required. string
channel id
Operation string
The channel operation type . Required in case of slack subscription update.
Id This property is required. string
channel id
Operation string
The channel operation type . Required in case of slack subscription update.
id This property is required. String
channel id
operation String
The channel operation type . Required in case of slack subscription update.
id This property is required. string
channel id
operation string
The channel operation type . Required in case of slack subscription update.
id This property is required. str
channel id
operation str
The channel operation type . Required in case of slack subscription update.
id This property is required. String
channel id
operation String
The channel operation type . Required in case of slack subscription update.

Import

You can import the ibm_en_subscription_slack resource by using id.

The id property can be formed from instance_guid, and subscription_id in the following format:

<instance_guid>/<subscription_id>

  • instance_guid: A string. Unique identifier for IBM Cloud Event Notifications instance.

  • subscription_id: A string. Unique identifier for Subscription.

Example

$ pulumi import ibm:index/enSubscriptionSlack:EnSubscriptionSlack slack_subscription <instance_guid>/<subscription_id>
Copy

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

Package Details

Repository
ibm ibm-cloud/terraform-provider-ibm
License
Notes
This Pulumi package is based on the ibm Terraform Provider.