# CdnOriginProxy

- Module: [Aspire.Hosting.Azure.Provisioning.Cdn](/reference/api/typescript/aspire.hosting.azure.provisioning.cdn.md)
- Version: `13.6.0-preview.1.26478.8`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62)

Represents the CdnOrigin Azure Provisioning model.

## Definition

```typescript
interface CdnOriginProxy {
  enabled: BicepValueProxy | boolean;
  hostName: BicepValueProxy | string;
  httpPort: BicepValueProxy | number;
  httpsPort: BicepValueProxy | number;
  readonly id: BicepValueProxy;
  name: BicepValueProxy | string;
  originHostHeader: BicepValueProxy | string;
  parent: CdnEndpointProxy;
  priority: BicepValueProxy | number;
  readonly privateEndpointStatus: BicepValueProxy | PrivateEndpointStatus;
  privateLinkAlias: BicepValueProxy | string;
  privateLinkApprovalMessage: BicepValueProxy | string;
  privateLinkLocation: BicepValueProxy | string;
  privateLinkResourceId: BicepValueProxy;
  readonly provisioningState: BicepValueProxy | OriginProvisioningState;
  readonly resourceState: BicepValueProxy | OriginResourceState;
  readonly systemData: CdnSystemDataProxy;
  weight: BicepValueProxy | number;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearEnabled(): void;
  clearHostName(): void;
  clearHttpPort(): void;
  clearHttpsPort(): void;
  clearName(): void;
  clearOriginHostHeader(): void;
  clearPriority(): void;
  clearPrivateLinkAlias(): void;
  clearPrivateLinkApprovalMessage(): void;
  clearPrivateLinkLocation(): void;
  clearPrivateLinkResourceId(): void;
  clearWeight(): void;
}
```

## Properties

- `enabled`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the Enabled provisioning property.
- `hostName`: `BicepValueProxy | string` `get - set` -- Gets or sets the HostName provisioning property.
- `httpPort`: `BicepValueProxy | number` `get - set` -- Gets or sets the HttpPort provisioning property.
- `httpsPort`: `BicepValueProxy | number` `get - set` -- Gets or sets the HttpsPort provisioning property.
- `id`: `BicepValueProxy` `get` -- Gets the Id provisioning property.
- `name`: `BicepValueProxy | string` `get - set` -- Gets or sets the Name provisioning property.
- `originHostHeader`: `BicepValueProxy | string` `get - set` -- Gets or sets the OriginHostHeader provisioning property.
- `parent`: [CdnEndpointProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.cdn/cdnendpointproxy.md) `get - set` -- Gets or sets the Parent provisioning property.
- `priority`: `BicepValueProxy | number` `get - set` -- Gets or sets the Priority provisioning property.
- `privateEndpointStatus`: `BicepValueProxy | PrivateEndpointStatus` `get` -- Gets the PrivateEndpointStatus provisioning property.
- `privateLinkAlias`: `BicepValueProxy | string` `get - set` -- Gets or sets the PrivateLinkAlias provisioning property.
- `privateLinkApprovalMessage`: `BicepValueProxy | string` `get - set` -- Gets or sets the PrivateLinkApprovalMessage provisioning property.
- `privateLinkLocation`: `BicepValueProxy | string` `get - set` -- Gets or sets the PrivateLinkLocation provisioning property.
- `privateLinkResourceId`: `BicepValueProxy` `get - set` -- Gets or sets the PrivateLinkResourceId provisioning property.
- `provisioningState`: `BicepValueProxy | OriginProvisioningState` `get` -- Gets the ProvisioningState provisioning property.
- `resourceState`: `BicepValueProxy | OriginResourceState` `get` -- Gets the ResourceState provisioning property.
- `systemData`: [CdnSystemDataProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.cdn/cdnsystemdataproxy.md) `get` -- Gets the SystemData provisioning property.
- `weight`: `BicepValueProxy | number` `get - set` -- Gets or sets the Weight provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.cdn/cdnoriginproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearEnabled](/reference/api/typescript/aspire.hosting.azure.provisioning.cdn/cdnoriginproxy/clearenabled.md) -- `method` -- Clears the Enabled provisioning property.
    ```typescript
  clearEnabled(): void
  ```
- [clearHostName](/reference/api/typescript/aspire.hosting.azure.provisioning.cdn/cdnoriginproxy/clearhostname.md) -- `method` -- Clears the HostName provisioning property.
    ```typescript
  clearHostName(): void
  ```
- [clearHttpPort](/reference/api/typescript/aspire.hosting.azure.provisioning.cdn/cdnoriginproxy/clearhttpport.md) -- `method` -- Clears the HttpPort provisioning property.
    ```typescript
  clearHttpPort(): void
  ```
- [clearHttpsPort](/reference/api/typescript/aspire.hosting.azure.provisioning.cdn/cdnoriginproxy/clearhttpsport.md) -- `method` -- Clears the HttpsPort provisioning property.
    ```typescript
  clearHttpsPort(): void
  ```
- [clearName](/reference/api/typescript/aspire.hosting.azure.provisioning.cdn/cdnoriginproxy/clearname.md) -- `method` -- Clears the Name provisioning property.
    ```typescript
  clearName(): void
  ```
- [clearOriginHostHeader](/reference/api/typescript/aspire.hosting.azure.provisioning.cdn/cdnoriginproxy/clearoriginhostheader.md) -- `method` -- Clears the OriginHostHeader provisioning property.
    ```typescript
  clearOriginHostHeader(): void
  ```
- [clearPriority](/reference/api/typescript/aspire.hosting.azure.provisioning.cdn/cdnoriginproxy/clearpriority.md) -- `method` -- Clears the Priority provisioning property.
    ```typescript
  clearPriority(): void
  ```
- [clearPrivateLinkAlias](/reference/api/typescript/aspire.hosting.azure.provisioning.cdn/cdnoriginproxy/clearprivatelinkalias.md) -- `method` -- Clears the PrivateLinkAlias provisioning property.
    ```typescript
  clearPrivateLinkAlias(): void
  ```
- [clearPrivateLinkApprovalMessage](/reference/api/typescript/aspire.hosting.azure.provisioning.cdn/cdnoriginproxy/clearprivatelinkapprovalmessage.md) -- `method` -- Clears the PrivateLinkApprovalMessage provisioning property.
    ```typescript
  clearPrivateLinkApprovalMessage(): void
  ```
- [clearPrivateLinkLocation](/reference/api/typescript/aspire.hosting.azure.provisioning.cdn/cdnoriginproxy/clearprivatelinklocation.md) -- `method` -- Clears the PrivateLinkLocation provisioning property.
    ```typescript
  clearPrivateLinkLocation(): void
  ```
- [clearPrivateLinkResourceId](/reference/api/typescript/aspire.hosting.azure.provisioning.cdn/cdnoriginproxy/clearprivatelinkresourceid.md) -- `method` -- Clears the PrivateLinkResourceId provisioning property.
    ```typescript
  clearPrivateLinkResourceId(): void
  ```
- [clearWeight](/reference/api/typescript/aspire.hosting.azure.provisioning.cdn/cdnoriginproxy/clearweight.md) -- `method` -- Clears the Weight provisioning property.
    ```typescript
  clearWeight(): void
  ```
