Show / Hide Table of Contents

Class GetConsumerGroups

Inheritance
System.Object
GetConsumerGroups
Inherited Members
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.AliCloud.ActionTrail
Assembly: Pulumi.AliCloud.dll
Syntax
public static class GetConsumerGroups

Methods

View Source

InvokeAsync(GetConsumerGroupsArgs, InvokeOptions)

This data source provides a list of ALIKAFKA Consumer Groups in an Alibaba Cloud account according to the specified filters.

NOTE: Available in 1.56.0+

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
public MyStack()
{
    var consumerGroupsDs = Output.Create(AliCloud.ActionTrail.GetConsumerGroups.InvokeAsync(new AliCloud.ActionTrail.GetConsumerGroupsArgs
    {
        ConsumerIdRegex = "CID-alikafkaGroupDatasourceName",
        InstanceId = "xxx",
        OutputFile = "consumerGroups.txt",
    }));
    this.FirstGroupName = consumerGroupsDs.Apply(consumerGroupsDs => consumerGroupsDs.ConsumerIds[0]);
}

[Output("firstGroupName")]
public Output<string> FirstGroupName { get; set; }
}

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetConsumerGroupsResult> InvokeAsync(GetConsumerGroupsArgs args, InvokeOptions options = null)
Parameters
Type Name Description
GetConsumerGroupsArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetConsumerGroupsResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.