# SqlServerConnectionPolicyProxy

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

Represents the SqlServerConnectionPolicy Azure Provisioning model.

## Definition

```typescript
interface SqlServerConnectionPolicyProxy {
  connectionType: BicepValueProxy | ServerConnectionType;
  readonly id: BicepValueProxy;
  readonly kind: BicepValueProxy | string;
  readonly location: BicepValueProxy;
  readonly name: BicepValueProxy | string;
  parent: SqlServerProxy;
  readonly systemData: SqlSystemDataProxy;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearConnectionType(): void;
}
```

## Properties

- `connectionType`: `BicepValueProxy | ServerConnectionType` `get - set` -- Gets or sets the ConnectionType provisioning property.
- `id`: `BicepValueProxy` `get` -- Gets the Id 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.
- `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/sqlserverconnectionpolicyproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearConnectionType](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/sqlserverconnectionpolicyproxy/clearconnectiontype.md) -- `method` -- Clears the ConnectionType provisioning property.
    ```typescript
  clearConnectionType(): void
  ```
