# RabbitMQServerResource

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

## Definition

```typescript
interface RabbitMQServerResource
  extends IComputeResource,
    IManifestExpressionProvider,
    IResource,
    IResourceWithArgs,
    IResourceWithConnectionString,
    IResourceWithEndpoints,
    IResourceWithEnvironment,
    IResourceWithProbes,
    IResourceWithWaitSupport,
    IValueProvider,
    IValueWithReferences {
  readonly connectionStringExpression: ReferenceExpression;
  entrypoint: string;
  readonly host: EndpointReferenceExpression;
  readonly managementEndpoint: EndpointReference;
  readonly name: string;
  readonly passwordParameter: ParameterResource;
  readonly port: EndpointReferenceExpression;
  readonly primaryEndpoint: EndpointReference;
  shellExecution: boolean;
  readonly uriExpression: ReferenceExpression;
  readonly userNameParameter: ParameterResource;
  readonly userNameReference: ReferenceExpression;
  withDataBindMount(
      source: string,
      isReadOnly?: boolean): RabbitMQServerResource;
  withDataVolume(
      name?: string,
      isReadOnly?: boolean): RabbitMQServerResource;
  withManagementPlugin(): RabbitMQServerResource;
  withManagementPluginWithPort(port: number): RabbitMQServerResource;
}
```

## Properties

- `connectionStringExpression`: `ReferenceExpression` `get` -- Gets the ConnectionStringExpression property
- `entrypoint`: `string` `get - set` -- Gets the Entrypoint property
- `host`: `EndpointReferenceExpression` `get` -- Gets the Host property
- `managementEndpoint`: `EndpointReference` `get` -- Gets the ManagementEndpoint property
- `name`: `string` `get` -- Gets the Name property
- `passwordParameter`: `ParameterResource` `get` -- Gets the PasswordParameter property
- `port`: `EndpointReferenceExpression` `get` -- Gets the Port property
- `primaryEndpoint`: `EndpointReference` `get` -- Gets the PrimaryEndpoint property
- `shellExecution`: `boolean` `get - set` -- Gets the ShellExecution property
- `uriExpression`: `ReferenceExpression` `get` -- Gets the UriExpression property
- `userNameParameter`: `ParameterResource` `get` -- Gets the UserNameParameter property
- `userNameReference`: `ReferenceExpression` `get` -- Gets the UserNameReference property

## Methods

- [withDataBindMount](/reference/api/typescript/aspire.hosting.rabbitmq/rabbitmqserverresource/withdatabindmount.md) -- `method` -- Adds a data bind mount to the RabbitMQ container
    ```typescript
  withDataBindMount(source: string, isReadOnly?: boolean): RabbitMQServerResource
  ```
- [withDataVolume](/reference/api/typescript/aspire.hosting.rabbitmq/rabbitmqserverresource/withdatavolume.md) -- `method` -- Adds a data volume to the RabbitMQ container
    ```typescript
  withDataVolume(name?: string, isReadOnly?: boolean): RabbitMQServerResource
  ```
- [withManagementPlugin](/reference/api/typescript/aspire.hosting.rabbitmq/rabbitmqserverresource/withmanagementplugin.md) -- `method` -- Enables the RabbitMQ management plugin
    ```typescript
  withManagementPlugin(): RabbitMQServerResource
  ```
- [withManagementPluginWithPort](/reference/api/typescript/aspire.hosting.rabbitmq/rabbitmqserverresource/withmanagementpluginwithport.md) -- `method` -- Enables the RabbitMQ management plugin with a specific port
    ```typescript
  withManagementPluginWithPort(port: number): RabbitMQServerResource
  ```
