# ImmutabilityPolicyProxy

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

Represents the ImmutabilityPolicy Azure Provisioning model.

## Definition

```typescript
interface ImmutabilityPolicyProxy {
  allowProtectedAppendWrites: BicepValueProxy | boolean;
  allowProtectedAppendWritesAll: BicepValueProxy | boolean;
  readonly eTag: BicepValueProxy;
  readonly id: BicepValueProxy;
  immutabilityPeriodSinceCreationInDays: BicepValueProxy | number;
  readonly name: BicepValueProxy | string;
  parent: BlobContainerProxy;
  readonly state: BicepValueProxy | ImmutabilityPolicyState;
  readonly systemData: StorageSystemDataProxy;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearAllowProtectedAppendWrites(): void;
  clearAllowProtectedAppendWritesAll(): void;
  clearImmutabilityPeriodSinceCreationInDays(): void;
}
```

## Properties

- `allowProtectedAppendWrites`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the AllowProtectedAppendWrites provisioning property.
- `allowProtectedAppendWritesAll`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the AllowProtectedAppendWritesAll provisioning property.
- `eTag`: `BicepValueProxy` `get` -- Gets the ETag provisioning property.
- `id`: `BicepValueProxy` `get` -- Gets the Id provisioning property.
- `immutabilityPeriodSinceCreationInDays`: `BicepValueProxy | number` `get - set` -- Gets or sets the ImmutabilityPeriodSinceCreationInDays provisioning property.
- `name`: `BicepValueProxy | string` `get` -- Gets the Name provisioning property.
- `parent`: [BlobContainerProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.storage/blobcontainerproxy.md) `get - set` -- Gets or sets the Parent provisioning property.
- `state`: `BicepValueProxy | ImmutabilityPolicyState` `get` -- Gets the State provisioning property.
- `systemData`: [StorageSystemDataProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.storage/storagesystemdataproxy.md) `get` -- Gets the SystemData provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.storage/immutabilitypolicyproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearAllowProtectedAppendWrites](/reference/api/typescript/aspire.hosting.azure.provisioning.storage/immutabilitypolicyproxy/clearallowprotectedappendwrites.md) -- `method` -- Clears the AllowProtectedAppendWrites provisioning property.
    ```typescript
  clearAllowProtectedAppendWrites(): void
  ```
- [clearAllowProtectedAppendWritesAll](/reference/api/typescript/aspire.hosting.azure.provisioning.storage/immutabilitypolicyproxy/clearallowprotectedappendwritesall.md) -- `method` -- Clears the AllowProtectedAppendWritesAll provisioning property.
    ```typescript
  clearAllowProtectedAppendWritesAll(): void
  ```
- [clearImmutabilityPeriodSinceCreationInDays](/reference/api/typescript/aspire.hosting.azure.provisioning.storage/immutabilitypolicyproxy/clearimmutabilityperiodsincecreationindays.md) -- `method` -- Clears the ImmutabilityPeriodSinceCreationInDays provisioning property.
    ```typescript
  clearImmutabilityPeriodSinceCreationInDays(): void
  ```
