# SqlServerDatabaseReplicationLinkProxy

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

## Definition

```typescript
interface SqlServerDatabaseReplicationLinkProxy {
  readonly id: BicepValueProxy;
  readonly isTerminationAllowed: BicepValueProxy | boolean;
  linkId: BicepValueProxy | string;
  linkType: BicepValueProxy | ReplicationLinkType;
  readonly name: BicepValueProxy | string;
  parent: SqlDatabaseProxy;
  readonly partnerDatabase: BicepValueProxy | string;
  readonly partnerDatabaseId: BicepValueProxy | string;
  readonly partnerLocation: BicepValueProxy;
  readonly partnerRole: BicepValueProxy | SqlServerDatabaseReplicationRole;
  readonly partnerServer: BicepValueProxy | string;
  readonly percentComplete: BicepValueProxy | number;
  readonly replicationMode: BicepValueProxy | string;
  readonly replicationState: BicepValueProxy | ReplicationLinkState;
  readonly role: BicepValueProxy | SqlServerDatabaseReplicationRole;
  readonly startOn: BicepValueProxy | datetimeoffset;
  readonly systemData: SqlSystemDataProxy;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearLinkId(): void;
  clearLinkType(): void;
}
```

## Properties

- `id`: `BicepValueProxy` `get` -- Gets the Id provisioning property.
- `isTerminationAllowed`: `BicepValueProxy | boolean` `get` -- Gets the IsTerminationAllowed provisioning property.
- `linkId`: `BicepValueProxy | string` `get - set` -- Gets or sets the LinkId provisioning property.
- `linkType`: `BicepValueProxy | ReplicationLinkType` `get - set` -- Gets or sets the LinkType provisioning property.
- `name`: `BicepValueProxy | string` `get` -- Gets the Name provisioning property.
- `parent`: [SqlDatabaseProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/sqldatabaseproxy.md) `get - set` -- Gets or sets the Parent provisioning property.
- `partnerDatabase`: `BicepValueProxy | string` `get` -- Gets the PartnerDatabase provisioning property.
- `partnerDatabaseId`: `BicepValueProxy | string` `get` -- Gets the PartnerDatabaseId provisioning property.
- `partnerLocation`: `BicepValueProxy` `get` -- Gets the PartnerLocation provisioning property.
- `partnerRole`: `BicepValueProxy | SqlServerDatabaseReplicationRole` `get` -- Gets the PartnerRole provisioning property.
- `partnerServer`: `BicepValueProxy | string` `get` -- Gets the PartnerServer provisioning property.
- `percentComplete`: `BicepValueProxy | number` `get` -- Gets the PercentComplete provisioning property.
- `replicationMode`: `BicepValueProxy | string` `get` -- Gets the ReplicationMode provisioning property.
- `replicationState`: `BicepValueProxy | ReplicationLinkState` `get` -- Gets the ReplicationState provisioning property.
- `role`: `BicepValueProxy | SqlServerDatabaseReplicationRole` `get` -- Gets the Role provisioning property.
- `startOn`: `BicepValueProxy | datetimeoffset` `get` -- Gets the StartOn 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/sqlserverdatabasereplicationlinkproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearLinkId](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/sqlserverdatabasereplicationlinkproxy/clearlinkid.md) -- `method` -- Clears the LinkId provisioning property.
    ```typescript
  clearLinkId(): void
  ```
- [clearLinkType](/reference/api/typescript/aspire.hosting.azure.provisioning.sql/sqlserverdatabasereplicationlinkproxy/clearlinktype.md) -- `method` -- Clears the LinkType provisioning property.
    ```typescript
  clearLinkType(): void
  ```
