Show / Hide Table of Contents

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.Mns
Assembly: Pulumi.AliCloud.dll
Syntax
public static class GetTopics

Methods

View Source

InvokeAsync(GetTopicsArgs, InvokeOptions)

This data source provides a list of MNS topics in an Alibaba Cloud account according to the specified parameters.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
public MyStack()
{
    var topics = Output.Create(AliCloud.Mns.GetTopics.InvokeAsync(new AliCloud.Mns.GetTopicsArgs
    {
        NamePrefix = "tf-",
    }));
    this.FirstTopicId = topics.Apply(topics => topics.Topics[0].Id);
}

[Output("firstTopicId")]
public Output<string> FirstTopicId { get; set; }
}

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetTopicsResult> InvokeAsync(GetTopicsArgs args = null, InvokeOptions options = null)
Parameters
Type Name Description
GetTopicsArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetTopicsResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.