Instance Args
data class InstanceArgs(val clientNodeAmount: Output<Int>? = null, val clientNodeSpec: Output<String>? = null, val dataNodeAmount: Output<Int>? = null, val dataNodeDiskEncrypted: Output<Boolean>? = null, val dataNodeDiskSize: Output<Int>? = null, val dataNodeDiskType: Output<String>? = null, val dataNodeSpec: Output<String>? = null, val description: Output<String>? = null, val enableKibanaPrivateNetwork: Output<Boolean>? = null, val enableKibanaPublicNetwork: Output<Boolean>? = null, val enablePublic: Output<Boolean>? = null, val instanceChargeType: Output<String>? = null, val kibanaNodeSpec: Output<String>? = null, val kibanaPrivateWhitelists: Output<List<String>>? = null, val kibanaWhitelists: Output<List<String>>? = null, val kmsEncryptedPassword: Output<String>? = null, val kmsEncryptionContext: Output<Map<String, Any>>? = null, val masterNodeSpec: Output<String>? = null, val password: Output<String>? = null, val period: Output<Int>? = null, val privateWhitelists: Output<List<String>>? = null, val protocol: Output<String>? = null, val publicWhitelists: Output<List<String>>? = null, val resourceGroupId: Output<String>? = null, val settingConfig: Output<Map<String, Any>>? = null, val tags: Output<Map<String, Any>>? = null, val version: Output<String>? = null, val vswitchId: Output<String>? = null, val zoneCount: Output<Int>? = null) : ConvertibleToJava<InstanceArgs>
Provides a Elasticsearch instance resource. It contains data nodes, dedicated master node(optional) and etc. It can be associated with private IP whitelists and kibana IP whitelist.
NOTE: Only one operation is supported in a request. So if
data_node_spec
anddata_node_disk_size
are both changed, system will respond error. NOTE: At present,version
can not be modified once instance has been created.
Example Usage
Basic Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.elasticsearch.Instance;
import com.pulumi.alicloud.elasticsearch.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 instance = new Instance("instance", InstanceArgs.builder()
.clientNodeAmount("2")
.clientNodeSpec("elasticsearch.sn2ne.large")
.dataNodeAmount("2")
.dataNodeDiskSize("20")
.dataNodeDiskType("cloud_ssd")
.dataNodeSpec("elasticsearch.sn2ne.large")
.description("description")
.instanceChargeType("PostPaid")
.password("Your password")
.protocol("HTTPS")
.tags(Map.ofEntries(
Map.entry("key1", "value1"),
Map.entry("key2", "value2")
))
.version("5.5.3_with_X-Pack")
.vswitchId("some vswitch id")
.zoneCount("2")
.build());
}
}
Content copied to clipboard
Import
Elasticsearch can be imported using the id, e.g.
$ pulumi import alicloud:elasticsearch/instance:Instance example es-cn-abcde123456
Content copied to clipboard
Constructors
Link copied to clipboard
fun InstanceArgs(clientNodeAmount: Output<Int>? = null, clientNodeSpec: Output<String>? = null, dataNodeAmount: Output<Int>? = null, dataNodeDiskEncrypted: Output<Boolean>? = null, dataNodeDiskSize: Output<Int>? = null, dataNodeDiskType: Output<String>? = null, dataNodeSpec: Output<String>? = null, description: Output<String>? = null, enableKibanaPrivateNetwork: Output<Boolean>? = null, enableKibanaPublicNetwork: Output<Boolean>? = null, enablePublic: Output<Boolean>? = null, instanceChargeType: Output<String>? = null, kibanaNodeSpec: Output<String>? = null, kibanaPrivateWhitelists: Output<List<String>>? = null, kibanaWhitelists: Output<List<String>>? = null, kmsEncryptedPassword: Output<String>? = null, kmsEncryptionContext: Output<Map<String, Any>>? = null, masterNodeSpec: Output<String>? = null, password: Output<String>? = null, period: Output<Int>? = null, privateWhitelists: Output<List<String>>? = null, protocol: Output<String>? = null, publicWhitelists: Output<List<String>>? = null, resourceGroupId: Output<String>? = null, settingConfig: Output<Map<String, Any>>? = null, tags: Output<Map<String, Any>>? = null, version: Output<String>? = null, vswitchId: Output<String>? = null, zoneCount: Output<Int>? = null)
Functions
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
An KMS encryption context used to decrypt kms_encrypted_password
before creating or updating instance with kms_encrypted_password
. See Encryption Context. It is valid when kms_encrypted_password
is set.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The YML configuration of the instance.Detailed introduction.