# RedPandaServerResource Constructors

- Package: [CommunityToolkit.Aspire.Hosting.RedPanda](/reference/api/csharp/communitytoolkit.aspire.hosting.redpanda.md)
- Type: [RedPandaServerResource](/reference/api/csharp/communitytoolkit.aspire.hosting.redpanda/redpandaserverresource.md)
- Kind: `Constructors`
- Members: `1`

A resource that represents a Redpanda streaming platform container.

<a id="constructor"></a>
<a id="constructor-string"></a>

## RedPandaServerResource(string)

- Name: `Constructor(string)`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/4ff8268fbd97ddd23cb73dc8eff9cc92718156d1/src/CommunityToolkit.Aspire.Hosting.RedPanda/RedPandaServerResource.cs#L12)

A resource that represents a Redpanda streaming platform container.

```csharp
public class RedPandaServerResource
{
    public RedPandaServerResource(
        string name)
    {
        // ...
    }
}
```

## Parameters

- `name` (`string`)
  The name of the resource.

## Remarks

Redpanda is a Kafka API compatible streaming platform. The [RedPandaServerResource.ConnectionStringExpression](/reference/api/csharp/communitytoolkit.aspire.hosting.redpanda/redpandaserverresource/properties.md#connectionstringexpression) returns the bootstrap broker address ( `host:port`) that Kafka clients use to connect.
