1. Packages
  2. Ibm Provider
  3. API Docs
  4. EnTopic
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.EnTopic

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    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:

    InstanceGuid string
    Unique identifier for IBM Cloud Event Notifications instance.
    Description string
    Description of the topic.
    EnTopicId string
    (Required, String) Subscription ID.
    Name string
    Name of the topic.
    Sources List<EnTopicSource>
    List of sources. Nested scheme for sources:
    InstanceGuid string
    Unique identifier for IBM Cloud Event Notifications instance.
    Description string
    Description of the topic.
    EnTopicId string
    (Required, String) Subscription ID.
    Name string
    Name of the topic.
    Sources []EnTopicSourceArgs
    List of sources. Nested scheme for sources:
    instanceGuid String
    Unique identifier for IBM Cloud Event Notifications instance.
    description String
    Description of the topic.
    enTopicId String
    (Required, String) Subscription ID.
    name String
    Name of the topic.
    sources List<EnTopicSource>
    List of sources. Nested scheme for sources:
    instanceGuid string
    Unique identifier for IBM Cloud Event Notifications instance.
    description string
    Description of the topic.
    enTopicId string
    (Required, String) Subscription ID.
    name string
    Name of the topic.
    sources EnTopicSource[]
    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_id str
    (Required, String) Subscription ID.
    name str
    Name of the topic.
    sources Sequence[EnTopicSourceArgs]
    List of sources. Nested scheme for sources:
    instanceGuid String
    Unique identifier for IBM Cloud Event Notifications instance.
    description String
    Description of the topic.
    enTopicId String
    (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.
    SourceCount double
    (Required, Integer) Number of sources.
    SubscriptionCount double
    (Required, Integer) Number of subscriptions.
    Subscriptions List<EnTopicSubscription>
    (Required, List) List of subscriptions. Nested scheme for subscriptions:
    TopicId string
    (Required, String) Topic ID.
    UpdatedAt string
    (Required, String) Last time the topic was updated.
    Id string
    The provider-assigned unique ID for this managed resource.
    SourceCount float64
    (Required, Integer) Number of sources.
    SubscriptionCount float64
    (Required, Integer) Number of subscriptions.
    Subscriptions []EnTopicSubscription
    (Required, List) List of subscriptions. Nested scheme for subscriptions:
    TopicId string
    (Required, String) Topic ID.
    UpdatedAt string
    (Required, String) Last time the topic was updated.
    id String
    The provider-assigned unique ID for this managed resource.
    sourceCount Double
    (Required, Integer) Number of sources.
    subscriptionCount Double
    (Required, Integer) Number of subscriptions.
    subscriptions List<EnTopicSubscription>
    (Required, List) List of subscriptions. Nested scheme for subscriptions:
    topicId String
    (Required, String) Topic ID.
    updatedAt String
    (Required, String) Last time the topic was updated.
    id string
    The provider-assigned unique ID for this managed resource.
    sourceCount number
    (Required, Integer) Number of sources.
    subscriptionCount number
    (Required, Integer) Number of subscriptions.
    subscriptions EnTopicSubscription[]
    (Required, List) List of subscriptions. Nested scheme for subscriptions:
    topicId string
    (Required, String) Topic ID.
    updatedAt 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[EnTopicSubscription]
    (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.
    sourceCount Number
    (Required, Integer) Number of sources.
    subscriptionCount Number
    (Required, Integer) Number of subscriptions.
    subscriptions List<Property Map>
    (Required, List) List of subscriptions. Nested scheme for subscriptions:
    topicId String
    (Required, String) Topic ID.
    updatedAt 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.
    The following state arguments are supported:
    Description string
    Description of the topic.
    EnTopicId string
    (Required, String) Subscription ID.
    InstanceGuid string
    Unique identifier for IBM Cloud Event Notifications instance.
    Name string
    Name of the topic.
    SourceCount double
    (Required, Integer) Number of sources.
    Sources List<EnTopicSource>
    List of sources. Nested scheme for sources:
    SubscriptionCount double
    (Required, Integer) Number of subscriptions.
    Subscriptions List<EnTopicSubscription>
    (Required, List) List of subscriptions. Nested scheme for subscriptions:
    TopicId string
    (Required, String) Topic ID.
    UpdatedAt string
    (Required, String) Last time the topic was updated.
    Description string
    Description of the topic.
    EnTopicId string
    (Required, String) Subscription ID.
    InstanceGuid string
    Unique identifier for IBM Cloud Event Notifications instance.
    Name string
    Name of the topic.
    SourceCount float64
    (Required, Integer) Number of sources.
    Sources []EnTopicSourceArgs
    List of sources. Nested scheme for sources:
    SubscriptionCount float64
    (Required, Integer) Number of subscriptions.
    Subscriptions []EnTopicSubscriptionArgs
    (Required, List) List of subscriptions. Nested scheme for subscriptions:
    TopicId string
    (Required, String) Topic ID.
    UpdatedAt string
    (Required, String) Last time the topic was updated.
    description String
    Description of the topic.
    enTopicId String
    (Required, String) Subscription ID.
    instanceGuid String
    Unique identifier for IBM Cloud Event Notifications instance.
    name String
    Name of the topic.
    sourceCount Double
    (Required, Integer) Number of sources.
    sources List<EnTopicSource>
    List of sources. Nested scheme for sources:
    subscriptionCount Double
    (Required, Integer) Number of subscriptions.
    subscriptions List<EnTopicSubscription>
    (Required, List) List of subscriptions. Nested scheme for subscriptions:
    topicId String
    (Required, String) Topic ID.
    updatedAt String
    (Required, String) Last time the topic was updated.
    description string
    Description of the topic.
    enTopicId string
    (Required, String) Subscription ID.
    instanceGuid string
    Unique identifier for IBM Cloud Event Notifications instance.
    name string
    Name of the topic.
    sourceCount number
    (Required, Integer) Number of sources.
    sources EnTopicSource[]
    List of sources. Nested scheme for sources:
    subscriptionCount number
    (Required, Integer) Number of subscriptions.
    subscriptions EnTopicSubscription[]
    (Required, List) List of subscriptions. Nested scheme for subscriptions:
    topicId string
    (Required, String) Topic ID.
    updatedAt string
    (Required, String) Last time the topic was updated.
    description str
    Description of the topic.
    en_topic_id str
    (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[EnTopicSourceArgs]
    List of sources. Nested scheme for sources:
    subscription_count float
    (Required, Integer) Number of subscriptions.
    subscriptions Sequence[EnTopicSubscriptionArgs]
    (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.
    enTopicId String
    (Required, String) Subscription ID.
    instanceGuid String
    Unique identifier for IBM Cloud Event Notifications instance.
    name String
    Name of the topic.
    sourceCount Number
    (Required, Integer) Number of sources.
    sources List<Property Map>
    List of sources. Nested scheme for sources:
    subscriptionCount Number
    (Required, Integer) Number of subscriptions.
    subscriptions List<Property Map>
    (Required, List) List of subscriptions. Nested scheme for subscriptions:
    topicId String
    (Required, String) Topic ID.
    updatedAt String
    (Required, String) Last time the topic was updated.

    Supporting Types

    EnTopicSource, EnTopicSourceArgs

    Id string
    ID of the source.
    Rules List<EnTopicSourceRule>
    List of rules. Nested scheme for rules:
    Id string
    ID of the source.
    Rules []EnTopicSourceRule
    List of rules. Nested scheme for rules:
    id String
    ID of the source.
    rules List<EnTopicSourceRule>
    List of rules. Nested scheme for rules:
    id string
    ID of the source.
    rules EnTopicSourceRule[]
    List of rules. Nested scheme for rules:
    id str
    ID of the source.
    rules Sequence[EnTopicSourceRule]
    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.
    EventScheduleFilters List<EnTopicSourceRuleEventScheduleFilter>
    Event Schedule Filter for periodic-timer source.
    EventTypeFilter string
    Event type filter.
    NotificationFilter string
    Notification filter.
    Enabled bool
    Whether the rule is enabled or not.
    EventScheduleFilters []EnTopicSourceRuleEventScheduleFilter
    Event Schedule Filter for periodic-timer source.
    EventTypeFilter string
    Event type filter.
    NotificationFilter string
    Notification filter.
    enabled Boolean
    Whether the rule is enabled or not.
    eventScheduleFilters List<EnTopicSourceRuleEventScheduleFilter>
    Event Schedule Filter for periodic-timer source.
    eventTypeFilter String
    Event type filter.
    notificationFilter String
    Notification filter.
    enabled boolean
    Whether the rule is enabled or not.
    eventScheduleFilters EnTopicSourceRuleEventScheduleFilter[]
    Event Schedule Filter for periodic-timer source.
    eventTypeFilter string
    Event type filter.
    notificationFilter string
    Notification filter.
    enabled bool
    Whether the rule is enabled or not.
    event_schedule_filters Sequence[EnTopicSourceRuleEventScheduleFilter]
    Event Schedule Filter for periodic-timer source.
    event_type_filter str
    Event type filter.
    notification_filter str
    Notification filter.
    enabled Boolean
    Whether the rule is enabled or not.
    eventScheduleFilters List<Property Map>
    Event Schedule Filter for periodic-timer source.
    eventTypeFilter String
    Event type filter.
    notificationFilter String
    Notification filter.

    EnTopicSourceRuleEventScheduleFilter, EnTopicSourceRuleEventScheduleFilterArgs

    EndsAt string
    event schedule end time.
    Expression string
    cron schedule expression.
    StartsAt string
    event schedule start time.
    EndsAt string
    event schedule end time.
    Expression string
    cron schedule expression.
    StartsAt string
    event schedule start time.
    endsAt String
    event schedule end time.
    expression String
    cron schedule expression.
    startsAt String
    event schedule start time.
    endsAt string
    event schedule end time.
    expression string
    cron schedule expression.
    startsAt string
    event schedule start time.
    ends_at str
    event schedule end time.
    expression str
    cron schedule expression.
    starts_at str
    event schedule start time.
    endsAt String
    event schedule end time.
    expression String
    cron schedule expression.
    startsAt String
    event schedule start time.

    EnTopicSubscription, EnTopicSubscriptionArgs

    Description string
    Description of the topic.
    DestinationId string
    (Required, String) The destination ID.
    DestinationType string
    (Required, String) The type of destination.
    Id string
    (Required, String) Subscription ID.
    Name string
    Name of the topic.
    TopicId string
    (Required, String) Topic ID.
    UpdatedAt string
    (Required, String) Last time the topic was updated.
    Description string
    Description of the topic.
    DestinationId string
    (Required, String) The destination ID.
    DestinationType string
    (Required, String) The type of destination.
    Id string
    (Required, String) Subscription ID.
    Name string
    Name of the topic.
    TopicId string
    (Required, String) Topic ID.
    UpdatedAt string
    (Required, String) Last time the topic was updated.
    description String
    Description of the topic.
    destinationId String
    (Required, String) The destination ID.
    destinationType String
    (Required, String) The type of destination.
    id String
    (Required, String) Subscription ID.
    name String
    Name of the topic.
    topicId String
    (Required, String) Topic ID.
    updatedAt String
    (Required, String) Last time the topic was updated.
    description string
    Description of the topic.
    destinationId string
    (Required, String) The destination ID.
    destinationType string
    (Required, String) The type of destination.
    id string
    (Required, String) Subscription ID.
    name string
    Name of the topic.
    topicId string
    (Required, String) Topic ID.
    updatedAt 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.
    destinationId String
    (Required, String) The destination ID.
    destinationType String
    (Required, String) The type of destination.
    id String
    (Required, String) Subscription ID.
    name String
    Name of the topic.
    topicId String
    (Required, String) Topic ID.
    updatedAt 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.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud