Group

class Group : KotlinCustomResource

Provides an ONS group resource. For more information about how to use it, see RocketMQ Group Management API.

NOTE: Available in 1.53.0+

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.rocketmq.Instance;
import com.pulumi.alicloud.rocketmq.InstanceArgs;
import com.pulumi.alicloud.rocketmq.Group;
import com.pulumi.alicloud.rocketmq.GroupArgs;
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("onsInstanceName");
final var groupName = config.get("groupName").orElse("GID-onsGroupDatasourceName");
var defaultInstance = new Instance("defaultInstance", InstanceArgs.builder()
.remark("default_ons_instance_remark")
.build());
var defaultGroup = new Group("defaultGroup", GroupArgs.builder()
.groupName(groupName)
.instanceId(defaultInstance.id())
.remark("dafault_ons_group_remark")
.build());
}
}

Import

ONS GROUP can be imported using the id, e.g.

$ pulumi import alicloud:rocketmq/group:Group group MQ_INST_1234567890_Baso1234567:GID-onsGroupDemo

Properties

Link copied to clipboard
val groupId: Output<String>

Replaced by group_name after version 1.98.0.

Link copied to clipboard
val groupName: Output<String>

Name of the group. Two groups on a single instance cannot have the same name. A group_name starts with "GID_" or "GID-", and contains letters, numbers, hyphens (-), and underscores (_).

Link copied to clipboard
val groupType: Output<String>?

Specify the protocol applicable to the created Group ID. Valid values: tcp, http. Default to tcp.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val instanceId: Output<String>

ID of the ONS Instance that owns the groups.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val readEnable: Output<Boolean>?

This attribute is used to set the message reading enabled or disabled. It can only be set after the group is used by the client.

Link copied to clipboard
val remark: Output<String>?

This attribute is a concise description of group. The length cannot exceed 256.

Link copied to clipboard
val tags: Output<Map<String, Any>>?

A mapping of tags to assign to the resource.

Link copied to clipboard
val urn: Output<String>