# DataMaskingPolicyProxy

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

Represents the DataMaskingPolicy Azure Provisioning model.

## Definition

```typescript
interface DataMaskingPolicyProxy {
  readonly applicationPrincipals: BicepValueProxy | string;
  dataMaskingState: BicepValueProxy | DataMaskingState;
  exemptPrincipals: BicepValueProxy | string;
  readonly id: BicepValueProxy;
  readonly kind: BicepValueProxy | string;
  readonly location: BicepValueProxy;
  readonly maskingLevel: BicepValueProxy | string;
  readonly name: BicepValueProxy | string;
  parent: SqlDatabaseProxy;
  readonly systemData: SqlSystemDataProxy;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearDataMaskingState(): void;
  clearExemptPrincipals(): void;
}
```

## Properties

- `applicationPrincipals`: `BicepValueProxy | string` `get` -- Gets the ApplicationPrincipals provisioning property.
- `dataMaskingState`: `BicepValueProxy | DataMaskingState` `get - set` -- Gets or sets the DataMaskingState provisioning property.
- `exemptPrincipals`: `BicepValueProxy | string` `get - set` -- Gets or sets the ExemptPrincipals provisioning property.
- `id`: `BicepValueProxy` `get` -- Gets the Id provisioning property.
- `kind`: `BicepValueProxy | string` `get` -- Gets the Kind provisioning property.
- `location`: `BicepValueProxy` `get` -- Gets the Location provisioning property.
- `maskingLevel`: `BicepValueProxy | string` `get` -- Gets the MaskingLevel provisioning property.
- `name`: `BicepValueProxy | string` `get` -- Gets the Name provisioning property.
- `parent`: [SqlDatabaseProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/sqldatabaseproxy.md) `get - set` -- Gets or sets the Parent provisioning property.
- `systemData`: [SqlSystemDataProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/sqlsystemdataproxy.md) `get` -- Gets the SystemData provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/datamaskingpolicyproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearDataMaskingState](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/datamaskingpolicyproxy/cleardatamaskingstate.md) -- `method` -- Clears the DataMaskingState provisioning property.
    ```typescript
  clearDataMaskingState(): void
  ```
- [clearExemptPrincipals](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/datamaskingpolicyproxy/clearexemptprincipals.md) -- `method` -- Clears the ExemptPrincipals provisioning property.
    ```typescript
  clearExemptPrincipals(): void
  ```
