# ManagedInstanceLongTermRetentionPolicyProxy

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

## Definition

```typescript
interface ManagedInstanceLongTermRetentionPolicyProxy {
  backupStorageAccessTier: BicepValueProxy | SqlBackupStorageAccessTier;
  readonly id: BicepValueProxy;
  monthlyRetention: BicepValueProxy | string;
  readonly name: BicepValueProxy | string;
  parent: ManagedDatabaseProxy;
  readonly systemData: SqlSystemDataProxy;
  weeklyRetention: BicepValueProxy | string;
  weekOfYear: BicepValueProxy | number;
  yearlyRetention: BicepValueProxy | string;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearBackupStorageAccessTier(): void;
  clearMonthlyRetention(): void;
  clearWeeklyRetention(): void;
  clearWeekOfYear(): void;
  clearYearlyRetention(): void;
}
```

## Properties

- `backupStorageAccessTier`: `BicepValueProxy | SqlBackupStorageAccessTier` `get - set` -- Gets or sets the BackupStorageAccessTier provisioning property.
- `id`: `BicepValueProxy` `get` -- Gets the Id provisioning property.
- `monthlyRetention`: `BicepValueProxy | string` `get - set` -- Gets or sets the MonthlyRetention 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.
- `systemData`: [SqlSystemDataProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/sqlsystemdataproxy.md) `get` -- Gets the SystemData provisioning property.
- `weeklyRetention`: `BicepValueProxy | string` `get - set` -- Gets or sets the WeeklyRetention provisioning property.
- `weekOfYear`: `BicepValueProxy | number` `get - set` -- Gets or sets the WeekOfYear provisioning property.
- `yearlyRetention`: `BicepValueProxy | string` `get - set` -- Gets or sets the YearlyRetention provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/managedinstancelongtermretentionpolicyproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearBackupStorageAccessTier](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/managedinstancelongtermretentionpolicyproxy/clearbackupstorageaccesstier.md) -- `method` -- Clears the BackupStorageAccessTier provisioning property.
    ```typescript
  clearBackupStorageAccessTier(): void
  ```
- [clearMonthlyRetention](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/managedinstancelongtermretentionpolicyproxy/clearmonthlyretention.md) -- `method` -- Clears the MonthlyRetention provisioning property.
    ```typescript
  clearMonthlyRetention(): void
  ```
- [clearWeeklyRetention](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/managedinstancelongtermretentionpolicyproxy/clearweeklyretention.md) -- `method` -- Clears the WeeklyRetention provisioning property.
    ```typescript
  clearWeeklyRetention(): void
  ```
- [clearWeekOfYear](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/managedinstancelongtermretentionpolicyproxy/clearweekofyear.md) -- `method` -- Clears the WeekOfYear provisioning property.
    ```typescript
  clearWeekOfYear(): void
  ```
- [clearYearlyRetention](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/managedinstancelongtermretentionpolicyproxy/clearyearlyretention.md) -- `method` -- Clears the YearlyRetention provisioning property.
    ```typescript
  clearYearlyRetention(): void
  ```
