Skip to content
DocsTry Aspire
DocsTry

withEventHubsRoleAssignments

Method
📦 Aspire.Hosting.Azure.EventHubs v13.4.0
interface ContainerResource {
// ... omitted for brevity
withEventHubsRoleAssignments(
target: AzureEventHubsResource,
roles: AzureEventHubsRole[]): IResource;
}

Signature

methodwithEventHubsRoleAssignmentsbuilder
Assigns the specified roles to the given resource, granting it the necessary permissions on the target Azure Event Hubs Namespace resource. This replaces the default role assignments for the resource.
withEventHubsRoleAssignments(
target: AzureEventHubsResource,
roles: AzureEventHubsRole[]): IResource
targetAzureEventHubsResource
rolesAzureEventHubsRole[]
IResource

Applies to

This method applies to the following types: