getAuthorizationRule

Use this data source to access information about an existing Event Hubs Authorization Rule within an Event Hub.

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.GetAuthorizationRuleArgs;
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 test = EventhubFunctions.getAuthorizationRule(GetAuthorizationRuleArgs.builder()
.name("test")
.namespaceName(azurerm_eventhub_namespace.test().name())
.eventhubName(azurerm_eventhub.test().name())
.resourceGroupName(azurerm_resource_group.test().name())
.build());
}
}

Return

A collection of values returned by getAuthorizationRule.

Parameters

argument

A collection of arguments for invoking getAuthorizationRule.


suspend fun getAuthorizationRule(eventhubName: String, listen: Boolean? = null, manage: Boolean? = null, name: String, namespaceName: String, resourceGroupName: String, send: Boolean? = null): GetAuthorizationRuleResult

Return

A collection of values returned by getAuthorizationRule.

See also

Parameters

eventhubName

Specifies the name of the EventHub.

listen
manage
name

Specifies the name of the EventHub Authorization Rule resource. be created.

namespaceName

Specifies the name of the grandparent EventHub Namespace.

resourceGroupName

The name of the resource group in which the EventHub Authorization Rule's grandparent Namespace exists.

send

Return

A collection of values returned by getAuthorizationRule.

See also

Parameters

argument

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