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",
},
});
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",
})
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
})
}
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",
},
});
});
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());
}
}
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
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",
},
});
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",
})
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
})
}
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",
},
});
});
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());
}
}
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
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",
},
});
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",
})
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
})
}
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",
},
});
});
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());
}
}
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
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 string
- The unique name of the resource.
- args EnSubscriptionSlackArgs
- 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 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 string
- The unique name of the resource.
- args EnSubscriptionSlackArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EnSubscriptionSlackArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
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"),
})
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());
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")
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",
});
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
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:
- Destination
Id string - Destination ID.
- Instance
Guid string - Unique identifier for IBM Cloud Event Notifications instance.
- Topic
Id string - Topic ID.
- Attributes
En
Subscription Slack Attributes - Subscription attributes. Nested scheme for attributes:
- Description string
- Subscription description.
- En
Subscription stringSlack Id - (String) The unique identifier of the
slack_subscription
. - Name string
- Subscription name.
- Destination
Id string - Destination ID.
- Instance
Guid string - Unique identifier for IBM Cloud Event Notifications instance.
- Topic
Id string - Topic ID.
- Attributes
En
Subscription Slack Attributes Args - Subscription attributes. Nested scheme for attributes:
- Description string
- Subscription description.
- En
Subscription stringSlack Id - (String) The unique identifier of the
slack_subscription
. - Name string
- Subscription name.
- destination
Id String - Destination ID.
- instance
Guid String - Unique identifier for IBM Cloud Event Notifications instance.
- topic
Id String - Topic ID.
- attributes
En
Subscription Slack Attributes - Subscription attributes. Nested scheme for attributes:
- description String
- Subscription description.
- en
Subscription StringSlack Id - (String) The unique identifier of the
slack_subscription
. - name String
- Subscription name.
- destination
Id string - Destination ID.
- instance
Guid string - Unique identifier for IBM Cloud Event Notifications instance.
- topic
Id string - Topic ID.
- attributes
En
Subscription Slack Attributes - Subscription attributes. Nested scheme for attributes:
- description string
- Subscription description.
- en
Subscription stringSlack Id - (String) The unique identifier of the
slack_subscription
. - name string
- Subscription name.
- destination_
id str - Destination ID.
- instance_
guid str - Unique identifier for IBM Cloud Event Notifications instance.
- topic_
id str - Topic ID.
- attributes
En
Subscription Slack Attributes Args - Subscription attributes. Nested scheme for attributes:
- description str
- Subscription description.
- en_
subscription_ strslack_ id - (String) The unique identifier of the
slack_subscription
. - name str
- Subscription name.
- destination
Id String - Destination ID.
- instance
Guid String - Unique identifier for IBM Cloud Event Notifications instance.
- topic
Id String - Topic ID.
- attributes Property Map
- Subscription attributes. Nested scheme for attributes:
- description String
- Subscription description.
- en
Subscription StringSlack Id - (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:
- Destination
Name string - The Destintion name.
- Destination
Type string - The type of Destination.
- Id string
- The provider-assigned unique ID for this managed resource.
- Subscription
Id string - (String) The unique identifier of the created subscription.
- Topic
Name string - Name of the topic.
- Updated
At string - (String) Last updated time.
- Destination
Name string - The Destintion name.
- Destination
Type string - The type of Destination.
- Id string
- The provider-assigned unique ID for this managed resource.
- Subscription
Id string - (String) The unique identifier of the created subscription.
- Topic
Name string - Name of the topic.
- Updated
At string - (String) Last updated time.
- destination
Name String - The Destintion name.
- destination
Type String - The type of Destination.
- id String
- The provider-assigned unique ID for this managed resource.
- subscription
Id String - (String) The unique identifier of the created subscription.
- topic
Name String - Name of the topic.
- updated
At String - (String) Last updated time.
- destination
Name string - The Destintion name.
- destination
Type string - The type of Destination.
- id string
- The provider-assigned unique ID for this managed resource.
- subscription
Id string - (String) The unique identifier of the created subscription.
- topic
Name string - Name of the topic.
- updated
At 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.
- destination
Name String - The Destintion name.
- destination
Type String - The type of Destination.
- id String
- The provider-assigned unique ID for this managed resource.
- subscription
Id String - (String) The unique identifier of the created subscription.
- topic
Name String - Name of the topic.
- updated
At 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
- 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.
- Attributes
En
Subscription Slack Attributes - Subscription attributes. Nested scheme for attributes:
- Description string
- Subscription description.
- Destination
Id string - Destination ID.
- Destination
Name string - The Destintion name.
- Destination
Type string - The type of Destination.
- En
Subscription stringSlack Id - (String) The unique identifier of the
slack_subscription
. - Instance
Guid string - Unique identifier for IBM Cloud Event Notifications instance.
- Name string
- Subscription name.
- Subscription
Id string - (String) The unique identifier of the created subscription.
- Topic
Id string - Topic ID.
- Topic
Name string - Name of the topic.
- Updated
At string - (String) Last updated time.
- Attributes
En
Subscription Slack Attributes Args - Subscription attributes. Nested scheme for attributes:
- Description string
- Subscription description.
- Destination
Id string - Destination ID.
- Destination
Name string - The Destintion name.
- Destination
Type string - The type of Destination.
- En
Subscription stringSlack Id - (String) The unique identifier of the
slack_subscription
. - Instance
Guid string - Unique identifier for IBM Cloud Event Notifications instance.
- Name string
- Subscription name.
- Subscription
Id string - (String) The unique identifier of the created subscription.
- Topic
Id string - Topic ID.
- Topic
Name string - Name of the topic.
- Updated
At string - (String) Last updated time.
- attributes
En
Subscription Slack Attributes - Subscription attributes. Nested scheme for attributes:
- description String
- Subscription description.
- destination
Id String - Destination ID.
- destination
Name String - The Destintion name.
- destination
Type String - The type of Destination.
- en
Subscription StringSlack Id - (String) The unique identifier of the
slack_subscription
. - instance
Guid String - Unique identifier for IBM Cloud Event Notifications instance.
- name String
- Subscription name.
- subscription
Id String - (String) The unique identifier of the created subscription.
- topic
Id String - Topic ID.
- topic
Name String - Name of the topic.
- updated
At String - (String) Last updated time.
- attributes
En
Subscription Slack Attributes - Subscription attributes. Nested scheme for attributes:
- description string
- Subscription description.
- destination
Id string - Destination ID.
- destination
Name string - The Destintion name.
- destination
Type string - The type of Destination.
- en
Subscription stringSlack Id - (String) The unique identifier of the
slack_subscription
. - instance
Guid string - Unique identifier for IBM Cloud Event Notifications instance.
- name string
- Subscription name.
- subscription
Id string - (String) The unique identifier of the created subscription.
- topic
Id string - Topic ID.
- topic
Name string - Name of the topic.
- updated
At string - (String) Last updated time.
- attributes
En
Subscription Slack Attributes Args - 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_ strslack_ id - (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.
- destination
Id String - Destination ID.
- destination
Name String - The Destintion name.
- destination
Type String - The type of Destination.
- en
Subscription StringSlack Id - (String) The unique identifier of the
slack_subscription
. - instance
Guid String - Unique identifier for IBM Cloud Event Notifications instance.
- name String
- Subscription name.
- subscription
Id String - (String) The unique identifier of the created subscription.
- topic
Id String - Topic ID.
- topic
Name String - Name of the topic.
- updated
At String - (String) Last updated time.
Supporting Types
EnSubscriptionSlackAttributes, EnSubscriptionSlackAttributesArgs
- Attachment
Color string - The color code for slack attachment.
- Channels
List<En
Subscription Slack Attributes Channel> - List of channels . Channel attributes are
- Template
Id stringNotification - The templete id for notification.
- Attachment
Color string - The color code for slack attachment.
- Channels
[]En
Subscription Slack Attributes Channel - List of channels . Channel attributes are
- Template
Id stringNotification - The templete id for notification.
- attachment
Color String - The color code for slack attachment.
- channels
List<En
Subscription Slack Attributes Channel> - List of channels . Channel attributes are
- template
Id StringNotification - The templete id for notification.
- attachment
Color string - The color code for slack attachment.
- channels
En
Subscription Slack Attributes Channel[] - List of channels . Channel attributes are
- template
Id stringNotification - The templete id for notification.
- attachment_
color str - The color code for slack attachment.
- channels
Sequence[En
Subscription Slack Attributes Channel] - List of channels . Channel attributes are
- template_
id_ strnotification - The templete id for notification.
- attachment
Color String - The color code for slack attachment.
- channels List<Property Map>
- List of channels . Channel attributes are
- template
Id StringNotification - The templete id for notification.
EnSubscriptionSlackAttributesChannel, EnSubscriptionSlackAttributesChannelArgs
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>
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.