Package com.pulumi.azurenative.eventhub
Class ConsumerGroup
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.azurenative.eventhub.ConsumerGroup
-
public class ConsumerGroup extends com.pulumi.resources.CustomResource
Single item in List or Get Consumer group operation Azure REST API version: 2022-10-01-preview. Prior API version in Azure Native 1.x: 2017-04-01. Other available API versions: 2015-08-01, 2023-01-01-preview, 2024-01-01. ## Example Usage ### ConsumerGroupCreate ```java 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()); } } ``` ## Import An existing resource can be imported using its type token, name, and identifier, e.g. ```sh $ pulumi import azure-native:eventhub:ConsumerGroup sdk-ConsumerGroup-5563 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/consumergroups/{consumerGroupName} ```
-
-
Constructor Summary
Constructors Constructor Description ConsumerGroup(java.lang.String name)
ConsumerGroup(java.lang.String name, ConsumerGroupArgs args)
ConsumerGroup(java.lang.String name, ConsumerGroupArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.lang.String>
createdAt()
static ConsumerGroup
get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>
location()
com.pulumi.core.Output<java.lang.String>
name()
com.pulumi.core.Output<SystemDataResponse>
systemData()
com.pulumi.core.Output<java.lang.String>
type()
com.pulumi.core.Output<java.lang.String>
updatedAt()
com.pulumi.core.Output<java.util.Optional<java.lang.String>>
userMetadata()
-
-
-
Constructor Detail
-
ConsumerGroup
public ConsumerGroup(java.lang.String name)
- Parameters:
name
- The _unique_ name of the resulting resource.
-
ConsumerGroup
public ConsumerGroup(java.lang.String name, ConsumerGroupArgs args)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.
-
ConsumerGroup
public ConsumerGroup(java.lang.String name, ConsumerGroupArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.options
- A bag of options that control this resource's behavior.
-
-
Method Detail
-
createdAt
public com.pulumi.core.Output<java.lang.String> createdAt()
- Returns:
- Exact time the message was created.
-
location
public com.pulumi.core.Output<java.lang.String> location()
- Returns:
- The geo-location where the resource lives
-
name
public com.pulumi.core.Output<java.lang.String> name()
- Returns:
- The name of the resource
-
systemData
public com.pulumi.core.Output<SystemDataResponse> systemData()
- Returns:
- The system meta data relating to this resource.
-
type
public com.pulumi.core.Output<java.lang.String> type()
- Returns:
- The type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs"
-
updatedAt
public com.pulumi.core.Output<java.lang.String> updatedAt()
- Returns:
- The exact time the message was updated.
-
userMetadata
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> userMetadata()
- Returns:
- 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.
-
get
public static ConsumerGroup get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name
- The _unique_ name of the resulting resource.id
- The _unique_ provider ID of the resource to lookup.options
- Optional settings to control the behavior of the CustomResource.
-
-