IotHubResourceEventHubConsumerGroupArgs

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. API Version: 2020-08-31.

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",
});
});
package main
import (
devices "github.com/pulumi/pulumi-azure-native-sdk/devices"
"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
})
}
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());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:devices:IotHubResourceEventHubConsumerGroup test /subscriptions/cmd-sub-1/resourceGroups/cmd-rg-1/providers/Microsoft.Devices/IotHubs/test-hub-2/eventHubEndpoints/events/ConsumerGroups/%24Default

Constructors

Link copied to clipboard
constructor(eventHubEndpointName: Output<String>? = null, name: Output<String>? = null, properties: Output<EventHubConsumerGroupNameArgs>? = null, resourceGroupName: Output<String>? = null, resourceName: Output<String>? = null)

Properties

Link copied to clipboard
val eventHubEndpointName: Output<String>? = null

The name of the Event Hub-compatible endpoint in the IoT hub.

Link copied to clipboard
val name: Output<String>? = null

The name of the consumer group to add.

Link copied to clipboard

The EventHub consumer group name.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group that contains the IoT hub.

Link copied to clipboard
val resourceName: Output<String>? = null

The name of the IoT hub.

Functions

Link copied to clipboard
open override fun toJava(): IotHubResourceEventHubConsumerGroupArgs