# AzureBicepResource

- Module: [Aspire.Hosting.Azure.CosmosDB](/reference/api/typescript/aspire.hosting.azure.cosmosdb.md)
- Version: `13.2.0`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire)

## Definition

```typescript
interface AzureBicepResource
  extends IAzureResource,
    IResource,
    IResourceWithParameters {
  getOutput(name: string): BicepOutputReference;
  withParameter(name: string): AzureBicepResource;
  withParameterFromConnectionString(
      name: string,
      value: IResourceWithConnectionString): AzureBicepResource;
  withParameterFromEndpoint(
      name: string,
      value: EndpointReference): AzureBicepResource;
  withParameterFromOutput(
      name: string,
      value: BicepOutputReference): AzureBicepResource;
  withParameterFromParameter(
      name: string,
      value: ParameterResource): AzureBicepResource;
  withParameterFromReferenceExpression(
      name: string,
      value: ReferenceExpression): AzureBicepResource;
  withParameterStringValue(
      name: string,
      value: string): AzureBicepResource;
  withParameterStringValues(
      name: string,
      value: string[]): AzureBicepResource;
}
```

## Methods

- [getOutput](/reference/api/typescript/aspire.hosting.azure.cosmosdb/azurebicepresource/getoutput.md) -- `method` -- Gets an output reference from an Azure Bicep template resource
    ```typescript
  getOutput(name: string): BicepOutputReference
  ```
- [withParameter](/reference/api/typescript/aspire.hosting.azure.cosmosdb/azurebicepresource/withparameter.md) -- `method` -- Adds a Bicep parameter without a value
    ```typescript
  withParameter(name: string): AzureBicepResource
  ```
- [withParameterFromConnectionString](/reference/api/typescript/aspire.hosting.azure.cosmosdb/azurebicepresource/withparameterfromconnectionstring.md) -- `method` -- Adds a Bicep parameter from a connection string resource builder
    ```typescript
  withParameterFromConnectionString(name: string, value: IResourceWithConnectionString): AzureBicepResource
  ```
- [withParameterFromEndpoint](/reference/api/typescript/aspire.hosting.azure.cosmosdb/azurebicepresource/withparameterfromendpoint.md) -- `method` -- Adds a Bicep parameter from an endpoint reference
    ```typescript
  withParameterFromEndpoint(name: string, value: EndpointReference): AzureBicepResource
  ```
- [withParameterFromOutput](/reference/api/typescript/aspire.hosting.azure.cosmosdb/azurebicepresource/withparameterfromoutput.md) -- `method` -- Adds a Bicep parameter from another Bicep output reference
    ```typescript
  withParameterFromOutput(name: string, value: BicepOutputReference): AzureBicepResource
  ```
- [withParameterFromParameter](/reference/api/typescript/aspire.hosting.azure.cosmosdb/azurebicepresource/withparameterfromparameter.md) -- `method` -- Adds a Bicep parameter from a parameter resource builder
    ```typescript
  withParameterFromParameter(name: string, value: ParameterResource): AzureBicepResource
  ```
- [withParameterFromReferenceExpression](/reference/api/typescript/aspire.hosting.azure.cosmosdb/azurebicepresource/withparameterfromreferenceexpression.md) -- `method` -- Adds a Bicep parameter from a reference expression
    ```typescript
  withParameterFromReferenceExpression(name: string, value: ReferenceExpression): AzureBicepResource
  ```
- [withParameterStringValue](/reference/api/typescript/aspire.hosting.azure.cosmosdb/azurebicepresource/withparameterstringvalue.md) -- `method` -- Adds a Bicep parameter with a string value
    ```typescript
  withParameterStringValue(name: string, value: string): AzureBicepResource
  ```
- [withParameterStringValues](/reference/api/typescript/aspire.hosting.azure.cosmosdb/azurebicepresource/withparameterstringvalues.md) -- `method` -- Adds a Bicep parameter with a string list value
    ```typescript
  withParameterStringValues(name: string, value: string[]): AzureBicepResource
  ```
