Show / Hide Table of Contents

Class ConsumerGroup

Provides an ALIKAFKA consumer group resource.

NOTE: Available in 1.56.0+

NOTE: Only the following regions support create alikafka consumer group. [cn-hangzhou,cn-beijing,cn-shenzhen,cn-shanghai,cn-qingdao,cn-hongkong,cn-huhehaote,cn-zhangjiakou,ap-southeast-1,ap-south-1,ap-southeast-5]

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
public MyStack()
{
    var config = new Config();
    var consumerId = config.Get("consumerId") ?? "CID-alikafkaGroupDatasourceName";
    var defaultZones = Output.Create(AliCloud.GetZones.InvokeAsync(new AliCloud.GetZonesArgs
    {
        AvailableResourceCreation = "VSwitch",
    }));
    var defaultNetwork = new AliCloud.Vpc.Network("defaultNetwork", new AliCloud.Vpc.NetworkArgs
    {
        CidrBlock = "172.16.0.0/12",
    });
    var defaultSwitch = new AliCloud.Vpc.Switch("defaultSwitch", new AliCloud.Vpc.SwitchArgs
    {
        AvailabilityZone = defaultZones.Apply(defaultZones => defaultZones.Zones[0].Id),
        CidrBlock = "172.16.0.0/24",
        VpcId = defaultNetwork.Id,
    });
    var defaultInstance = new AliCloud.AliKafka.Instance("defaultInstance", new AliCloud.AliKafka.InstanceArgs
    {
        DeployType = "5",
        DiskSize = "500",
        DiskType = "1",
        IoMax = "20",
        TopicQuota = "50",
        VswitchId = defaultSwitch.Id,
    });
    var defaultConsumerGroup = new AliCloud.AliKafka.ConsumerGroup("defaultConsumerGroup", new AliCloud.AliKafka.ConsumerGroupArgs
    {
        ConsumerId = consumerId,
        InstanceId = defaultInstance.Id,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
ConsumerGroup
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.AliCloud.AliKafka
Assembly: Pulumi.AliCloud.dll
Syntax
public class ConsumerGroup : CustomResource

Constructors

View Source

ConsumerGroup(String, ConsumerGroupArgs, CustomResourceOptions)

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

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

The unique name of the resource

ConsumerGroupArgs 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

ConsumerId

ID of the consumer group. The length cannot exceed 64 characters.

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

InstanceId

ID of the ALIKAFKA Instance that owns the groups.

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

Tags

A mapping of tags to assign to the resource.

Declaration
public Output<ImmutableDictionary<string, object>> Tags { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>>

Methods

View Source

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

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

Declaration
public static ConsumerGroup Get(string name, Input<string> id, ConsumerGroupState 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.

ConsumerGroupState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

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