1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. rocketmq
  5. ConsumerGroup
Alibaba Cloud v3.68.0 published on Monday, Dec 2, 2024 by Pulumi

alicloud.rocketmq.ConsumerGroup

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.68.0 published on Monday, Dec 2, 2024 by Pulumi

    Provides a RocketMQ Consumer Group resource.

    For information about RocketMQ Consumer Group and how to use it, see What is Consumer Group.

    NOTE: Available since v1.212.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "terraform-example";
    const default = alicloud.getZones({
        availableResourceCreation: "VSwitch",
    });
    const createVpc = new alicloud.vpc.Network("createVpc", {
        description: "example",
        cidrBlock: "172.16.0.0/12",
        vpcName: name,
    });
    const createVswitch = new alicloud.vpc.Switch("createVswitch", {
        description: "example",
        vpcId: createVpc.id,
        zoneId: _default.then(_default => _default.zones?.[0]?.id),
        cidrBlock: "172.16.0.0/24",
        vswitchName: name,
    });
    const createInstance = new alicloud.rocketmq.RocketMQInstance("createInstance", {
        autoRenewPeriod: 1,
        productInfo: {
            msgProcessSpec: "rmq.p2.4xlarge",
            sendReceiveRatio: 0.3,
            messageRetentionTime: 70,
        },
        networkInfo: {
            vpcInfo: {
                vpcId: createVpc.id,
                vswitchId: createVswitch.id,
            },
            internetInfo: {
                internetSpec: "enable",
                flowOutType: "payByBandwidth",
                flowOutBandwidth: 30,
            },
        },
        period: 1,
        subSeriesCode: "cluster_ha",
        remark: "example",
        instanceName: name,
        serviceCode: "rmq",
        seriesCode: "professional",
        paymentType: "PayAsYouGo",
        periodUnit: "Month",
    });
    const defaultConsumerGroup = new alicloud.rocketmq.ConsumerGroup("default", {
        consumerGroupId: name,
        instanceId: createInstance.id,
        consumeRetryPolicy: {
            retryPolicy: "DefaultRetryPolicy",
            maxRetryTimes: 10,
        },
        deliveryOrderType: "Concurrently",
        remark: "example",
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    default = alicloud.get_zones(available_resource_creation="VSwitch")
    create_vpc = alicloud.vpc.Network("createVpc",
        description="example",
        cidr_block="172.16.0.0/12",
        vpc_name=name)
    create_vswitch = alicloud.vpc.Switch("createVswitch",
        description="example",
        vpc_id=create_vpc.id,
        zone_id=default.zones[0].id,
        cidr_block="172.16.0.0/24",
        vswitch_name=name)
    create_instance = alicloud.rocketmq.RocketMQInstance("createInstance",
        auto_renew_period=1,
        product_info={
            "msg_process_spec": "rmq.p2.4xlarge",
            "send_receive_ratio": 0.3,
            "message_retention_time": 70,
        },
        network_info={
            "vpc_info": {
                "vpc_id": create_vpc.id,
                "vswitch_id": create_vswitch.id,
            },
            "internet_info": {
                "internet_spec": "enable",
                "flow_out_type": "payByBandwidth",
                "flow_out_bandwidth": 30,
            },
        },
        period=1,
        sub_series_code="cluster_ha",
        remark="example",
        instance_name=name,
        service_code="rmq",
        series_code="professional",
        payment_type="PayAsYouGo",
        period_unit="Month")
    default_consumer_group = alicloud.rocketmq.ConsumerGroup("default",
        consumer_group_id=name,
        instance_id=create_instance.id,
        consume_retry_policy={
            "retry_policy": "DefaultRetryPolicy",
            "max_retry_times": 10,
        },
        delivery_order_type="Concurrently",
        remark="example")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/rocketmq"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "terraform-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		_default, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
    			AvailableResourceCreation: pulumi.StringRef("VSwitch"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		createVpc, err := vpc.NewNetwork(ctx, "createVpc", &vpc.NetworkArgs{
    			Description: pulumi.String("example"),
    			CidrBlock:   pulumi.String("172.16.0.0/12"),
    			VpcName:     pulumi.String(name),
    		})
    		if err != nil {
    			return err
    		}
    		createVswitch, err := vpc.NewSwitch(ctx, "createVswitch", &vpc.SwitchArgs{
    			Description: pulumi.String("example"),
    			VpcId:       createVpc.ID(),
    			ZoneId:      pulumi.String(_default.Zones[0].Id),
    			CidrBlock:   pulumi.String("172.16.0.0/24"),
    			VswitchName: pulumi.String(name),
    		})
    		if err != nil {
    			return err
    		}
    		createInstance, err := rocketmq.NewRocketMQInstance(ctx, "createInstance", &rocketmq.RocketMQInstanceArgs{
    			AutoRenewPeriod: pulumi.Int(1),
    			ProductInfo: &rocketmq.RocketMQInstanceProductInfoArgs{
    				MsgProcessSpec:       pulumi.String("rmq.p2.4xlarge"),
    				SendReceiveRatio:     pulumi.Float64(0.3),
    				MessageRetentionTime: pulumi.Int(70),
    			},
    			NetworkInfo: &rocketmq.RocketMQInstanceNetworkInfoArgs{
    				VpcInfo: &rocketmq.RocketMQInstanceNetworkInfoVpcInfoArgs{
    					VpcId:     createVpc.ID(),
    					VswitchId: createVswitch.ID(),
    				},
    				InternetInfo: &rocketmq.RocketMQInstanceNetworkInfoInternetInfoArgs{
    					InternetSpec:     pulumi.String("enable"),
    					FlowOutType:      pulumi.String("payByBandwidth"),
    					FlowOutBandwidth: pulumi.Int(30),
    				},
    			},
    			Period:        pulumi.Int(1),
    			SubSeriesCode: pulumi.String("cluster_ha"),
    			Remark:        pulumi.String("example"),
    			InstanceName:  pulumi.String(name),
    			ServiceCode:   pulumi.String("rmq"),
    			SeriesCode:    pulumi.String("professional"),
    			PaymentType:   pulumi.String("PayAsYouGo"),
    			PeriodUnit:    pulumi.String("Month"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = rocketmq.NewConsumerGroup(ctx, "default", &rocketmq.ConsumerGroupArgs{
    			ConsumerGroupId: pulumi.String(name),
    			InstanceId:      createInstance.ID(),
    			ConsumeRetryPolicy: &rocketmq.ConsumerGroupConsumeRetryPolicyArgs{
    				RetryPolicy:   pulumi.String("DefaultRetryPolicy"),
    				MaxRetryTimes: pulumi.Int(10),
    			},
    			DeliveryOrderType: pulumi.String("Concurrently"),
    			Remark:            pulumi.String("example"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "terraform-example";
        var @default = AliCloud.GetZones.Invoke(new()
        {
            AvailableResourceCreation = "VSwitch",
        });
    
        var createVpc = new AliCloud.Vpc.Network("createVpc", new()
        {
            Description = "example",
            CidrBlock = "172.16.0.0/12",
            VpcName = name,
        });
    
        var createVswitch = new AliCloud.Vpc.Switch("createVswitch", new()
        {
            Description = "example",
            VpcId = createVpc.Id,
            ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)),
            CidrBlock = "172.16.0.0/24",
            VswitchName = name,
        });
    
        var createInstance = new AliCloud.RocketMQ.RocketMQInstance("createInstance", new()
        {
            AutoRenewPeriod = 1,
            ProductInfo = new AliCloud.RocketMQ.Inputs.RocketMQInstanceProductInfoArgs
            {
                MsgProcessSpec = "rmq.p2.4xlarge",
                SendReceiveRatio = 0.3,
                MessageRetentionTime = 70,
            },
            NetworkInfo = new AliCloud.RocketMQ.Inputs.RocketMQInstanceNetworkInfoArgs
            {
                VpcInfo = new AliCloud.RocketMQ.Inputs.RocketMQInstanceNetworkInfoVpcInfoArgs
                {
                    VpcId = createVpc.Id,
                    VswitchId = createVswitch.Id,
                },
                InternetInfo = new AliCloud.RocketMQ.Inputs.RocketMQInstanceNetworkInfoInternetInfoArgs
                {
                    InternetSpec = "enable",
                    FlowOutType = "payByBandwidth",
                    FlowOutBandwidth = 30,
                },
            },
            Period = 1,
            SubSeriesCode = "cluster_ha",
            Remark = "example",
            InstanceName = name,
            ServiceCode = "rmq",
            SeriesCode = "professional",
            PaymentType = "PayAsYouGo",
            PeriodUnit = "Month",
        });
    
        var defaultConsumerGroup = new AliCloud.RocketMQ.ConsumerGroup("default", new()
        {
            ConsumerGroupId = name,
            InstanceId = createInstance.Id,
            ConsumeRetryPolicy = new AliCloud.RocketMQ.Inputs.ConsumerGroupConsumeRetryPolicyArgs
            {
                RetryPolicy = "DefaultRetryPolicy",
                MaxRetryTimes = 10,
            },
            DeliveryOrderType = "Concurrently",
            Remark = "example",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.AlicloudFunctions;
    import com.pulumi.alicloud.inputs.GetZonesArgs;
    import com.pulumi.alicloud.vpc.Network;
    import com.pulumi.alicloud.vpc.NetworkArgs;
    import com.pulumi.alicloud.vpc.Switch;
    import com.pulumi.alicloud.vpc.SwitchArgs;
    import com.pulumi.alicloud.rocketmq.RocketMQInstance;
    import com.pulumi.alicloud.rocketmq.RocketMQInstanceArgs;
    import com.pulumi.alicloud.rocketmq.inputs.RocketMQInstanceProductInfoArgs;
    import com.pulumi.alicloud.rocketmq.inputs.RocketMQInstanceNetworkInfoArgs;
    import com.pulumi.alicloud.rocketmq.inputs.RocketMQInstanceNetworkInfoVpcInfoArgs;
    import com.pulumi.alicloud.rocketmq.inputs.RocketMQInstanceNetworkInfoInternetInfoArgs;
    import com.pulumi.alicloud.rocketmq.ConsumerGroup;
    import com.pulumi.alicloud.rocketmq.ConsumerGroupArgs;
    import com.pulumi.alicloud.rocketmq.inputs.ConsumerGroupConsumeRetryPolicyArgs;
    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) {
            final var config = ctx.config();
            final var name = config.get("name").orElse("terraform-example");
            final var default = AlicloudFunctions.getZones(GetZonesArgs.builder()
                .availableResourceCreation("VSwitch")
                .build());
    
            var createVpc = new Network("createVpc", NetworkArgs.builder()
                .description("example")
                .cidrBlock("172.16.0.0/12")
                .vpcName(name)
                .build());
    
            var createVswitch = new Switch("createVswitch", SwitchArgs.builder()
                .description("example")
                .vpcId(createVpc.id())
                .zoneId(default_.zones()[0].id())
                .cidrBlock("172.16.0.0/24")
                .vswitchName(name)
                .build());
    
            var createInstance = new RocketMQInstance("createInstance", RocketMQInstanceArgs.builder()
                .autoRenewPeriod("1")
                .productInfo(RocketMQInstanceProductInfoArgs.builder()
                    .msgProcessSpec("rmq.p2.4xlarge")
                    .sendReceiveRatio(0.3)
                    .messageRetentionTime("70")
                    .build())
                .networkInfo(RocketMQInstanceNetworkInfoArgs.builder()
                    .vpcInfo(RocketMQInstanceNetworkInfoVpcInfoArgs.builder()
                        .vpcId(createVpc.id())
                        .vswitchId(createVswitch.id())
                        .build())
                    .internetInfo(RocketMQInstanceNetworkInfoInternetInfoArgs.builder()
                        .internetSpec("enable")
                        .flowOutType("payByBandwidth")
                        .flowOutBandwidth("30")
                        .build())
                    .build())
                .period("1")
                .subSeriesCode("cluster_ha")
                .remark("example")
                .instanceName(name)
                .serviceCode("rmq")
                .seriesCode("professional")
                .paymentType("PayAsYouGo")
                .periodUnit("Month")
                .build());
    
            var defaultConsumerGroup = new ConsumerGroup("defaultConsumerGroup", ConsumerGroupArgs.builder()
                .consumerGroupId(name)
                .instanceId(createInstance.id())
                .consumeRetryPolicy(ConsumerGroupConsumeRetryPolicyArgs.builder()
                    .retryPolicy("DefaultRetryPolicy")
                    .maxRetryTimes("10")
                    .build())
                .deliveryOrderType("Concurrently")
                .remark("example")
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      createVpc:
        type: alicloud:vpc:Network
        properties:
          description: example
          cidrBlock: 172.16.0.0/12
          vpcName: ${name}
      createVswitch:
        type: alicloud:vpc:Switch
        properties:
          description: example
          vpcId: ${createVpc.id}
          zoneId: ${default.zones[0].id}
          cidrBlock: 172.16.0.0/24
          vswitchName: ${name}
      createInstance:
        type: alicloud:rocketmq:RocketMQInstance
        properties:
          autoRenewPeriod: '1'
          productInfo:
            msgProcessSpec: rmq.p2.4xlarge
            sendReceiveRatio: 0.3
            messageRetentionTime: '70'
          networkInfo:
            vpcInfo:
              vpcId: ${createVpc.id}
              vswitchId: ${createVswitch.id}
            internetInfo:
              internetSpec: enable
              flowOutType: payByBandwidth
              flowOutBandwidth: '30'
          period: '1'
          subSeriesCode: cluster_ha
          remark: example
          instanceName: ${name}
          serviceCode: rmq
          seriesCode: professional
          paymentType: PayAsYouGo
          periodUnit: Month
      defaultConsumerGroup:
        type: alicloud:rocketmq:ConsumerGroup
        name: default
        properties:
          consumerGroupId: ${name}
          instanceId: ${createInstance.id}
          consumeRetryPolicy:
            retryPolicy: DefaultRetryPolicy
            maxRetryTimes: '10'
          deliveryOrderType: Concurrently
          remark: example
    variables:
      default:
        fn::invoke:
          Function: alicloud:getZones
          Arguments:
            availableResourceCreation: VSwitch
    

    Create ConsumerGroup Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ConsumerGroup(name: string, args: ConsumerGroupArgs, opts?: CustomResourceOptions);
    @overload
    def ConsumerGroup(resource_name: str,
                      args: ConsumerGroupArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def ConsumerGroup(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      consume_retry_policy: Optional[ConsumerGroupConsumeRetryPolicyArgs] = None,
                      consumer_group_id: Optional[str] = None,
                      instance_id: Optional[str] = None,
                      delivery_order_type: Optional[str] = None,
                      remark: Optional[str] = None)
    func NewConsumerGroup(ctx *Context, name string, args ConsumerGroupArgs, opts ...ResourceOption) (*ConsumerGroup, error)
    public ConsumerGroup(string name, ConsumerGroupArgs args, CustomResourceOptions? opts = null)
    public ConsumerGroup(String name, ConsumerGroupArgs args)
    public ConsumerGroup(String name, ConsumerGroupArgs args, CustomResourceOptions options)
    
    type: alicloud:rocketmq:ConsumerGroup
    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 ConsumerGroupArgs
    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 ConsumerGroupArgs
    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 ConsumerGroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ConsumerGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ConsumerGroupArgs
    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 alicloudConsumerGroupResource = new AliCloud.RocketMQ.ConsumerGroup("alicloudConsumerGroupResource", new()
    {
        ConsumeRetryPolicy = new AliCloud.RocketMQ.Inputs.ConsumerGroupConsumeRetryPolicyArgs
        {
            MaxRetryTimes = 0,
            RetryPolicy = "string",
        },
        ConsumerGroupId = "string",
        InstanceId = "string",
        DeliveryOrderType = "string",
        Remark = "string",
    });
    
    example, err := rocketmq.NewConsumerGroup(ctx, "alicloudConsumerGroupResource", &rocketmq.ConsumerGroupArgs{
    	ConsumeRetryPolicy: &rocketmq.ConsumerGroupConsumeRetryPolicyArgs{
    		MaxRetryTimes: pulumi.Int(0),
    		RetryPolicy:   pulumi.String("string"),
    	},
    	ConsumerGroupId:   pulumi.String("string"),
    	InstanceId:        pulumi.String("string"),
    	DeliveryOrderType: pulumi.String("string"),
    	Remark:            pulumi.String("string"),
    })
    
    var alicloudConsumerGroupResource = new ConsumerGroup("alicloudConsumerGroupResource", ConsumerGroupArgs.builder()
        .consumeRetryPolicy(ConsumerGroupConsumeRetryPolicyArgs.builder()
            .maxRetryTimes(0)
            .retryPolicy("string")
            .build())
        .consumerGroupId("string")
        .instanceId("string")
        .deliveryOrderType("string")
        .remark("string")
        .build());
    
    alicloud_consumer_group_resource = alicloud.rocketmq.ConsumerGroup("alicloudConsumerGroupResource",
        consume_retry_policy={
            "max_retry_times": 0,
            "retry_policy": "string",
        },
        consumer_group_id="string",
        instance_id="string",
        delivery_order_type="string",
        remark="string")
    
    const alicloudConsumerGroupResource = new alicloud.rocketmq.ConsumerGroup("alicloudConsumerGroupResource", {
        consumeRetryPolicy: {
            maxRetryTimes: 0,
            retryPolicy: "string",
        },
        consumerGroupId: "string",
        instanceId: "string",
        deliveryOrderType: "string",
        remark: "string",
    });
    
    type: alicloud:rocketmq:ConsumerGroup
    properties:
        consumeRetryPolicy:
            maxRetryTimes: 0
            retryPolicy: string
        consumerGroupId: string
        deliveryOrderType: string
        instanceId: string
        remark: string
    

    ConsumerGroup Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ConsumerGroup resource accepts the following input properties:

    ConsumeRetryPolicy Pulumi.AliCloud.RocketMQ.Inputs.ConsumerGroupConsumeRetryPolicy
    Consumption retry strategy. See consume_retry_policy below.
    ConsumerGroupId string
    The first ID of the resource.
    InstanceId string
    Instance ID.
    DeliveryOrderType string
    Delivery order.
    Remark string
    Custom remarks.
    ConsumeRetryPolicy ConsumerGroupConsumeRetryPolicyArgs
    Consumption retry strategy. See consume_retry_policy below.
    ConsumerGroupId string
    The first ID of the resource.
    InstanceId string
    Instance ID.
    DeliveryOrderType string
    Delivery order.
    Remark string
    Custom remarks.
    consumeRetryPolicy ConsumerGroupConsumeRetryPolicy
    Consumption retry strategy. See consume_retry_policy below.
    consumerGroupId String
    The first ID of the resource.
    instanceId String
    Instance ID.
    deliveryOrderType String
    Delivery order.
    remark String
    Custom remarks.
    consumeRetryPolicy ConsumerGroupConsumeRetryPolicy
    Consumption retry strategy. See consume_retry_policy below.
    consumerGroupId string
    The first ID of the resource.
    instanceId string
    Instance ID.
    deliveryOrderType string
    Delivery order.
    remark string
    Custom remarks.
    consume_retry_policy ConsumerGroupConsumeRetryPolicyArgs
    Consumption retry strategy. See consume_retry_policy below.
    consumer_group_id str
    The first ID of the resource.
    instance_id str
    Instance ID.
    delivery_order_type str
    Delivery order.
    remark str
    Custom remarks.
    consumeRetryPolicy Property Map
    Consumption retry strategy. See consume_retry_policy below.
    consumerGroupId String
    The first ID of the resource.
    instanceId String
    Instance ID.
    deliveryOrderType String
    Delivery order.
    remark String
    Custom remarks.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ConsumerGroup resource produces the following output properties:

    CreateTime string
    The creation time of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the resource.
    CreateTime string
    The creation time of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the resource.
    createTime String
    The creation time of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the resource.
    createTime string
    The creation time of the resource.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    The status of the resource.
    create_time str
    The creation time of the resource.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    The status of the resource.
    createTime String
    The creation time of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the resource.

    Look up Existing ConsumerGroup Resource

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

    public static get(name: string, id: Input<ID>, state?: ConsumerGroupState, opts?: CustomResourceOptions): ConsumerGroup
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            consume_retry_policy: Optional[ConsumerGroupConsumeRetryPolicyArgs] = None,
            consumer_group_id: Optional[str] = None,
            create_time: Optional[str] = None,
            delivery_order_type: Optional[str] = None,
            instance_id: Optional[str] = None,
            remark: Optional[str] = None,
            status: Optional[str] = None) -> ConsumerGroup
    func GetConsumerGroup(ctx *Context, name string, id IDInput, state *ConsumerGroupState, opts ...ResourceOption) (*ConsumerGroup, error)
    public static ConsumerGroup Get(string name, Input<string> id, ConsumerGroupState? state, CustomResourceOptions? opts = null)
    public static ConsumerGroup get(String name, Output<String> id, ConsumerGroupState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ConsumeRetryPolicy Pulumi.AliCloud.RocketMQ.Inputs.ConsumerGroupConsumeRetryPolicy
    Consumption retry strategy. See consume_retry_policy below.
    ConsumerGroupId string
    The first ID of the resource.
    CreateTime string
    The creation time of the resource.
    DeliveryOrderType string
    Delivery order.
    InstanceId string
    Instance ID.
    Remark string
    Custom remarks.
    Status string
    The status of the resource.
    ConsumeRetryPolicy ConsumerGroupConsumeRetryPolicyArgs
    Consumption retry strategy. See consume_retry_policy below.
    ConsumerGroupId string
    The first ID of the resource.
    CreateTime string
    The creation time of the resource.
    DeliveryOrderType string
    Delivery order.
    InstanceId string
    Instance ID.
    Remark string
    Custom remarks.
    Status string
    The status of the resource.
    consumeRetryPolicy ConsumerGroupConsumeRetryPolicy
    Consumption retry strategy. See consume_retry_policy below.
    consumerGroupId String
    The first ID of the resource.
    createTime String
    The creation time of the resource.
    deliveryOrderType String
    Delivery order.
    instanceId String
    Instance ID.
    remark String
    Custom remarks.
    status String
    The status of the resource.
    consumeRetryPolicy ConsumerGroupConsumeRetryPolicy
    Consumption retry strategy. See consume_retry_policy below.
    consumerGroupId string
    The first ID of the resource.
    createTime string
    The creation time of the resource.
    deliveryOrderType string
    Delivery order.
    instanceId string
    Instance ID.
    remark string
    Custom remarks.
    status string
    The status of the resource.
    consume_retry_policy ConsumerGroupConsumeRetryPolicyArgs
    Consumption retry strategy. See consume_retry_policy below.
    consumer_group_id str
    The first ID of the resource.
    create_time str
    The creation time of the resource.
    delivery_order_type str
    Delivery order.
    instance_id str
    Instance ID.
    remark str
    Custom remarks.
    status str
    The status of the resource.
    consumeRetryPolicy Property Map
    Consumption retry strategy. See consume_retry_policy below.
    consumerGroupId String
    The first ID of the resource.
    createTime String
    The creation time of the resource.
    deliveryOrderType String
    Delivery order.
    instanceId String
    Instance ID.
    remark String
    Custom remarks.
    status String
    The status of the resource.

    Supporting Types

    ConsumerGroupConsumeRetryPolicy, ConsumerGroupConsumeRetryPolicyArgs

    MaxRetryTimes int
    Maximum number of retries.
    RetryPolicy string
    Consume retry policy.
    MaxRetryTimes int
    Maximum number of retries.
    RetryPolicy string
    Consume retry policy.
    maxRetryTimes Integer
    Maximum number of retries.
    retryPolicy String
    Consume retry policy.
    maxRetryTimes number
    Maximum number of retries.
    retryPolicy string
    Consume retry policy.
    max_retry_times int
    Maximum number of retries.
    retry_policy str
    Consume retry policy.
    maxRetryTimes Number
    Maximum number of retries.
    retryPolicy String
    Consume retry policy.

    Import

    RocketMQ Consumer Group can be imported using the id, e.g.

    $ pulumi import alicloud:rocketmq/consumerGroup:ConsumerGroup example <instance_id>:<consumer_group_id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.68.0 published on Monday, Dec 2, 2024 by Pulumi