IotHubResourceEventHubConsumerGroup

class IotHubResourceEventHubConsumerGroup : KotlinCustomResource

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

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<Map<String, String>>

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>