# MongoDBUserDefinitionProxy

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

## Definition

```typescript
interface MongoDBUserDefinitionProxy {
  customData: BicepValueProxy | string;
  databaseName: BicepValueProxy | string;
  readonly id: BicepValueProxy;
  mechanisms: BicepValueProxy | string;
  readonly name: BicepValueProxy | string;
  parent: CosmosDBAccountProxy;
  password: BicepValueProxy | string;
  roles: Aspire_Hosting_Azure_Provisioning_CosmosDB_Generated_ListOfMongoDBRoleProxy;
  readonly systemData: CosmosDBSystemDataProxy;
  userName: BicepValueProxy | string;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearCustomData(): void;
  clearDatabaseName(): void;
  clearMechanisms(): void;
  clearPassword(): void;
  clearUserName(): void;
}
```

## Properties

- `customData`: `BicepValueProxy | string` `get - set` -- Gets or sets the CustomData provisioning property.
- `databaseName`: `BicepValueProxy | string` `get - set` -- Gets or sets the DatabaseName provisioning property.
- `id`: `BicepValueProxy` `get` -- Gets the Id provisioning property.
- `mechanisms`: `BicepValueProxy | string` `get - set` -- Gets or sets the Mechanisms provisioning property.
- `name`: `BicepValueProxy | string` `get` -- Gets 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.
- `password`: `BicepValueProxy | string` `get - set` -- Gets or sets the Password provisioning property.
- `roles`: [Aspire_Hosting_Azure_Provisioning_CosmosDB_Generated_ListOfMongoDBRoleProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.cosmosdb/aspire-hosting-azure-provisioning-cosmosdb-generated-listofmongodbroleproxy.md) `get - set` -- Gets or sets the Roles provisioning property.
- `systemData`: [CosmosDBSystemDataProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.cosmosdb/cosmosdbsystemdataproxy.md) `get` -- Gets the SystemData provisioning property.
- `userName`: `BicepValueProxy | string` `get - set` -- Gets or sets the UserName provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.cosmosdb/mongodbuserdefinitionproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearCustomData](/reference/api/typescript/aspire.hosting.azure.provisioning.cosmosdb/mongodbuserdefinitionproxy/clearcustomdata.md) -- `method` -- Clears the CustomData provisioning property.
    ```typescript
  clearCustomData(): void
  ```
- [clearDatabaseName](/reference/api/typescript/aspire.hosting.azure.provisioning.cosmosdb/mongodbuserdefinitionproxy/cleardatabasename.md) -- `method` -- Clears the DatabaseName provisioning property.
    ```typescript
  clearDatabaseName(): void
  ```
- [clearMechanisms](/reference/api/typescript/aspire.hosting.azure.provisioning.cosmosdb/mongodbuserdefinitionproxy/clearmechanisms.md) -- `method` -- Clears the Mechanisms provisioning property.
    ```typescript
  clearMechanisms(): void
  ```
- [clearPassword](/reference/api/typescript/aspire.hosting.azure.provisioning.cosmosdb/mongodbuserdefinitionproxy/clearpassword.md) -- `method` -- Clears the Password provisioning property.
    ```typescript
  clearPassword(): void
  ```
- [clearUserName](/reference/api/typescript/aspire.hosting.azure.provisioning.cosmosdb/mongodbuserdefinitionproxy/clearusername.md) -- `method` -- Clears the UserName provisioning property.
    ```typescript
  clearUserName(): void
  ```
