AzureWebPubSubResource
Handle
interface AzureWebPubSubResource extends IAzureResource, IExpressionValue, IManifestExpressionProvider, IResource, IResourceWithConnectionString, IResourceWithEndpoints, IResourceWithParameters, IValueProvider, IValueWithReferences, IAzurePrivateEndpointTarget { addHub( name: string, hubName?: string): AzureWebPubSubHubResource; runAsEmulator(configureContainer?: (obj: AzureWebPubSubEmulatorResource) => Promise<void>): AzureWebPubSubResource;}Methods
Adds an Azure Web Pub Sub hub resource to the application model.
addHub( name: string, hubName?: string): AzureWebPubSubHubResourceParameters
namestringThe name of the Azure WebPubSub Hub resource.hubName stringoptionalThe name of the Azure WebPubSub Hub. If not provided, this defaults to the same value as `name`.Returns
AzureWebPubSubHubResource Configures Azure Web PubSub to run locally using the emulator container.
runAsEmulator(configureContainer?: (obj: AzureWebPubSubEmulatorResource) => Promise<void>): AzureWebPubSubResourceParameters
configureContainer (obj: AzureWebPubSubEmulatorResource) => Promise<void> optionalAn optional callback to configure the emulator container.Returns
AzureWebPubSubResource