withEventHubsRoleAssignments

Method
📦 Aspire.Hosting.Azure.EventHubs v17.0.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
targetAzureEventHubsResourceThe target Azure Event Hubs Namespace resource.
rolesAzureEventHubsRole[]The Event Hubs roles to be assigned.
IResource

Applies to

This method applies to the following types: