# WebPubSubServiceProxy

- Module: [Aspire.Hosting.Azure.Provisioning.WebPubSub](/reference/api/typescript/aspire.hosting.azure.provisioning.webpubsub.md)
- Version: `17.0.0-preview.1.26567.5`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/2d325b13709752ba6d9a943635c5e2940a2530c0)

Represents the WebPubSubService Azure Provisioning model.

## Definition

```typescript
interface WebPubSubServiceProxy {
  readonly externalIP: BicepValueProxy | string;
  readonly hostName: BicepValueProxy | string;
  readonly hostNamePrefix: BicepValueProxy | string;
  readonly id: BicepValueProxy;
  identity: WebPubSubManagedServiceIdentityProxy;
  isAadAuthDisabled: BicepValueProxy | boolean;
  isClientCertEnabled: BicepValueProxy | boolean;
  isLocalAuthDisabled: BicepValueProxy | boolean;
  liveTraceConfiguration: LiveTraceConfigurationProxy;
  location: BicepValueProxy;
  name: BicepValueProxy | string;
  networkAcls: WebPubSubNetworkAclsProxy;
  readonly privateEndpointConnections: Aspire_Hosting_Azure_Provisioning_WebPubSub_Generated_ListOfWebPubSubPrivateEndpointConnectionDataProxy;
  readonly provisioningState: BicepValueProxy | WebPubSubProvisioningState;
  publicNetworkAccess: BicepValueProxy | string;
  readonly publicPort: BicepValueProxy | number;
  resourceLogCategories: Aspire_Hosting_Azure_Provisioning_WebPubSub_Generated_ListOfResourceLogCategoryProxy;
  readonly serverPort: BicepValueProxy | number;
  readonly sharedPrivateLinkResources: Aspire_Hosting_Azure_Provisioning_WebPubSub_Generated_ListOfWebPubSubSharedPrivateLinkDataProxy;
  sku: BillingInfoSkuProxy;
  readonly systemData: WebPubSubSystemDataProxy;
  tags: Aspire_Hosting_Azure_Provisioning_WebPubSub_Generated_DictionaryOfStringProxy;
  readonly version: BicepValueProxy | string;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearIsAadAuthDisabled(): void;
  clearIsClientCertEnabled(): void;
  clearIsLocalAuthDisabled(): void;
  clearLocation(): void;
  clearName(): void;
  clearPublicNetworkAccess(): void;
  createRoleAssignment(
      role: WebPubSubBuiltInRoleProxy,
      principalType: BicepValueProxy | RoleManagementPrincipalType,
      principalId: BicepValueProxy | guid,
      bicepIdentifierSuffix: string): WebPubSubRoleAssignmentProxy;
  getKeys(): WebPubSubKeysProxy;
}
```

## Properties

- `externalIP`: `BicepValueProxy | string` `get` -- Gets the ExternalIP provisioning property.
- `hostName`: `BicepValueProxy | string` `get` -- Gets the HostName provisioning property.
- `hostNamePrefix`: `BicepValueProxy | string` `get` -- Gets the HostNamePrefix provisioning property.
- `id`: `BicepValueProxy` `get` -- Gets the Id provisioning property.
- `identity`: [WebPubSubManagedServiceIdentityProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.webpubsub/webpubsubmanagedserviceidentityproxy.md) `get - set` -- Gets or sets the Identity provisioning property.
- `isAadAuthDisabled`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the IsAadAuthDisabled provisioning property.
- `isClientCertEnabled`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the IsClientCertEnabled provisioning property.
- `isLocalAuthDisabled`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the IsLocalAuthDisabled provisioning property.
- `liveTraceConfiguration`: [LiveTraceConfigurationProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.webpubsub/livetraceconfigurationproxy.md) `get - set` -- Gets or sets the LiveTraceConfiguration provisioning property.
- `location`: `BicepValueProxy` `get - set` -- Gets or sets the Location provisioning property.
- `name`: `BicepValueProxy | string` `get - set` -- Gets or sets the Name provisioning property.
- `networkAcls`: [WebPubSubNetworkAclsProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.webpubsub/webpubsubnetworkaclsproxy.md) `get - set` -- Gets or sets the NetworkAcls provisioning property.
- `privateEndpointConnections`: [Aspire_Hosting_Azure_Provisioning_WebPubSub_Generated_ListOfWebPubSubPrivateEndpointConnectionDataProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.webpubsub/aspire-hosting-azure-provisioning-webpubsub-generated-listofwebpubsubprivateendpointconnectiondataproxy.md) `get` -- Gets the PrivateEndpointConnections provisioning property.
- `provisioningState`: `BicepValueProxy | WebPubSubProvisioningState` `get` -- Gets the ProvisioningState provisioning property.
- `publicNetworkAccess`: `BicepValueProxy | string` `get - set` -- Gets or sets the PublicNetworkAccess provisioning property.
- `publicPort`: `BicepValueProxy | number` `get` -- Gets the PublicPort provisioning property.
- `resourceLogCategories`: [Aspire_Hosting_Azure_Provisioning_WebPubSub_Generated_ListOfResourceLogCategoryProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.webpubsub/aspire-hosting-azure-provisioning-webpubsub-generated-listofresourcelogcategoryproxy.md) `get - set` -- Gets or sets the ResourceLogCategories provisioning property.
- `serverPort`: `BicepValueProxy | number` `get` -- Gets the ServerPort provisioning property.
- `sharedPrivateLinkResources`: [Aspire_Hosting_Azure_Provisioning_WebPubSub_Generated_ListOfWebPubSubSharedPrivateLinkDataProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.webpubsub/aspire-hosting-azure-provisioning-webpubsub-generated-listofwebpubsubsharedprivatelinkdataproxy.md) `get` -- Gets the SharedPrivateLinkResources provisioning property.
- `sku`: [BillingInfoSkuProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.webpubsub/billinginfoskuproxy.md) `get - set` -- Gets or sets the Sku provisioning property.
- `systemData`: [WebPubSubSystemDataProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.webpubsub/webpubsubsystemdataproxy.md) `get` -- Gets the SystemData provisioning property.
- `tags`: [Aspire_Hosting_Azure_Provisioning_WebPubSub_Generated_DictionaryOfStringProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.webpubsub/aspire-hosting-azure-provisioning-webpubsub-generated-dictionaryofstringproxy.md) `get - set` -- Gets or sets the Tags provisioning property.
- `version`: `BicepValueProxy | string` `get` -- Gets the Version provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.webpubsub/webpubsubserviceproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearIsAadAuthDisabled](/reference/api/typescript/aspire.hosting.azure.provisioning.webpubsub/webpubsubserviceproxy/clearisaadauthdisabled.md) -- `method` -- Clears the IsAadAuthDisabled provisioning property.
    ```typescript
  clearIsAadAuthDisabled(): void
  ```
- [clearIsClientCertEnabled](/reference/api/typescript/aspire.hosting.azure.provisioning.webpubsub/webpubsubserviceproxy/clearisclientcertenabled.md) -- `method` -- Clears the IsClientCertEnabled provisioning property.
    ```typescript
  clearIsClientCertEnabled(): void
  ```
- [clearIsLocalAuthDisabled](/reference/api/typescript/aspire.hosting.azure.provisioning.webpubsub/webpubsubserviceproxy/clearislocalauthdisabled.md) -- `method` -- Clears the IsLocalAuthDisabled provisioning property.
    ```typescript
  clearIsLocalAuthDisabled(): void
  ```
- [clearLocation](/reference/api/typescript/aspire.hosting.azure.provisioning.webpubsub/webpubsubserviceproxy/clearlocation.md) -- `method` -- Clears the Location provisioning property.
    ```typescript
  clearLocation(): void
  ```
- [clearName](/reference/api/typescript/aspire.hosting.azure.provisioning.webpubsub/webpubsubserviceproxy/clearname.md) -- `method` -- Clears the Name provisioning property.
    ```typescript
  clearName(): void
  ```
- [clearPublicNetworkAccess](/reference/api/typescript/aspire.hosting.azure.provisioning.webpubsub/webpubsubserviceproxy/clearpublicnetworkaccess.md) -- `method` -- Clears the PublicNetworkAccess provisioning property.
    ```typescript
  clearPublicNetworkAccess(): void
  ```
- [createRoleAssignment](/reference/api/typescript/aspire.hosting.azure.provisioning.webpubsub/webpubsubserviceproxy/createroleassignment.md) -- `method` -- Invokes CreateRoleAssignment on the WebPubSubService provisioning model.
    ```typescript
  createRoleAssignment(role: WebPubSubBuiltInRoleProxy, principalType: BicepValueProxy | RoleManagementPrincipalType, principalId: BicepValueProxy | guid, bicepIdentifierSuffix: string): WebPubSubRoleAssignmentProxy
  ```
- [getKeys](/reference/api/typescript/aspire.hosting.azure.provisioning.webpubsub/webpubsubserviceproxy/getkeys.md) -- `method` -- Invokes GetKeys on the WebPubSubService provisioning model.
    ```typescript
  getKeys(): WebPubSubKeysProxy
  ```
