# SyncMemberProxy

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

## Definition

```typescript
interface SyncMemberProxy {
  databaseName: BicepValueProxy | string;
  databaseType: BicepValueProxy | SyncMemberDbType;
  readonly id: BicepValueProxy;
  name: BicepValueProxy | string;
  parent: SyncGroupProxy;
  password: BicepValueProxy | string;
  readonly privateEndpointName: BicepValueProxy | string;
  serverName: BicepValueProxy | string;
  sqlServerDatabaseId: BicepValueProxy | guid;
  syncAgentId: BicepValueProxy;
  syncDirection: BicepValueProxy | SyncDirection;
  syncMemberAzureDatabaseResourceId: BicepValueProxy;
  readonly syncState: BicepValueProxy | SyncMemberState;
  readonly systemData: SqlSystemDataProxy;
  usePrivateLinkConnection: BicepValueProxy | boolean;
  userName: BicepValueProxy | string;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearDatabaseName(): void;
  clearDatabaseType(): void;
  clearName(): void;
  clearPassword(): void;
  clearServerName(): void;
  clearSqlServerDatabaseId(): void;
  clearSyncAgentId(): void;
  clearSyncDirection(): void;
  clearSyncMemberAzureDatabaseResourceId(): void;
  clearUsePrivateLinkConnection(): void;
  clearUserName(): void;
}
```

## Properties

- `databaseName`: `BicepValueProxy | string` `get - set` -- Gets or sets the DatabaseName provisioning property.
- `databaseType`: `BicepValueProxy | SyncMemberDbType` `get - set` -- Gets or sets the DatabaseType provisioning property.
- `id`: `BicepValueProxy` `get` -- Gets the Id provisioning property.
- `name`: `BicepValueProxy | string` `get - set` -- Gets or sets the Name provisioning property.
- `parent`: [SyncGroupProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/syncgroupproxy.md) `get - set` -- Gets or sets the Parent provisioning property.
- `password`: `BicepValueProxy | string` `get - set` -- Gets or sets the Password provisioning property.
- `privateEndpointName`: `BicepValueProxy | string` `get` -- Gets the PrivateEndpointName provisioning property.
- `serverName`: `BicepValueProxy | string` `get - set` -- Gets or sets the ServerName provisioning property.
- `sqlServerDatabaseId`: `BicepValueProxy | guid` `get - set` -- Gets or sets the SqlServerDatabaseId provisioning property.
- `syncAgentId`: `BicepValueProxy` `get - set` -- Gets or sets the SyncAgentId provisioning property.
- `syncDirection`: `BicepValueProxy | SyncDirection` `get - set` -- Gets or sets the SyncDirection provisioning property.
- `syncMemberAzureDatabaseResourceId`: `BicepValueProxy` `get - set` -- Gets or sets the SyncMemberAzureDatabaseResourceId provisioning property.
- `syncState`: `BicepValueProxy | SyncMemberState` `get` -- Gets the SyncState provisioning property.
- `systemData`: [SqlSystemDataProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/sqlsystemdataproxy.md) `get` -- Gets the SystemData provisioning property.
- `usePrivateLinkConnection`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the UsePrivateLinkConnection provisioning property.
- `userName`: `BicepValueProxy | string` `get - set` -- Gets or sets the UserName provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/syncmemberproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearDatabaseName](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/syncmemberproxy/cleardatabasename.md) -- `method` -- Clears the DatabaseName provisioning property.
    ```typescript
  clearDatabaseName(): void
  ```
- [clearDatabaseType](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/syncmemberproxy/cleardatabasetype.md) -- `method` -- Clears the DatabaseType provisioning property.
    ```typescript
  clearDatabaseType(): void
  ```
- [clearName](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/syncmemberproxy/clearname.md) -- `method` -- Clears the Name provisioning property.
    ```typescript
  clearName(): void
  ```
- [clearPassword](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/syncmemberproxy/clearpassword.md) -- `method` -- Clears the Password provisioning property.
    ```typescript
  clearPassword(): void
  ```
- [clearServerName](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/syncmemberproxy/clearservername.md) -- `method` -- Clears the ServerName provisioning property.
    ```typescript
  clearServerName(): void
  ```
- [clearSqlServerDatabaseId](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/syncmemberproxy/clearsqlserverdatabaseid.md) -- `method` -- Clears the SqlServerDatabaseId provisioning property.
    ```typescript
  clearSqlServerDatabaseId(): void
  ```
- [clearSyncAgentId](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/syncmemberproxy/clearsyncagentid.md) -- `method` -- Clears the SyncAgentId provisioning property.
    ```typescript
  clearSyncAgentId(): void
  ```
- [clearSyncDirection](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/syncmemberproxy/clearsyncdirection.md) -- `method` -- Clears the SyncDirection provisioning property.
    ```typescript
  clearSyncDirection(): void
  ```
- [clearSyncMemberAzureDatabaseResourceId](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/syncmemberproxy/clearsyncmemberazuredatabaseresourceid.md) -- `method` -- Clears the SyncMemberAzureDatabaseResourceId provisioning property.
    ```typescript
  clearSyncMemberAzureDatabaseResourceId(): void
  ```
- [clearUsePrivateLinkConnection](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/syncmemberproxy/clearuseprivatelinkconnection.md) -- `method` -- Clears the UsePrivateLinkConnection provisioning property.
    ```typescript
  clearUsePrivateLinkConnection(): void
  ```
- [clearUserName](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/syncmemberproxy/clearusername.md) -- `method` -- Clears the UserName provisioning property.
    ```typescript
  clearUserName(): void
  ```
