Show / Hide Table of Contents

Class EventHubConsumerGroup

Manages a Event Hubs Consumer Group as a nested resource within an Event Hub.

Example Usage

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
public MyStack()
{
    var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
    {
        Location = "West US",
    });
    var exampleEventHubNamespace = new Azure.EventHub.EventHubNamespace("exampleEventHubNamespace", new Azure.EventHub.EventHubNamespaceArgs
    {
        Location = "West US",
        ResourceGroupName = exampleResourceGroup.Name,
        Sku = "Basic",
        Capacity = 2,
        Tags = 
        {
            { "environment", "Production" },
        },
    });
    var exampleEventHub = new Azure.EventHub.EventHub("exampleEventHub", new Azure.EventHub.EventHubArgs
    {
        NamespaceName = exampleEventHubNamespace.Name,
        ResourceGroupName = exampleResourceGroup.Name,
        PartitionCount = 2,
        MessageRetention = 2,
    });
    var exampleConsumerGroup = new Azure.EventHub.ConsumerGroup("exampleConsumerGroup", new Azure.EventHub.ConsumerGroupArgs
    {
        NamespaceName = exampleEventHubNamespace.Name,
        EventhubName = exampleEventHub.Name,
        ResourceGroupName = exampleResourceGroup.Name,
        UserMetadata = "some-meta-data",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
EventHubConsumerGroup
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Azure.EventHub
Assembly: Pulumi.Azure.dll
Syntax
[Obsolete("azure.eventhub.EventHubConsumerGroup has been deprecated in favor of azure.eventhub.ConsumerGroup")]
public class EventHubConsumerGroup : CustomResource

Constructors

View Source

EventHubConsumerGroup(String, EventHubConsumerGroupArgs, CustomResourceOptions)

Create a EventHubConsumerGroup resource with the given unique name, arguments, and options.

Declaration
public EventHubConsumerGroup(string name, EventHubConsumerGroupArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

EventHubConsumerGroupArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

EventhubName

Specifies the name of the EventHub. Changing this forces a new resource to be created.

Declaration
public Output<string> EventhubName { get; }
Property Value
Type Description
Output<System.String>
View Source

Name

Specifies the name of the EventHub Consumer Group resource. Changing this forces a new resource to be created.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

NamespaceName

Specifies the name of the grandparent EventHub Namespace. Changing this forces a new resource to be created.

Declaration
public Output<string> NamespaceName { get; }
Property Value
Type Description
Output<System.String>
View Source

ResourceGroupName

The name of the resource group in which the EventHub Consumer Group's grandparent Namespace exists. Changing this forces a new resource to be created.

Declaration
public Output<string> ResourceGroupName { get; }
Property Value
Type Description
Output<System.String>
View Source

UserMetadata

Specifies the user metadata.

Declaration
public Output<string> UserMetadata { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, EventHubConsumerGroupState, CustomResourceOptions)

Get an existing EventHubConsumerGroup resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static EventHubConsumerGroup Get(string name, Input<string> id, EventHubConsumerGroupState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

EventHubConsumerGroupState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
EventHubConsumerGroup
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.