Consumer Group Args
data class ConsumerGroupArgs(val consumerGroupName: Output<String>? = null, val eventHubName: Output<String>? = null, val namespaceName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val userMetadata: Output<String>? = null) : ConvertibleToJava<ConsumerGroupArgs>
Single item in List or Get Consumer group operation Uses Azure REST API version 2022-10-01-preview. In version 1.x of the Azure Native provider, it used API version 2017-04-01. Other available API versions: 2023-01-01-preview, 2024-01-01, 2024-05-01-preview.
Example Usage
ConsumerGroupCreate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var consumerGroup = new AzureNative.EventHub.ConsumerGroup("consumerGroup", new()
{
ConsumerGroupName = "sdk-ConsumerGroup-5563",
EventHubName = "sdk-EventHub-6681",
NamespaceName = "sdk-Namespace-2661",
ResourceGroupName = "ArunMonocle",
UserMetadata = "New consumergroup",
});
});
Content copied to clipboard
package main
import (
eventhub "github.com/pulumi/pulumi-azure-native-sdk/eventhub/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := eventhub.NewConsumerGroup(ctx, "consumerGroup", &eventhub.ConsumerGroupArgs{
ConsumerGroupName: pulumi.String("sdk-ConsumerGroup-5563"),
EventHubName: pulumi.String("sdk-EventHub-6681"),
NamespaceName: pulumi.String("sdk-Namespace-2661"),
ResourceGroupName: pulumi.String("ArunMonocle"),
UserMetadata: pulumi.String("New consumergroup"),
})
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.eventhub.ConsumerGroup;
import com.pulumi.azurenative.eventhub.ConsumerGroupArgs;
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 consumerGroup = new ConsumerGroup("consumerGroup", ConsumerGroupArgs.builder()
.consumerGroupName("sdk-ConsumerGroup-5563")
.eventHubName("sdk-EventHub-6681")
.namespaceName("sdk-Namespace-2661")
.resourceGroupName("ArunMonocle")
.userMetadata("New consumergroup")
.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:eventhub:ConsumerGroup sdk-ConsumerGroup-5563 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/consumergroups/{consumerGroupName}
Content copied to clipboard
Constructors
Properties
Link copied to clipboard
The consumer group name
Link copied to clipboard
The Event Hub name
Link copied to clipboard
The Namespace name
Link copied to clipboard
Name of the resource group within the azure subscription.
Link copied to clipboard
User Metadata is a placeholder to store user-defined string data with maximum length 1024. e.g. it can be used to store descriptive data, such as list of teams and their contact information also user-defined configuration settings can be stored.