# CosmosDBSqlRoleAssignmentProxy

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

## Definition

```typescript
interface CosmosDBSqlRoleAssignmentProxy {
  readonly id: BicepValueProxy;
  readonly name: BicepValueProxy | string;
  parent: CosmosDBAccountProxy;
  principalId: BicepValueProxy | guid;
  roleDefinitionId: BicepValueProxy;
  scope: BicepValueProxy | string;
  readonly systemData: CosmosDBSystemDataProxy;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearPrincipalId(): void;
  clearRoleDefinitionId(): void;
  clearScope(): void;
}
```

## Properties

- `id`: `BicepValueProxy` `get` -- Gets the Id 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.
- `principalId`: `BicepValueProxy | guid` `get - set` -- Gets or sets the PrincipalId provisioning property.
- `roleDefinitionId`: `BicepValueProxy` `get - set` -- Gets or sets the RoleDefinitionId provisioning property.
- `scope`: `BicepValueProxy | string` `get - set` -- Gets or sets the Scope 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/cosmosdbsqlroleassignmentproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearPrincipalId](/reference/api/typescript/aspire.hosting.azure.provisioning.cosmosdb/cosmosdbsqlroleassignmentproxy/clearprincipalid.md) -- `method` -- Clears the PrincipalId provisioning property.
    ```typescript
  clearPrincipalId(): void
  ```
- [clearRoleDefinitionId](/reference/api/typescript/aspire.hosting.azure.provisioning.cosmosdb/cosmosdbsqlroleassignmentproxy/clearroledefinitionid.md) -- `method` -- Clears the RoleDefinitionId provisioning property.
    ```typescript
  clearRoleDefinitionId(): void
  ```
- [clearScope](/reference/api/typescript/aspire.hosting.azure.provisioning.cosmosdb/cosmosdbsqlroleassignmentproxy/clearscope.md) -- `method` -- Clears the Scope provisioning property.
    ```typescript
  clearScope(): void
  ```
