Show / Hide Table of Contents

Class GetEventHub

Inheritance
System.Object
GetEventHub
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.Azure.EventHub
Assembly: Pulumi.Azure.dll
Syntax
public static class GetEventHub

Methods

View Source

InvokeAsync(GetEventHubArgs, InvokeOptions)

Use this data source to access information about an existing EventHub.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
public MyStack()
{
    var example = Output.Create(Azure.EventHub.GetEventHub.InvokeAsync(new Azure.EventHub.GetEventHubArgs
    {
        Name = "search-eventhub",
        ResourceGroupName = "search-service",
        NamespaceName = "search-eventhubns",
    }));
    this.EventhubId = example.Apply(example => example.Id);
}

[Output("eventhubId")]
public Output<string> EventhubId { get; set; }
}

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

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