# CustomRuleProxy

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

Represents the CustomRule Azure Provisioning model.

## Definition

```typescript
interface CustomRuleProxy {
  action: BicepValueProxy | OverrideActionType;
  enabledState: BicepValueProxy | CustomRuleEnabledState;
  matchConditions: Aspire_Hosting_Azure_Provisioning_Cdn_Generated_ListOfCustomRuleMatchConditionProxy;
  name: BicepValueProxy | string;
  priority: BicepValueProxy | number;
  clearAction(): void;
  clearEnabledState(): void;
  clearName(): void;
  clearPriority(): void;
}
```

## Properties

- `action`: `BicepValueProxy | OverrideActionType` `get - set` -- Gets or sets the Action provisioning property.
- `enabledState`: `BicepValueProxy | CustomRuleEnabledState` `get - set` -- Gets or sets the EnabledState provisioning property.
- `matchConditions`: [Aspire_Hosting_Azure_Provisioning_Cdn_Generated_ListOfCustomRuleMatchConditionProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.cdn/aspire-hosting-azure-provisioning-cdn-generated-listofcustomrulematchconditionproxy.md) `get - set` -- Gets or sets the MatchConditions provisioning property.
- `name`: `BicepValueProxy | string` `get - set` -- Gets or sets the Name provisioning property.
- `priority`: `BicepValueProxy | number` `get - set` -- Gets or sets the Priority provisioning property.

## Methods

- [clearAction](/reference/api/typescript/aspire.hosting.azure.provisioning.cdn/customruleproxy/clearaction.md) -- `method` -- Clears the Action provisioning property.
    ```typescript
  clearAction(): void
  ```
- [clearEnabledState](/reference/api/typescript/aspire.hosting.azure.provisioning.cdn/customruleproxy/clearenabledstate.md) -- `method` -- Clears the EnabledState provisioning property.
    ```typescript
  clearEnabledState(): void
  ```
- [clearName](/reference/api/typescript/aspire.hosting.azure.provisioning.cdn/customruleproxy/clearname.md) -- `method` -- Clears the Name provisioning property.
    ```typescript
  clearName(): void
  ```
- [clearPriority](/reference/api/typescript/aspire.hosting.azure.provisioning.cdn/customruleproxy/clearpriority.md) -- `method` -- Clears the Priority provisioning property.
    ```typescript
  clearPriority(): void
  ```
