# CosmosDBServiceProxy

- Module: [Aspire.Hosting.Azure.Provisioning.CosmosDB](/reference/api/typescript/aspire.hosting.azure.provisioning.cosmosdb.md)
- Version: `13.6.0-preview.1.26478.8`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62)

Represents the CosmosDBService Azure Provisioning model.

## Definition

```typescript
interface CosmosDBServiceProxy {
  readonly id: BicepValueProxy;
  instanceCount: BicepValueProxy | number;
  instanceSize: BicepValueProxy | CosmosDBServiceSize;
  name: BicepValueProxy | string;
  parent: CosmosDBAccountProxy;
  readonly properties: CosmosDBServicePropertiesProxy;
  serviceType: BicepValueProxy | CosmosDBServiceType;
  readonly systemData: CosmosDBSystemDataProxy;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearInstanceCount(): void;
  clearInstanceSize(): void;
  clearName(): void;
  clearServiceType(): void;
}
```

## Properties

- `id`: `BicepValueProxy` `get` -- Gets the Id provisioning property.
- `instanceCount`: `BicepValueProxy | number` `get - set` -- Gets or sets the InstanceCount provisioning property.
- `instanceSize`: `BicepValueProxy | CosmosDBServiceSize` `get - set` -- Gets or sets the InstanceSize provisioning property.
- `name`: `BicepValueProxy | string` `get - set` -- Gets or sets the Name provisioning property.
- `parent`: [CosmosDBAccountProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.cosmosdb/cosmosdbaccountproxy.md) `get - set` -- Gets or sets the Parent provisioning property.
- `properties`: [CosmosDBServicePropertiesProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.cosmosdb/cosmosdbservicepropertiesproxy.md) `get` -- Gets the Properties provisioning property.
- `serviceType`: `BicepValueProxy | CosmosDBServiceType` `get - set` -- Gets or sets the ServiceType provisioning property.
- `systemData`: [CosmosDBSystemDataProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.cosmosdb/cosmosdbsystemdataproxy.md) `get` -- Gets the SystemData provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.cosmosdb/cosmosdbserviceproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearInstanceCount](/reference/api/typescript/aspire.hosting.azure.provisioning.cosmosdb/cosmosdbserviceproxy/clearinstancecount.md) -- `method` -- Clears the InstanceCount provisioning property.
    ```typescript
  clearInstanceCount(): void
  ```
- [clearInstanceSize](/reference/api/typescript/aspire.hosting.azure.provisioning.cosmosdb/cosmosdbserviceproxy/clearinstancesize.md) -- `method` -- Clears the InstanceSize provisioning property.
    ```typescript
  clearInstanceSize(): void
  ```
- [clearName](/reference/api/typescript/aspire.hosting.azure.provisioning.cosmosdb/cosmosdbserviceproxy/clearname.md) -- `method` -- Clears the Name provisioning property.
    ```typescript
  clearName(): void
  ```
- [clearServiceType](/reference/api/typescript/aspire.hosting.azure.provisioning.cosmosdb/cosmosdbserviceproxy/clearservicetype.md) -- `method` -- Clears the ServiceType provisioning property.
    ```typescript
  clearServiceType(): void
  ```
