ibm.EnTopic
Explore with Pulumi AI
Create, update, or delete a topic by using IBM Cloud™ Event Notifications.
Example Usage
Subscription example for Topic for other than scheduler source
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const enTopic = new ibm.EnTopic("enTopic", {
instanceGuid: ibm_resource_instance.en_terraform_test_resource.guid,
description: "Topic for EN events routing",
sources: [{
id: ibm_resource_instance.cloud_logs_instance.crn,
rules: [{
enabled: true,
eventTypeFilter: "$.*",
notificationFilter: `$.data.alert_definition.name == '[${_var.environment}]'`,
}],
}],
});
import pulumi
import pulumi_ibm as ibm
en_topic = ibm.EnTopic("enTopic",
instance_guid=ibm_resource_instance["en_terraform_test_resource"]["guid"],
description="Topic for EN events routing",
sources=[{
"id": ibm_resource_instance["cloud_logs_instance"]["crn"],
"rules": [{
"enabled": True,
"event_type_filter": "$.*",
"notification_filter": f"$.data.alert_definition.name == '[{var['environment']}]'",
}],
}])
package main
import (
"fmt"
"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.NewEnTopic(ctx, "enTopic", &ibm.EnTopicArgs{
InstanceGuid: pulumi.Any(ibm_resource_instance.En_terraform_test_resource.Guid),
Description: pulumi.String("Topic for EN events routing"),
Sources: ibm.EnTopicSourceArray{
&ibm.EnTopicSourceArgs{
Id: pulumi.Any(ibm_resource_instance.Cloud_logs_instance.Crn),
Rules: ibm.EnTopicSourceRuleArray{
&ibm.EnTopicSourceRuleArgs{
Enabled: pulumi.Bool(true),
EventTypeFilter: pulumi.String("$.*"),
NotificationFilter: pulumi.Sprintf("$.data.alert_definition.name == '[%v]'", _var.Environment),
},
},
},
},
})
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 enTopic = new Ibm.EnTopic("enTopic", new()
{
InstanceGuid = ibm_resource_instance.En_terraform_test_resource.Guid,
Description = "Topic for EN events routing",
Sources = new[]
{
new Ibm.Inputs.EnTopicSourceArgs
{
Id = ibm_resource_instance.Cloud_logs_instance.Crn,
Rules = new[]
{
new Ibm.Inputs.EnTopicSourceRuleArgs
{
Enabled = true,
EventTypeFilter = "$.*",
NotificationFilter = $"$.data.alert_definition.name == '[{@var.Environment}]'",
},
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.EnTopic;
import com.pulumi.ibm.EnTopicArgs;
import com.pulumi.ibm.inputs.EnTopicSourceArgs;
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 enTopic = new EnTopic("enTopic", EnTopicArgs.builder()
.instanceGuid(ibm_resource_instance.en_terraform_test_resource().guid())
.description("Topic for EN events routing")
.sources(EnTopicSourceArgs.builder()
.id(ibm_resource_instance.cloud_logs_instance().crn())
.rules(EnTopicSourceRuleArgs.builder()
.enabled(true)
.eventTypeFilter("$.*")
.notificationFilter(String.format("$.data.alert_definition.name == '[%s]'", var_.environment()))
.build())
.build())
.build());
}
}
resources:
enTopic:
type: ibm:EnTopic
properties:
instanceGuid: ${ibm_resource_instance.en_terraform_test_resource.guid}
description: Topic for EN events routing
sources:
- id: ${ibm_resource_instance.cloud_logs_instance.crn}
rules:
- enabled: true
eventTypeFilter: $.*
notificationFilter: $.data.alert_definition.name == '[${var.environment}]'
Subscription example for Topic periodic-timer source
Create EnTopic Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new EnTopic(name: string, args: EnTopicArgs, opts?: CustomResourceOptions);
@overload
def EnTopic(resource_name: str,
args: EnTopicArgs,
opts: Optional[ResourceOptions] = None)
@overload
def EnTopic(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_guid: Optional[str] = None,
description: Optional[str] = None,
en_topic_id: Optional[str] = None,
name: Optional[str] = None,
sources: Optional[Sequence[EnTopicSourceArgs]] = None)
func NewEnTopic(ctx *Context, name string, args EnTopicArgs, opts ...ResourceOption) (*EnTopic, error)
public EnTopic(string name, EnTopicArgs args, CustomResourceOptions? opts = null)
public EnTopic(String name, EnTopicArgs args)
public EnTopic(String name, EnTopicArgs args, CustomResourceOptions options)
type: ibm:EnTopic
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 EnTopicArgs
- 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 EnTopicArgs
- 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 EnTopicArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EnTopicArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EnTopicArgs
- 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 enTopicResource = new Ibm.EnTopic("enTopicResource", new()
{
InstanceGuid = "string",
Description = "string",
EnTopicId = "string",
Name = "string",
Sources = new[]
{
new Ibm.Inputs.EnTopicSourceArgs
{
Id = "string",
Rules = new[]
{
new Ibm.Inputs.EnTopicSourceRuleArgs
{
Enabled = false,
EventScheduleFilters = new[]
{
new Ibm.Inputs.EnTopicSourceRuleEventScheduleFilterArgs
{
EndsAt = "string",
Expression = "string",
StartsAt = "string",
},
},
EventTypeFilter = "string",
NotificationFilter = "string",
},
},
},
},
});
example, err := ibm.NewEnTopic(ctx, "enTopicResource", &ibm.EnTopicArgs{
InstanceGuid: pulumi.String("string"),
Description: pulumi.String("string"),
EnTopicId: pulumi.String("string"),
Name: pulumi.String("string"),
Sources: ibm.EnTopicSourceArray{
&ibm.EnTopicSourceArgs{
Id: pulumi.String("string"),
Rules: ibm.EnTopicSourceRuleArray{
&ibm.EnTopicSourceRuleArgs{
Enabled: pulumi.Bool(false),
EventScheduleFilters: ibm.EnTopicSourceRuleEventScheduleFilterArray{
&ibm.EnTopicSourceRuleEventScheduleFilterArgs{
EndsAt: pulumi.String("string"),
Expression: pulumi.String("string"),
StartsAt: pulumi.String("string"),
},
},
EventTypeFilter: pulumi.String("string"),
NotificationFilter: pulumi.String("string"),
},
},
},
},
})
var enTopicResource = new EnTopic("enTopicResource", EnTopicArgs.builder()
.instanceGuid("string")
.description("string")
.enTopicId("string")
.name("string")
.sources(EnTopicSourceArgs.builder()
.id("string")
.rules(EnTopicSourceRuleArgs.builder()
.enabled(false)
.eventScheduleFilters(EnTopicSourceRuleEventScheduleFilterArgs.builder()
.endsAt("string")
.expression("string")
.startsAt("string")
.build())
.eventTypeFilter("string")
.notificationFilter("string")
.build())
.build())
.build());
en_topic_resource = ibm.EnTopic("enTopicResource",
instance_guid="string",
description="string",
en_topic_id="string",
name="string",
sources=[{
"id": "string",
"rules": [{
"enabled": False,
"event_schedule_filters": [{
"ends_at": "string",
"expression": "string",
"starts_at": "string",
}],
"event_type_filter": "string",
"notification_filter": "string",
}],
}])
const enTopicResource = new ibm.EnTopic("enTopicResource", {
instanceGuid: "string",
description: "string",
enTopicId: "string",
name: "string",
sources: [{
id: "string",
rules: [{
enabled: false,
eventScheduleFilters: [{
endsAt: "string",
expression: "string",
startsAt: "string",
}],
eventTypeFilter: "string",
notificationFilter: "string",
}],
}],
});
type: ibm:EnTopic
properties:
description: string
enTopicId: string
instanceGuid: string
name: string
sources:
- id: string
rules:
- enabled: false
eventScheduleFilters:
- endsAt: string
expression: string
startsAt: string
eventTypeFilter: string
notificationFilter: string
EnTopic 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 EnTopic resource accepts the following input properties:
- Instance
Guid string - Unique identifier for IBM Cloud Event Notifications instance.
- Description string
- Description of the topic.
- En
Topic stringId - (Required, String) Subscription ID.
- Name string
- Name of the topic.
- Sources
List<En
Topic Source> - List of sources. Nested scheme for sources:
- Instance
Guid string - Unique identifier for IBM Cloud Event Notifications instance.
- Description string
- Description of the topic.
- En
Topic stringId - (Required, String) Subscription ID.
- Name string
- Name of the topic.
- Sources
[]En
Topic Source Args - List of sources. Nested scheme for sources:
- instance
Guid String - Unique identifier for IBM Cloud Event Notifications instance.
- description String
- Description of the topic.
- en
Topic StringId - (Required, String) Subscription ID.
- name String
- Name of the topic.
- sources
List<En
Topic Source> - List of sources. Nested scheme for sources:
- instance
Guid string - Unique identifier for IBM Cloud Event Notifications instance.
- description string
- Description of the topic.
- en
Topic stringId - (Required, String) Subscription ID.
- name string
- Name of the topic.
- sources
En
Topic Source[] - List of sources. Nested scheme for sources:
- instance_
guid str - Unique identifier for IBM Cloud Event Notifications instance.
- description str
- Description of the topic.
- en_
topic_ strid - (Required, String) Subscription ID.
- name str
- Name of the topic.
- sources
Sequence[En
Topic Source Args] - List of sources. Nested scheme for sources:
- instance
Guid String - Unique identifier for IBM Cloud Event Notifications instance.
- description String
- Description of the topic.
- en
Topic StringId - (Required, String) Subscription ID.
- name String
- Name of the topic.
- sources List<Property Map>
- List of sources. Nested scheme for sources:
Outputs
All input properties are implicitly available as output properties. Additionally, the EnTopic resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Source
Count double - (Required, Integer) Number of sources.
- Subscription
Count double - (Required, Integer) Number of subscriptions.
- Subscriptions
List<En
Topic Subscription> - (Required, List) List of subscriptions. Nested scheme for subscriptions:
- Topic
Id string - (Required, String) Topic ID.
- Updated
At string - (Required, String) Last time the topic was updated.
- Id string
- The provider-assigned unique ID for this managed resource.
- Source
Count float64 - (Required, Integer) Number of sources.
- Subscription
Count float64 - (Required, Integer) Number of subscriptions.
- Subscriptions
[]En
Topic Subscription - (Required, List) List of subscriptions. Nested scheme for subscriptions:
- Topic
Id string - (Required, String) Topic ID.
- Updated
At string - (Required, String) Last time the topic was updated.
- id String
- The provider-assigned unique ID for this managed resource.
- source
Count Double - (Required, Integer) Number of sources.
- subscription
Count Double - (Required, Integer) Number of subscriptions.
- subscriptions
List<En
Topic Subscription> - (Required, List) List of subscriptions. Nested scheme for subscriptions:
- topic
Id String - (Required, String) Topic ID.
- updated
At String - (Required, String) Last time the topic was updated.
- id string
- The provider-assigned unique ID for this managed resource.
- source
Count number - (Required, Integer) Number of sources.
- subscription
Count number - (Required, Integer) Number of subscriptions.
- subscriptions
En
Topic Subscription[] - (Required, List) List of subscriptions. Nested scheme for subscriptions:
- topic
Id string - (Required, String) Topic ID.
- updated
At string - (Required, String) Last time the topic was updated.
- id str
- The provider-assigned unique ID for this managed resource.
- source_
count float - (Required, Integer) Number of sources.
- subscription_
count float - (Required, Integer) Number of subscriptions.
- subscriptions
Sequence[En
Topic Subscription] - (Required, List) List of subscriptions. Nested scheme for subscriptions:
- topic_
id str - (Required, String) Topic ID.
- updated_
at str - (Required, String) Last time the topic was updated.
- id String
- The provider-assigned unique ID for this managed resource.
- source
Count Number - (Required, Integer) Number of sources.
- subscription
Count Number - (Required, Integer) Number of subscriptions.
- subscriptions List<Property Map>
- (Required, List) List of subscriptions. Nested scheme for subscriptions:
- topic
Id String - (Required, String) Topic ID.
- updated
At String - (Required, String) Last time the topic was updated.
Look up Existing EnTopic Resource
Get an existing EnTopic 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?: EnTopicState, opts?: CustomResourceOptions): EnTopic
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
en_topic_id: Optional[str] = None,
instance_guid: Optional[str] = None,
name: Optional[str] = None,
source_count: Optional[float] = None,
sources: Optional[Sequence[EnTopicSourceArgs]] = None,
subscription_count: Optional[float] = None,
subscriptions: Optional[Sequence[EnTopicSubscriptionArgs]] = None,
topic_id: Optional[str] = None,
updated_at: Optional[str] = None) -> EnTopic
func GetEnTopic(ctx *Context, name string, id IDInput, state *EnTopicState, opts ...ResourceOption) (*EnTopic, error)
public static EnTopic Get(string name, Input<string> id, EnTopicState? state, CustomResourceOptions? opts = null)
public static EnTopic get(String name, Output<String> id, EnTopicState state, CustomResourceOptions options)
resources: _: type: ibm:EnTopic 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.
- Description string
- Description of the topic.
- En
Topic stringId - (Required, String) Subscription ID.
- Instance
Guid string - Unique identifier for IBM Cloud Event Notifications instance.
- Name string
- Name of the topic.
- Source
Count double - (Required, Integer) Number of sources.
- Sources
List<En
Topic Source> - List of sources. Nested scheme for sources:
- Subscription
Count double - (Required, Integer) Number of subscriptions.
- Subscriptions
List<En
Topic Subscription> - (Required, List) List of subscriptions. Nested scheme for subscriptions:
- Topic
Id string - (Required, String) Topic ID.
- Updated
At string - (Required, String) Last time the topic was updated.
- Description string
- Description of the topic.
- En
Topic stringId - (Required, String) Subscription ID.
- Instance
Guid string - Unique identifier for IBM Cloud Event Notifications instance.
- Name string
- Name of the topic.
- Source
Count float64 - (Required, Integer) Number of sources.
- Sources
[]En
Topic Source Args - List of sources. Nested scheme for sources:
- Subscription
Count float64 - (Required, Integer) Number of subscriptions.
- Subscriptions
[]En
Topic Subscription Args - (Required, List) List of subscriptions. Nested scheme for subscriptions:
- Topic
Id string - (Required, String) Topic ID.
- Updated
At string - (Required, String) Last time the topic was updated.
- description String
- Description of the topic.
- en
Topic StringId - (Required, String) Subscription ID.
- instance
Guid String - Unique identifier for IBM Cloud Event Notifications instance.
- name String
- Name of the topic.
- source
Count Double - (Required, Integer) Number of sources.
- sources
List<En
Topic Source> - List of sources. Nested scheme for sources:
- subscription
Count Double - (Required, Integer) Number of subscriptions.
- subscriptions
List<En
Topic Subscription> - (Required, List) List of subscriptions. Nested scheme for subscriptions:
- topic
Id String - (Required, String) Topic ID.
- updated
At String - (Required, String) Last time the topic was updated.
- description string
- Description of the topic.
- en
Topic stringId - (Required, String) Subscription ID.
- instance
Guid string - Unique identifier for IBM Cloud Event Notifications instance.
- name string
- Name of the topic.
- source
Count number - (Required, Integer) Number of sources.
- sources
En
Topic Source[] - List of sources. Nested scheme for sources:
- subscription
Count number - (Required, Integer) Number of subscriptions.
- subscriptions
En
Topic Subscription[] - (Required, List) List of subscriptions. Nested scheme for subscriptions:
- topic
Id string - (Required, String) Topic ID.
- updated
At string - (Required, String) Last time the topic was updated.
- description str
- Description of the topic.
- en_
topic_ strid - (Required, String) Subscription ID.
- instance_
guid str - Unique identifier for IBM Cloud Event Notifications instance.
- name str
- Name of the topic.
- source_
count float - (Required, Integer) Number of sources.
- sources
Sequence[En
Topic Source Args] - List of sources. Nested scheme for sources:
- subscription_
count float - (Required, Integer) Number of subscriptions.
- subscriptions
Sequence[En
Topic Subscription Args] - (Required, List) List of subscriptions. Nested scheme for subscriptions:
- topic_
id str - (Required, String) Topic ID.
- updated_
at str - (Required, String) Last time the topic was updated.
- description String
- Description of the topic.
- en
Topic StringId - (Required, String) Subscription ID.
- instance
Guid String - Unique identifier for IBM Cloud Event Notifications instance.
- name String
- Name of the topic.
- source
Count Number - (Required, Integer) Number of sources.
- sources List<Property Map>
- List of sources. Nested scheme for sources:
- subscription
Count Number - (Required, Integer) Number of subscriptions.
- subscriptions List<Property Map>
- (Required, List) List of subscriptions. Nested scheme for subscriptions:
- topic
Id String - (Required, String) Topic ID.
- updated
At String - (Required, String) Last time the topic was updated.
Supporting Types
EnTopicSource, EnTopicSourceArgs
- Id string
- ID of the source.
- Rules
List<En
Topic Source Rule> - List of rules. Nested scheme for rules:
- Id string
- ID of the source.
- Rules
[]En
Topic Source Rule - List of rules. Nested scheme for rules:
- id String
- ID of the source.
- rules
List<En
Topic Source Rule> - List of rules. Nested scheme for rules:
- id string
- ID of the source.
- rules
En
Topic Source Rule[] - List of rules. Nested scheme for rules:
- id str
- ID of the source.
- rules
Sequence[En
Topic Source Rule] - List of rules. Nested scheme for rules:
- id String
- ID of the source.
- rules List<Property Map>
- List of rules. Nested scheme for rules:
EnTopicSourceRule, EnTopicSourceRuleArgs
- Enabled bool
- Whether the rule is enabled or not.
- Event
Schedule List<EnFilters Topic Source Rule Event Schedule Filter> - Event Schedule Filter for periodic-timer source.
- Event
Type stringFilter - Event type filter.
- Notification
Filter string - Notification filter.
- Enabled bool
- Whether the rule is enabled or not.
- Event
Schedule []EnFilters Topic Source Rule Event Schedule Filter - Event Schedule Filter for periodic-timer source.
- Event
Type stringFilter - Event type filter.
- Notification
Filter string - Notification filter.
- enabled Boolean
- Whether the rule is enabled or not.
- event
Schedule List<EnFilters Topic Source Rule Event Schedule Filter> - Event Schedule Filter for periodic-timer source.
- event
Type StringFilter - Event type filter.
- notification
Filter String - Notification filter.
- enabled boolean
- Whether the rule is enabled or not.
- event
Schedule EnFilters Topic Source Rule Event Schedule Filter[] - Event Schedule Filter for periodic-timer source.
- event
Type stringFilter - Event type filter.
- notification
Filter string - Notification filter.
- enabled bool
- Whether the rule is enabled or not.
- event_
schedule_ Sequence[Enfilters Topic Source Rule Event Schedule Filter] - Event Schedule Filter for periodic-timer source.
- event_
type_ strfilter - Event type filter.
- notification_
filter str - Notification filter.
- enabled Boolean
- Whether the rule is enabled or not.
- event
Schedule List<Property Map>Filters - Event Schedule Filter for periodic-timer source.
- event
Type StringFilter - Event type filter.
- notification
Filter String - Notification filter.
EnTopicSourceRuleEventScheduleFilter, EnTopicSourceRuleEventScheduleFilterArgs
- Ends
At string - event schedule end time.
- Expression string
- cron schedule expression.
- Starts
At string - event schedule start time.
- Ends
At string - event schedule end time.
- Expression string
- cron schedule expression.
- Starts
At string - event schedule start time.
- ends
At String - event schedule end time.
- expression String
- cron schedule expression.
- starts
At String - event schedule start time.
- ends
At string - event schedule end time.
- expression string
- cron schedule expression.
- starts
At string - event schedule start time.
- ends_
at str - event schedule end time.
- expression str
- cron schedule expression.
- starts_
at str - event schedule start time.
- ends
At String - event schedule end time.
- expression String
- cron schedule expression.
- starts
At String - event schedule start time.
EnTopicSubscription, EnTopicSubscriptionArgs
- Description string
- Description of the topic.
- Destination
Id string - (Required, String) The destination ID.
- Destination
Type string - (Required, String) The type of destination.
- Id string
- (Required, String) Subscription ID.
- Name string
- Name of the topic.
- Topic
Id string - (Required, String) Topic ID.
- Updated
At string - (Required, String) Last time the topic was updated.
- Description string
- Description of the topic.
- Destination
Id string - (Required, String) The destination ID.
- Destination
Type string - (Required, String) The type of destination.
- Id string
- (Required, String) Subscription ID.
- Name string
- Name of the topic.
- Topic
Id string - (Required, String) Topic ID.
- Updated
At string - (Required, String) Last time the topic was updated.
- description String
- Description of the topic.
- destination
Id String - (Required, String) The destination ID.
- destination
Type String - (Required, String) The type of destination.
- id String
- (Required, String) Subscription ID.
- name String
- Name of the topic.
- topic
Id String - (Required, String) Topic ID.
- updated
At String - (Required, String) Last time the topic was updated.
- description string
- Description of the topic.
- destination
Id string - (Required, String) The destination ID.
- destination
Type string - (Required, String) The type of destination.
- id string
- (Required, String) Subscription ID.
- name string
- Name of the topic.
- topic
Id string - (Required, String) Topic ID.
- updated
At string - (Required, String) Last time the topic was updated.
- description str
- Description of the topic.
- destination_
id str - (Required, String) The destination ID.
- destination_
type str - (Required, String) The type of destination.
- id str
- (Required, String) Subscription ID.
- name str
- Name of the topic.
- topic_
id str - (Required, String) Topic ID.
- updated_
at str - (Required, String) Last time the topic was updated.
- description String
- Description of the topic.
- destination
Id String - (Required, String) The destination ID.
- destination
Type String - (Required, String) The type of destination.
- id String
- (Required, String) Subscription ID.
- name String
- Name of the topic.
- topic
Id String - (Required, String) Topic ID.
- updated
At String - (Required, String) Last time the topic was updated.
Import
You can import the ibm_en_topic
resource by using id
.
The id
property can be formed from instance_guid
, and topic_id
in the following format:
<instance_guid>/<topic_id>
instance_guid
: A string. Unique identifier for IBM Cloud Event Notifications instance.topic_id
: A string. Unique identifier for Topic.
Example
$ pulumi import ibm:index/enTopic:EnTopic en_topic <instance_guid>/<topic_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.