# EncryptionScopeProxy

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

Represents the EncryptionScope Azure Provisioning model.

## Definition

```typescript
interface EncryptionScopeProxy {
  readonly createdOn: BicepValueProxy | datetimeoffset;
  readonly id: BicepValueProxy;
  keyVaultProperties: EncryptionScopeKeyVaultPropertiesProxy;
  readonly lastModifiedOn: BicepValueProxy | datetimeoffset;
  name: BicepValueProxy | string;
  parent: StorageAccountProxy;
  requireInfrastructureEncryption: BicepValueProxy | boolean;
  source: BicepValueProxy | EncryptionScopeSource;
  state: BicepValueProxy | EncryptionScopeState;
  readonly systemData: StorageSystemDataProxy;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearName(): void;
  clearRequireInfrastructureEncryption(): void;
  clearSource(): void;
  clearState(): void;
}
```

## Properties

- `createdOn`: `BicepValueProxy | datetimeoffset` `get` -- Gets the CreatedOn provisioning property.
- `id`: `BicepValueProxy` `get` -- Gets the Id provisioning property.
- `keyVaultProperties`: [EncryptionScopeKeyVaultPropertiesProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.storage/encryptionscopekeyvaultpropertiesproxy.md) `get - set` -- Gets or sets the KeyVaultProperties provisioning property.
- `lastModifiedOn`: `BicepValueProxy | datetimeoffset` `get` -- Gets the LastModifiedOn provisioning property.
- `name`: `BicepValueProxy | string` `get - set` -- Gets or sets the Name provisioning property.
- `parent`: [StorageAccountProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.storage/storageaccountproxy.md) `get - set` -- Gets or sets the Parent provisioning property.
- `requireInfrastructureEncryption`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the RequireInfrastructureEncryption provisioning property.
- `source`: `BicepValueProxy | EncryptionScopeSource` `get - set` -- Gets or sets the Source provisioning property.
- `state`: `BicepValueProxy | EncryptionScopeState` `get - set` -- Gets or sets 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/encryptionscopeproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearName](/reference/api/typescript/aspire.hosting.azure.provisioning.storage/encryptionscopeproxy/clearname.md) -- `method` -- Clears the Name provisioning property.
    ```typescript
  clearName(): void
  ```
- [clearRequireInfrastructureEncryption](/reference/api/typescript/aspire.hosting.azure.provisioning.storage/encryptionscopeproxy/clearrequireinfrastructureencryption.md) -- `method` -- Clears the RequireInfrastructureEncryption provisioning property.
    ```typescript
  clearRequireInfrastructureEncryption(): void
  ```
- [clearSource](/reference/api/typescript/aspire.hosting.azure.provisioning.storage/encryptionscopeproxy/clearsource.md) -- `method` -- Clears the Source provisioning property.
    ```typescript
  clearSource(): void
  ```
- [clearState](/reference/api/typescript/aspire.hosting.azure.provisioning.storage/encryptionscopeproxy/clearstate.md) -- `method` -- Clears the State provisioning property.
    ```typescript
  clearState(): void
  ```
