Instance

class Instance : KotlinCustomResource

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

Properties

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

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 instanceStatus: Output<Int>

The status of instance. 1 represents the platinum edition instance is in deployment. 2 represents the postpaid edition instance are overdue. 5 represents the postpaid or platinum edition instance is in service. 7 represents the platinum version instance is in upgrade and the service is available.

Link copied to clipboard
val instanceType: Output<Int>

The edition of instance. 1 represents the postPaid edition, and 2 represents the platinum edition.

Link copied to clipboard
val name: Output<String>

Replaced by instance_name after version 1.97.0.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val releaseTime: Output<String>

Platinum edition instance expiration time.

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

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

Link copied to clipboard
val status: Output<Int>

The status of instance. 1 represents the platinum edition instance is in deployment. 2 represents the postpaid edition instance are overdue. 5 represents the postpaid or platinum edition instance is in service. 7 represents the platinum version instance is in upgrade and the service is available.

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>