/// <summary> /// Use this data source to access information about an existing EventGrid System Topic /// /// {{% examples %}} /// ## Example Usage /// {{% example %}} /// /// ```csharp /// using Pulumi; /// using Azure = Pulumi.Azure; /// /// class MyStack : Stack /// { /// public MyStack() /// { /// var example = Output.Create(Azure.EventGrid.GetSystemTopic.InvokeAsync(new Azure.EventGrid.GetSystemTopicArgs /// { /// Name = "eventgrid-system-topic", /// ResourceGroupName = "example-resources", /// })); /// } /// /// } /// ``` /// {{% /example %}} /// {{% /examples %}} /// </summary> public static Task <GetSystemTopicResult> InvokeAsync(GetSystemTopicArgs args, InvokeOptions?options = null) => Pulumi.Deployment.Instance.InvokeAsync <GetSystemTopicResult>("azure:eventgrid/getSystemTopic:getSystemTopic", args ?? new GetSystemTopicArgs(), options.WithVersion());
/// <summary> /// Create a GetSystemTopic resource with the given unique name, arguments, and options. /// </summary> /// /// <param name="name">The unique name of the resource</param> /// <param name="args">The arguments used to populate this resource's properties</param> /// <param name="options">A bag of options that control this resource's behavior</param> public GetSystemTopic(string name, GetSystemTopicArgs args, CustomResourceOptions?options = null) : base("azure:eventgrid/getSystemTopic:getSystemTopic", name, args ?? new GetSystemTopicArgs(), MakeResourceOptions(options, "")) { }