# CosmosDBIndexingPolicyProxy

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

## Definition

```typescript
interface CosmosDBIndexingPolicyProxy {
  compositeIndexes: Aspire_Hosting_Azure_Provisioning_CosmosDB_Generated_ListOfBicepListOfCosmosDBCompositePathProxy;
  excludedPaths: Aspire_Hosting_Azure_Provisioning_CosmosDB_Generated_ListOfCosmosDBExcludedPathProxy;
  includedPaths: Aspire_Hosting_Azure_Provisioning_CosmosDB_Generated_ListOfCosmosDBIncludedPathProxy;
  indexingMode: BicepValueProxy | CosmosDBIndexingMode;
  isAutomatic: BicepValueProxy | boolean;
  spatialIndexes: Aspire_Hosting_Azure_Provisioning_CosmosDB_Generated_ListOfSpatialSpecProxy;
  clearIndexingMode(): void;
  clearIsAutomatic(): void;
}
```

## Properties

- `compositeIndexes`: [Aspire_Hosting_Azure_Provisioning_CosmosDB_Generated_ListOfBicepListOfCosmosDBCompositePathProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.cosmosdb/aspire-hosting-azure-provisioning-cosmosdb-generated-listofbiceplistofcosmosdbcompositepathproxy.md) `get - set` -- Gets or sets the CompositeIndexes provisioning property.
- `excludedPaths`: [Aspire_Hosting_Azure_Provisioning_CosmosDB_Generated_ListOfCosmosDBExcludedPathProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.cosmosdb/aspire-hosting-azure-provisioning-cosmosdb-generated-listofcosmosdbexcludedpathproxy.md) `get - set` -- Gets or sets the ExcludedPaths provisioning property.
- `includedPaths`: [Aspire_Hosting_Azure_Provisioning_CosmosDB_Generated_ListOfCosmosDBIncludedPathProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.cosmosdb/aspire-hosting-azure-provisioning-cosmosdb-generated-listofcosmosdbincludedpathproxy.md) `get - set` -- Gets or sets the IncludedPaths provisioning property.
- `indexingMode`: `BicepValueProxy | CosmosDBIndexingMode` `get - set` -- Gets or sets the IndexingMode provisioning property.
- `isAutomatic`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the IsAutomatic provisioning property.
- `spatialIndexes`: [Aspire_Hosting_Azure_Provisioning_CosmosDB_Generated_ListOfSpatialSpecProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.cosmosdb/aspire-hosting-azure-provisioning-cosmosdb-generated-listofspatialspecproxy.md) `get - set` -- Gets or sets the SpatialIndexes provisioning property.

## Methods

- [clearIndexingMode](/reference/api/typescript/aspire.hosting.azure.provisioning.cosmosdb/cosmosdbindexingpolicyproxy/clearindexingmode.md) -- `method` -- Clears the IndexingMode provisioning property.
    ```typescript
  clearIndexingMode(): void
  ```
- [clearIsAutomatic](/reference/api/typescript/aspire.hosting.azure.provisioning.cosmosdb/cosmosdbindexingpolicyproxy/clearisautomatic.md) -- `method` -- Clears the IsAutomatic provisioning property.
    ```typescript
  clearIsAutomatic(): void
  ```
