# ManagedBackupShortTermRetentionPolicyProxy

- 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 ManagedBackupShortTermRetentionPolicy Azure Provisioning model.

## Definition

```typescript
interface ManagedBackupShortTermRetentionPolicyProxy {
  readonly id: BicepValueProxy;
  readonly name: BicepValueProxy | string;
  parent: ManagedDatabaseProxy;
  retentionDays: BicepValueProxy | number;
  readonly systemData: SqlSystemDataProxy;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearRetentionDays(): void;
}
```

## Properties

- `id`: `BicepValueProxy` `get` -- Gets the Id provisioning property.
- `name`: `BicepValueProxy | string` `get` -- Gets the Name provisioning property.
- `parent`: [ManagedDatabaseProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/manageddatabaseproxy.md) `get - set` -- Gets or sets the Parent provisioning property.
- `retentionDays`: `BicepValueProxy | number` `get - set` -- Gets or sets the RetentionDays 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/managedbackupshorttermretentionpolicyproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearRetentionDays](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/managedbackupshorttermretentionpolicyproxy/clearretentiondays.md) -- `method` -- Clears the RetentionDays provisioning property.
    ```typescript
  clearRetentionDays(): void
  ```
