Class GetTopic
Inheritance
System.Object
GetTopic
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.Aws.Sns
Assembly: Pulumi.Aws.dll
Syntax
public static class GetTopic
Methods
View SourceInvokeAsync(GetTopicArgs, InvokeOptions)
Use this data source to get the ARN of a topic in AWS Simple Notification Service (SNS). By using this data source, you can reference SNS topics without having to hard code the ARNs as input.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Aws.Sns.GetTopic.InvokeAsync(new Aws.Sns.GetTopicArgs
{
Name = "an_example_topic",
}));
}
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetTopicResult> InvokeAsync(GetTopicArgs args, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetTopicArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetTopicResult> |