getCluster

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.GetClusterArgs;
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.getCluster(GetClusterArgs.builder()
.name("search-eventhub")
.resourceGroupName("search-service")
.build());
ctx.export("eventhubId", example.applyValue(getClusterResult -> getClusterResult.id()));
}
}

Return

A collection of values returned by getCluster.

Parameters

argument

A collection of arguments for invoking getCluster.


suspend fun getCluster(name: String, resourceGroupName: String): GetClusterResult

Return

A collection of values returned by getCluster.

See also

Parameters

name

The name of this EventHub Cluster.

resourceGroupName

The name of the Resource Group where the EventHub Cluster exists.


suspend fun getCluster(argument: suspend GetClusterPlainArgsBuilder.() -> Unit): GetClusterResult

Return

A collection of values returned by getCluster.

See also

Parameters

argument

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