# DatabaseAdvancedThreatProtectionProxy

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

Represents the DatabaseAdvancedThreatProtection Azure Provisioning model.

## Definition

```typescript
interface DatabaseAdvancedThreatProtectionProxy {
  readonly createdOn: BicepValueProxy | datetimeoffset;
  readonly id: BicepValueProxy;
  readonly name: BicepValueProxy | string;
  parent: SqlDatabaseProxy;
  state: BicepValueProxy | AdvancedThreatProtectionState;
  readonly systemData: SqlSystemDataProxy;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearState(): void;
}
```

## Properties

- `createdOn`: `BicepValueProxy | datetimeoffset` `get` -- Gets the CreatedOn provisioning property.
- `id`: `BicepValueProxy` `get` -- Gets the Id 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.
- `state`: `BicepValueProxy | AdvancedThreatProtectionState` `get - set` -- Gets or sets the State 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/databaseadvancedthreatprotectionproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearState](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/databaseadvancedthreatprotectionproxy/clearstate.md) -- `method` -- Clears the State provisioning property.
    ```typescript
  clearState(): void
  ```
