IotHubResourceEventHubConsumerGroup

class IotHubResourceEventHubConsumerGroup : KotlinCustomResource

The properties of the EventHubConsumerGroupInfo object. Uses Azure REST API version 2022-04-30-preview. In version 1.x of the Azure Native provider, it used API version 2020-08-31. Other available API versions: 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",
});
});
package main
import (
devices "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
})
}
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 com.pulumi.azurenative.devices.inputs.EventHubConsumerGroupNameArgs;
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(EventHubConsumerGroupNameArgs.builder()
.name("test")
.build())
.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/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/eventHubEndpoints/{eventHubEndpointName}/ConsumerGroups/{name}

Properties

Link copied to clipboard
val etag: Output<String>

The etag.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

The Event Hub-compatible consumer group name.

Link copied to clipboard
val properties: Output<Any>

The tags.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val type: Output<String>

the resource type.

Link copied to clipboard
val urn: Output<String>