withWebPubSubRoleAssignments
Method
interface ContainerResource { // ... omitted for brevity withWebPubSubRoleAssignments( target: AzureWebPubSubResource, roles: AzureWebPubSubRole[]): IResource;}Signature
method
withWebPubSubRoleAssignments builderAssigns the specified roles to the given resource, granting it the necessary permissions on the target Azure Web PubSub resource. This replaces the default role assignments for the resource.
withWebPubSubRoleAssignments( target: AzureWebPubSubResource, roles: AzureWebPubSubRole[]): IResourceParameters
targetAzureWebPubSubResource The target Azure Web PubSub resource.rolesAzureWebPubSubRole[] The Web PubSub roles to be assigned.Returns
IResource Applies to
This method applies to the following types:
type
ContainerResourcetype
ExecutableResourcetype
ProjectResourcetype
ParameterResourcetype
ContainerRegistryResourcetype
DotnetToolResourcetype
ExternalServiceResourcetype
CSharpAppResourcetype
AzureWebPubSubResourcetype
AzureWebPubSubEmulatorResourcetype
AzureWebPubSubHubResourcetype
AzureBicepResourcetype
AzureProvisioningResourcetype
AzureEnvironmentResourcetype
AzureUserAssignedIdentityResource