Class GetTopics
Inheritance
System.Object
GetTopics
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.AliCloud.ActionTrail
Assembly: Pulumi.AliCloud.dll
Syntax
public static class GetTopics
Methods
View SourceInvokeAsync(GetTopicsArgs, InvokeOptions)
This data source provides a list of ALIKAFKA Topics in an Alibaba Cloud account according to the specified filters.
NOTE: Available in 1.56.0+
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var topicsDs = Output.Create(AliCloud.ActionTrail.GetTopics.InvokeAsync(new AliCloud.ActionTrail.GetTopicsArgs
{
InstanceId = "xxx",
NameRegex = "alikafkaTopicName",
OutputFile = "topics.txt",
}));
this.FirstTopicName = topicsDs.Apply(topicsDs => topicsDs.Topics[0].Topic);
}
[Output("firstTopicName")]
public Output<string> FirstTopicName { get; set; }
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetTopicsResult> InvokeAsync(GetTopicsArgs args, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetTopicsArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetTopicsResult> |