InstanceArgs

data class InstanceArgs(val instanceName: Output<String>? = null, val name: Output<String>? = null, val remark: Output<String>? = null, val tags: Output<Map<String, Any>>? = null) : ConvertibleToJava<InstanceArgs>

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

NOTE: The number of instances in the same region cannot exceed 8. At present, the resource does not support region "mq-internet-access" and "ap-southeast-5". NOTE: Available in 1.51.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 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 example = new Instance("example", InstanceArgs.builder()
.instanceName("tf-example-ons-instance")
.remark("tf-example-ons-instance-remark")
.build());
}
}

Import

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

$ pulumi import alicloud:rocketmq/instance:Instance instance MQ_INST_1234567890_Baso1234567

Constructors

Link copied to clipboard
fun InstanceArgs(instanceName: Output<String>? = null, name: Output<String>? = null, remark: Output<String>? = null, tags: Output<Map<String, Any>>? = null)

Functions

Link copied to clipboard
open override fun toJava(): InstanceArgs

Properties

Link copied to clipboard
val instanceName: Output<String>? = null

Two instances on a single account in the same region cannot have the same name. The length must be 3 to 64 characters. Chinese characters, English letters digits and hyphen are allowed.

Link copied to clipboard
val name: Output<String>? = null

Replaced by instance_name after version 1.97.0.

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

This attribute is a concise description of instance. The length cannot exceed 128.

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

A mapping of tags to assign to the resource.