# AzureEventHubConsumerGroupResource Constructors

- 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: `Constructors`
- Members: `1`

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

## AzureEventHubConsumerGroupResource(string, string, AzureEventHubResource)

- Name: `Constructor(string, string, AzureEventHubResource)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.EventHubs/AzureEventHubConsumerGroupResource.cs#L22-L32)

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

```csharp
public class AzureEventHubConsumerGroupResource
{
    public AzureEventHubConsumerGroupResource(
        string name,
        string consumerGroupName,
        AzureEventHubResource parent)
    {
        // ...
    }
}
```

## Parameters

- `name` (`string`)
- `consumerGroupName` (`string`)
- `parent` ([AzureEventHubResource](/reference/api/csharp/aspire.hosting.azure.eventhubs/azureeventhubresource.md))

## Remarks

Use `AzureProvisioningResourceExtensions.ConfigureInfrastructure` to configure specific `Azure.Provisioning` properties.
