WithServiceBusRoleAssignments
Method
func (Resource) WithServiceBusRoleAssignments( target AzureServiceBusResource, roles []AzureServiceBusRole,) ResourceSignature
method
WithServiceBusRoleAssignments builderAssigns the specified roles to the given resource, granting it the necessary permissions on the target Azure Service Bus namespace. This replaces the default role assignments for the resource.
WithServiceBusRoleAssignments( target AzureServiceBusResource, roles []AzureServiceBusRole,) ResourceParameters
targetAzureServiceBusResource The target Azure Service Bus namespace.roles[]AzureServiceBusRole The Service Bus roles to be assigned.Returns
ResourceThe resource builder.
Returns a handle; failures surface later via Err().
Applies to
This method applies to the following types:
type
AzureBicepResourcetype
AzureEnvironmentResourcetype
AzureProvisioningResourcetype
AzureServiceBusEmulatorResourcetype
AzureServiceBusQueueResourcetype
AzureServiceBusResourcetype
AzureServiceBusSubscriptionResourcetype
AzureServiceBusTopicResourcetype
AzureUserAssignedIdentityResourcetype
CSharpAppResourcetype
ContainerRegistryResourcetype
ContainerResourcetype
DotnetToolResourcetype
ExecutableResourcetype
ExternalServiceResourcetype
ParameterResourcetype
ProjectResourcetype
SqlServerDatabaseResourcetype
SqlServerServerResource