getEventHub

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

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.eventhub.EventhubFunctions;
import com.pulumi.azure.eventhub.inputs.GetEventHubArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = EventhubFunctions.getEventHub(GetEventHubArgs.builder()
.name("search-eventhub")
.resourceGroupName("search-service")
.namespaceName("search-eventhubns")
.build());
ctx.export("eventhubId", example.applyValue(getEventHubResult -> getEventHubResult.id()));
}
}

Return

A collection of values returned by getEventHub.

Parameters

argument

A collection of arguments for invoking getEventHub.


suspend fun getEventHub(name: String, namespaceName: String, resourceGroupName: String): GetEventHubResult

Return

A collection of values returned by getEventHub.

See also

Parameters

name

The name of this EventHub.

namespaceName

The name of the EventHub Namespace where the EventHub exists.

resourceGroupName

The name of the Resource Group where the EventHub exists.


suspend fun getEventHub(argument: suspend GetEventHubPlainArgsBuilder.() -> Unit): GetEventHubResult

Return

A collection of values returned by getEventHub.

See also

Parameters

argument

Builder for com.pulumi.azure.eventhub.kotlin.inputs.GetEventHubPlainArgs.