ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getEnTopic
Explore with Pulumi AI
Provides a read-only data source for topic. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const enTopic = ibm.getEnTopic({
instanceGuid: ibm_resource_instance.en_terraform_test_resource.guid,
topicId: ibm_en_topic.topic1.topic_id,
});
import pulumi
import pulumi_ibm as ibm
en_topic = ibm.get_en_topic(instance_guid=ibm_resource_instance["en_terraform_test_resource"]["guid"],
topic_id=ibm_en_topic["topic1"]["topic_id"])
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.LookupEnTopic(ctx, &ibm.LookupEnTopicArgs{
InstanceGuid: ibm_resource_instance.En_terraform_test_resource.Guid,
TopicId: ibm_en_topic.Topic1.Topic_id,
}, nil)
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 = Ibm.GetEnTopic.Invoke(new()
{
InstanceGuid = ibm_resource_instance.En_terraform_test_resource.Guid,
TopicId = ibm_en_topic.Topic1.Topic_id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetEnTopicArgs;
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) {
final var enTopic = IbmFunctions.getEnTopic(GetEnTopicArgs.builder()
.instanceGuid(ibm_resource_instance.en_terraform_test_resource().guid())
.topicId(ibm_en_topic.topic1().topic_id())
.build());
}
}
variables:
enTopic:
fn::invoke:
function: ibm:getEnTopic
arguments:
instanceGuid: ${ibm_resource_instance.en_terraform_test_resource.guid}
topicId: ${ibm_en_topic.topic1.topic_id}
Using getEnTopic
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getEnTopic(args: GetEnTopicArgs, opts?: InvokeOptions): Promise<GetEnTopicResult>
function getEnTopicOutput(args: GetEnTopicOutputArgs, opts?: InvokeOptions): Output<GetEnTopicResult>
def get_en_topic(id: Optional[str] = None,
instance_guid: Optional[str] = None,
topic_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetEnTopicResult
def get_en_topic_output(id: Optional[pulumi.Input[str]] = None,
instance_guid: Optional[pulumi.Input[str]] = None,
topic_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetEnTopicResult]
func LookupEnTopic(ctx *Context, args *LookupEnTopicArgs, opts ...InvokeOption) (*LookupEnTopicResult, error)
func LookupEnTopicOutput(ctx *Context, args *LookupEnTopicOutputArgs, opts ...InvokeOption) LookupEnTopicResultOutput
> Note: This function is named LookupEnTopic
in the Go SDK.
public static class GetEnTopic
{
public static Task<GetEnTopicResult> InvokeAsync(GetEnTopicArgs args, InvokeOptions? opts = null)
public static Output<GetEnTopicResult> Invoke(GetEnTopicInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetEnTopicResult> getEnTopic(GetEnTopicArgs args, InvokeOptions options)
public static Output<GetEnTopicResult> getEnTopic(GetEnTopicArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getEnTopic:getEnTopic
arguments:
# arguments dictionary
The following arguments are supported:
- Instance
Guid string - Unique identifier for IBM Cloud Event Notifications instance.
- Topic
Id string - Unique identifier for Topic.
- Id string
- (String) Subscription ID.
- Instance
Guid string - Unique identifier for IBM Cloud Event Notifications instance.
- Topic
Id string - Unique identifier for Topic.
- Id string
- (String) Subscription ID.
- instance
Guid String - Unique identifier for IBM Cloud Event Notifications instance.
- topic
Id String - Unique identifier for Topic.
- id String
- (String) Subscription ID.
- instance
Guid string - Unique identifier for IBM Cloud Event Notifications instance.
- topic
Id string - Unique identifier for Topic.
- id string
- (String) Subscription ID.
- instance_
guid str - Unique identifier for IBM Cloud Event Notifications instance.
- topic_
id str - Unique identifier for Topic.
- id str
- (String) Subscription ID.
- instance
Guid String - Unique identifier for IBM Cloud Event Notifications instance.
- topic
Id String - Unique identifier for Topic.
- id String
- (String) Subscription ID.
getEnTopic Result
The following output properties are available:
- Description string
- (String) Subscription description.
- Id string
- (String) Subscription ID.
- Instance
Guid string - Name string
- (String) Subscription name.
- Source
Count double - (Integer) Number of sources.
- Sources
List<Get
En Topic Source> - Subscription
Count double - (Integer) Number of subscriptions.
- Subscriptions
List<Get
En Topic Subscription> - (List) List of subscriptions.
- Topic
Id string - (String) Topic ID.
- Updated
At string - (String) Last time the topic was updated.
- Description string
- (String) Subscription description.
- Id string
- (String) Subscription ID.
- Instance
Guid string - Name string
- (String) Subscription name.
- Source
Count float64 - (Integer) Number of sources.
- Sources
[]Get
En Topic Source - Subscription
Count float64 - (Integer) Number of subscriptions.
- Subscriptions
[]Get
En Topic Subscription - (List) List of subscriptions.
- Topic
Id string - (String) Topic ID.
- Updated
At string - (String) Last time the topic was updated.
- description String
- (String) Subscription description.
- id String
- (String) Subscription ID.
- instance
Guid String - name String
- (String) Subscription name.
- source
Count Double - (Integer) Number of sources.
- sources
List<Get
En Topic Source> - subscription
Count Double - (Integer) Number of subscriptions.
- subscriptions
List<Get
En Topic Subscription> - (List) List of subscriptions.
- topic
Id String - (String) Topic ID.
- updated
At String - (String) Last time the topic was updated.
- description string
- (String) Subscription description.
- id string
- (String) Subscription ID.
- instance
Guid string - name string
- (String) Subscription name.
- source
Count number - (Integer) Number of sources.
- sources
Get
En Topic Source[] - subscription
Count number - (Integer) Number of subscriptions.
- subscriptions
Get
En Topic Subscription[] - (List) List of subscriptions.
- topic
Id string - (String) Topic ID.
- updated
At string - (String) Last time the topic was updated.
- description str
- (String) Subscription description.
- id str
- (String) Subscription ID.
- instance_
guid str - name str
- (String) Subscription name.
- source_
count float - (Integer) Number of sources.
- sources
Sequence[Get
En Topic Source] - subscription_
count float - (Integer) Number of subscriptions.
- subscriptions
Sequence[Get
En Topic Subscription] - (List) List of subscriptions.
- topic_
id str - (String) Topic ID.
- updated_
at str - (String) Last time the topic was updated.
- description String
- (String) Subscription description.
- id String
- (String) Subscription ID.
- instance
Guid String - name String
- (String) Subscription name.
- source
Count Number - (Integer) Number of sources.
- sources List<Property Map>
- subscription
Count Number - (Integer) Number of subscriptions.
- subscriptions List<Property Map>
- (List) List of subscriptions.
- topic
Id String - (String) Topic ID.
- updated
At String - (String) Last time the topic was updated.
Supporting Types
GetEnTopicSource
- Id string
- (String) Subscription ID.
- Name string
- (String) Subscription name.
- Rules
List<Get
En Topic Source Rule>
- Id string
- (String) Subscription ID.
- Name string
- (String) Subscription name.
- Rules
[]Get
En Topic Source Rule
- id String
- (String) Subscription ID.
- name String
- (String) Subscription name.
- rules
List<Get
En Topic Source Rule>
- id string
- (String) Subscription ID.
- name string
- (String) Subscription name.
- rules
Get
En Topic Source Rule[]
- id str
- (String) Subscription ID.
- name str
- (String) Subscription name.
- rules
Sequence[Get
En Topic Source Rule]
- id String
- (String) Subscription ID.
- name String
- (String) Subscription name.
- rules List<Property Map>
GetEnTopicSourceRule
- Enabled bool
- Event
Schedule List<GetFilters En Topic Source Rule Event Schedule Filter> - Event
Type stringFilter - Id string
- (String) Subscription ID.
- Notification
Filter string - Updated
At string - (String) Last time the topic was updated.
- Enabled bool
- Event
Schedule []GetFilters En Topic Source Rule Event Schedule Filter - Event
Type stringFilter - Id string
- (String) Subscription ID.
- Notification
Filter string - Updated
At string - (String) Last time the topic was updated.
- enabled Boolean
- event
Schedule List<GetFilters En Topic Source Rule Event Schedule Filter> - event
Type StringFilter - id String
- (String) Subscription ID.
- notification
Filter String - updated
At String - (String) Last time the topic was updated.
- enabled boolean
- event
Schedule GetFilters En Topic Source Rule Event Schedule Filter[] - event
Type stringFilter - id string
- (String) Subscription ID.
- notification
Filter string - updated
At string - (String) Last time the topic was updated.
- enabled bool
- event_
schedule_ Sequence[Getfilters En Topic Source Rule Event Schedule Filter] - event_
type_ strfilter - id str
- (String) Subscription ID.
- notification_
filter str - updated_
at str - (String) Last time the topic was updated.
- enabled Boolean
- event
Schedule List<Property Map>Filters - event
Type StringFilter - id String
- (String) Subscription ID.
- notification
Filter String - updated
At String - (String) Last time the topic was updated.
GetEnTopicSourceRuleEventScheduleFilter
- Ends
At string - Expression string
- Starts
At string
- Ends
At string - Expression string
- Starts
At string
- ends
At String - expression String
- starts
At String
- ends
At string - expression string
- starts
At string
- ends_
at str - expression str
- starts_
at str
- ends
At String - expression String
- starts
At String
GetEnTopicSubscription
- Description string
- (String) Subscription description.
- Destination
Id string - (String) The destination ID.
- Destination
Type string - (String) The type of destination.
- Id string
- (String) Subscription ID.
- Name string
- (String) Subscription name.
- Topic
Id string - Unique identifier for Topic.
- Updated
At string - (String) Last time the topic was updated.
- Description string
- (String) Subscription description.
- Destination
Id string - (String) The destination ID.
- Destination
Type string - (String) The type of destination.
- Id string
- (String) Subscription ID.
- Name string
- (String) Subscription name.
- Topic
Id string - Unique identifier for Topic.
- Updated
At string - (String) Last time the topic was updated.
- description String
- (String) Subscription description.
- destination
Id String - (String) The destination ID.
- destination
Type String - (String) The type of destination.
- id String
- (String) Subscription ID.
- name String
- (String) Subscription name.
- topic
Id String - Unique identifier for Topic.
- updated
At String - (String) Last time the topic was updated.
- description string
- (String) Subscription description.
- destination
Id string - (String) The destination ID.
- destination
Type string - (String) The type of destination.
- id string
- (String) Subscription ID.
- name string
- (String) Subscription name.
- topic
Id string - Unique identifier for Topic.
- updated
At string - (String) Last time the topic was updated.
- description str
- (String) Subscription description.
- destination_
id str - (String) The destination ID.
- destination_
type str - (String) The type of destination.
- id str
- (String) Subscription ID.
- name str
- (String) Subscription name.
- topic_
id str - Unique identifier for Topic.
- updated_
at str - (String) Last time the topic was updated.
- description String
- (String) Subscription description.
- destination
Id String - (String) The destination ID.
- destination
Type String - (String) The type of destination.
- id String
- (String) Subscription ID.
- name String
- (String) Subscription name.
- topic
Id String - Unique identifier for Topic.
- updated
At String - (String) Last time the topic was updated.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.