azure-native.devices.IotHubResourceEventHubConsumerGroup
Explore with Pulumi AI
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 pulumi
import pulumi_azure_native as azure_native
iot_hub_resource_event_hub_consumer_group = azure_native.devices.IotHubResourceEventHubConsumerGroup("iotHubResourceEventHubConsumerGroup",
event_hub_endpoint_name="events",
name="test",
properties=azure_native.devices.EventHubConsumerGroupNameArgs(
name="test",
),
resource_group_name="myResourceGroup",
resource_name_="testHub")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const iotHubResourceEventHubConsumerGroup = new azure_native.devices.IotHubResourceEventHubConsumerGroup("iotHubResourceEventHubConsumerGroup", {
eventHubEndpointName: "events",
name: "test",
properties: {
name: "test",
},
resourceGroupName: "myResourceGroup",
resourceName: "testHub",
});
resources:
iotHubResourceEventHubConsumerGroup:
type: azure-native:devices:IotHubResourceEventHubConsumerGroup
properties:
eventHubEndpointName: events
name: test
properties:
name: test
resourceGroupName: myResourceGroup
resourceName: testHub
Create IotHubResourceEventHubConsumerGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IotHubResourceEventHubConsumerGroup(name: string, args: IotHubResourceEventHubConsumerGroupArgs, opts?: CustomResourceOptions);
@overload
def IotHubResourceEventHubConsumerGroup(resource_name: str,
args: IotHubResourceEventHubConsumerGroupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def IotHubResourceEventHubConsumerGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
event_hub_endpoint_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
resource_name_: Optional[str] = None,
name: Optional[str] = None,
properties: Optional[EventHubConsumerGroupNameArgs] = None)
func NewIotHubResourceEventHubConsumerGroup(ctx *Context, name string, args IotHubResourceEventHubConsumerGroupArgs, opts ...ResourceOption) (*IotHubResourceEventHubConsumerGroup, error)
public IotHubResourceEventHubConsumerGroup(string name, IotHubResourceEventHubConsumerGroupArgs args, CustomResourceOptions? opts = null)
public IotHubResourceEventHubConsumerGroup(String name, IotHubResourceEventHubConsumerGroupArgs args)
public IotHubResourceEventHubConsumerGroup(String name, IotHubResourceEventHubConsumerGroupArgs args, CustomResourceOptions options)
type: azure-native:devices:IotHubResourceEventHubConsumerGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args IotHubResourceEventHubConsumerGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args IotHubResourceEventHubConsumerGroupArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args IotHubResourceEventHubConsumerGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IotHubResourceEventHubConsumerGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IotHubResourceEventHubConsumerGroupArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var iotHubResourceEventHubConsumerGroupResource = new AzureNative.Devices.IotHubResourceEventHubConsumerGroup("iotHubResourceEventHubConsumerGroupResource", new()
{
EventHubEndpointName = "string",
ResourceGroupName = "string",
ResourceName = "string",
Name = "string",
Properties =
{
{ "name", "string" },
},
});
example, err := devices.NewIotHubResourceEventHubConsumerGroup(ctx, "iotHubResourceEventHubConsumerGroupResource", &devices.IotHubResourceEventHubConsumerGroupArgs{
EventHubEndpointName: "string",
ResourceGroupName: "string",
ResourceName: "string",
Name: "string",
Properties: map[string]interface{}{
"name": "string",
},
})
var iotHubResourceEventHubConsumerGroupResource = new IotHubResourceEventHubConsumerGroup("iotHubResourceEventHubConsumerGroupResource", IotHubResourceEventHubConsumerGroupArgs.builder()
.eventHubEndpointName("string")
.resourceGroupName("string")
.resourceName("string")
.name("string")
.properties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
iot_hub_resource_event_hub_consumer_group_resource = azure_native.devices.IotHubResourceEventHubConsumerGroup("iotHubResourceEventHubConsumerGroupResource",
event_hub_endpoint_name=string,
resource_group_name=string,
resource_name_=string,
name=string,
properties={
name: string,
})
const iotHubResourceEventHubConsumerGroupResource = new azure_native.devices.IotHubResourceEventHubConsumerGroup("iotHubResourceEventHubConsumerGroupResource", {
eventHubEndpointName: "string",
resourceGroupName: "string",
resourceName: "string",
name: "string",
properties: {
name: "string",
},
});
type: azure-native:devices:IotHubResourceEventHubConsumerGroup
properties:
eventHubEndpointName: string
name: string
properties:
name: string
resourceGroupName: string
resourceName: string
IotHubResourceEventHubConsumerGroup Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The IotHubResourceEventHubConsumerGroup resource accepts the following input properties:
- Event
Hub stringEndpoint Name - The name of the Event Hub-compatible endpoint in the IoT hub.
- Resource
Group stringName - The name of the resource group that contains the IoT hub.
- Resource
Name string - The name of the IoT hub.
- Name string
- The name of the consumer group to add.
- Properties
Pulumi.
Azure Native. Devices. Inputs. Event Hub Consumer Group Name - The EventHub consumer group name.
- Event
Hub stringEndpoint Name - The name of the Event Hub-compatible endpoint in the IoT hub.
- Resource
Group stringName - The name of the resource group that contains the IoT hub.
- Resource
Name string - The name of the IoT hub.
- Name string
- The name of the consumer group to add.
- Properties
Event
Hub Consumer Group Name Args - The EventHub consumer group name.
- event
Hub StringEndpoint Name - The name of the Event Hub-compatible endpoint in the IoT hub.
- resource
Group StringName - The name of the resource group that contains the IoT hub.
- resource
Name String - The name of the IoT hub.
- name String
- The name of the consumer group to add.
- properties
Event
Hub Consumer Group Name - The EventHub consumer group name.
- event
Hub stringEndpoint Name - The name of the Event Hub-compatible endpoint in the IoT hub.
- resource
Group stringName - The name of the resource group that contains the IoT hub.
- resource
Name string - The name of the IoT hub.
- name string
- The name of the consumer group to add.
- properties
Event
Hub Consumer Group Name - The EventHub consumer group name.
- event_
hub_ strendpoint_ name - The name of the Event Hub-compatible endpoint in the IoT hub.
- resource_
group_ strname - The name of the resource group that contains the IoT hub.
- resource_
name str - The name of the IoT hub.
- name str
- The name of the consumer group to add.
- properties
Event
Hub Consumer Group Name Args - The EventHub consumer group name.
- event
Hub StringEndpoint Name - The name of the Event Hub-compatible endpoint in the IoT hub.
- resource
Group StringName - The name of the resource group that contains the IoT hub.
- resource
Name String - The name of the IoT hub.
- name String
- The name of the consumer group to add.
- properties Property Map
- The EventHub consumer group name.
Outputs
All input properties are implicitly available as output properties. Additionally, the IotHubResourceEventHubConsumerGroup resource produces the following output properties:
Supporting Types
EventHubConsumerGroupName, EventHubConsumerGroupNameArgs
- Name string
- EventHub consumer group name
- Name string
- EventHub consumer group name
- name String
- EventHub consumer group name
- name string
- EventHub consumer group name
- name str
- EventHub consumer group name
- name String
- EventHub consumer group name
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
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0