Iot Hub Resource Event Hub Consumer Group Args
    data class IotHubResourceEventHubConsumerGroupArgs(val eventHubEndpointName: Output<String>? = null, val name: Output<String>? = null, val properties: Output<EventHubConsumerGroupNameArgs>? = null, val resourceGroupName: Output<String>? = null, val resourceName: Output<String>? = null) : ConvertibleToJava<IotHubResourceEventHubConsumerGroupArgs> 
The properties of the EventHubConsumerGroupInfo object. Azure REST API version: 2022-04-30-preview. Prior API version in Azure Native 1.x: 2020-08-31. Other available API versions: 2017-07-01, 2021-03-03-preview, 2022-11-15-preview, 2023-06-30, 2023-06-30-preview.
Example Usage
IotHubResource_CreateEventHubConsumerGroup
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
    var iotHubResourceEventHubConsumerGroup = new AzureNative.Devices.IotHubResourceEventHubConsumerGroup("iotHubResourceEventHubConsumerGroup", new()
    {
        EventHubEndpointName = "events",
        Name = "test",
        Properties = new AzureNative.Devices.Inputs.EventHubConsumerGroupNameArgs
        {
            Name = "test",
        },
        ResourceGroupName = "myResourceGroup",
        ResourceName = "testHub",
    });
});Content copied to clipboard
package main
import (
	"github.com/pulumi/pulumi-azure-native-sdk/devices/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := devices.NewIotHubResourceEventHubConsumerGroup(ctx, "iotHubResourceEventHubConsumerGroup", &devices.IotHubResourceEventHubConsumerGroupArgs{
			EventHubEndpointName: pulumi.String("events"),
			Name:                 pulumi.String("test"),
			Properties: &devices.EventHubConsumerGroupNameArgs{
				Name: pulumi.String("test"),
			},
			ResourceGroupName: pulumi.String("myResourceGroup"),
			ResourceName:      pulumi.String("testHub"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.devices.IotHubResourceEventHubConsumerGroup;
import com.pulumi.azurenative.devices.IotHubResourceEventHubConsumerGroupArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var iotHubResourceEventHubConsumerGroup = new IotHubResourceEventHubConsumerGroup("iotHubResourceEventHubConsumerGroup", IotHubResourceEventHubConsumerGroupArgs.builder()
            .eventHubEndpointName("events")
            .name("test")
            .properties(Map.of("name", "test"))
            .resourceGroupName("myResourceGroup")
            .resourceName("testHub")
            .build());
    }
}Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:devices:IotHubResourceEventHubConsumerGroup test /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/eventHubEndpoints/{eventHubEndpointName}/ConsumerGroups/{name}Content copied to clipboard
Constructors
Link copied to clipboard
                fun IotHubResourceEventHubConsumerGroupArgs(eventHubEndpointName: Output<String>? = null, name: Output<String>? = null, properties: Output<EventHubConsumerGroupNameArgs>? = null, resourceGroupName: Output<String>? = null, resourceName: Output<String>? = null)