# EncryptionProtectorProxy

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

## Definition

```typescript
interface EncryptionProtectorProxy {
  readonly id: BicepValueProxy;
  isAutoRotationEnabled: BicepValueProxy | boolean;
  readonly kind: BicepValueProxy | string;
  readonly location: BicepValueProxy;
  readonly name: BicepValueProxy | string;
  parent: SqlServerProxy;
  serverKeyName: BicepValueProxy | string;
  serverKeyType: BicepValueProxy | SqlServerKeyType;
  readonly subregion: BicepValueProxy | string;
  readonly systemData: SqlSystemDataProxy;
  readonly thumbprint: BicepValueProxy | string;
  readonly uri: BicepValueProxy | uri;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearIsAutoRotationEnabled(): void;
  clearServerKeyName(): void;
  clearServerKeyType(): void;
}
```

## Properties

- `id`: `BicepValueProxy` `get` -- Gets the Id provisioning property.
- `isAutoRotationEnabled`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the IsAutoRotationEnabled provisioning property.
- `kind`: `BicepValueProxy | string` `get` -- Gets the Kind provisioning property.
- `location`: `BicepValueProxy` `get` -- Gets the Location provisioning property.
- `name`: `BicepValueProxy | string` `get` -- Gets the Name provisioning property.
- `parent`: [SqlServerProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/sqlserverproxy.md) `get - set` -- Gets or sets the Parent provisioning property.
- `serverKeyName`: `BicepValueProxy | string` `get - set` -- Gets or sets the ServerKeyName provisioning property.
- `serverKeyType`: `BicepValueProxy | SqlServerKeyType` `get - set` -- Gets or sets the ServerKeyType provisioning property.
- `subregion`: `BicepValueProxy | string` `get` -- Gets the Subregion provisioning property.
- `systemData`: [SqlSystemDataProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/sqlsystemdataproxy.md) `get` -- Gets the SystemData provisioning property.
- `thumbprint`: `BicepValueProxy | string` `get` -- Gets the Thumbprint provisioning property.
- `uri`: `BicepValueProxy | uri` `get` -- Gets the Uri provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/encryptionprotectorproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearIsAutoRotationEnabled](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/encryptionprotectorproxy/clearisautorotationenabled.md) -- `method` -- Clears the IsAutoRotationEnabled provisioning property.
    ```typescript
  clearIsAutoRotationEnabled(): void
  ```
- [clearServerKeyName](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/encryptionprotectorproxy/clearserverkeyname.md) -- `method` -- Clears the ServerKeyName provisioning property.
    ```typescript
  clearServerKeyName(): void
  ```
- [clearServerKeyType](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/encryptionprotectorproxy/clearserverkeytype.md) -- `method` -- Clears the ServerKeyType provisioning property.
    ```typescript
  clearServerKeyType(): void
  ```
