# AzureEventHubConsumerGroupResource Properties

- Package: [Aspire.Hosting.Azure.EventHubs](/reference/api/csharp/aspire.hosting.azure.eventhubs.md)
- Type: [AzureEventHubConsumerGroupResource](/reference/api/csharp/aspire.hosting.azure.eventhubs/azureeventhubconsumergroupresource.md)
- Kind: `Properties`
- Members: `3`

Represents an Azure Event Hub Consumer Group. Initializes a new instance of the [AzureEventHubConsumerGroupResource](/reference/api/csharp/aspire.hosting.azure.eventhubs/azureeventhubconsumergroupresource.md) class.

## ConnectionStringExpression

- Name: `ConnectionStringExpression`
- Modifiers: `get`
- Returns: `ReferenceExpression`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.EventHubs/AzureEventHubConsumerGroupResource.cs#L37)

Gets the connection string expression for the Azure Event Hub Consumer Group.

```csharp
public ReferenceExpression ConnectionStringExpression { get; }
```

## ConsumerGroupName

- Name: `ConsumerGroupName`
- Modifiers: `get; set`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.EventHubs/AzureEventHubConsumerGroupResource.cs)

The event hub consumer group name.

```csharp
public string ConsumerGroupName { get; set; }
```

## Parent

- Name: `Parent`
- Modifiers: `get`
- Returns: [AzureEventHubResource](/reference/api/csharp/aspire.hosting.azure.eventhubs/azureeventhubresource.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.EventHubs/AzureEventHubConsumerGroupResource.cs#L32)

Gets the parent Azure Event Hub resource.

```csharp
public AzureEventHubResource Parent { get; }
```
