1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. ElasticsearchInstance
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.ElasticsearchInstance

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides an elasticsearch instance resource.

    Example Usage

    Create a basic version of elasticsearch instance paid by the hour

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const availabilityZone = tencentcloud.getAvailabilityZonesByProduct({
        product: "es",
    });
    const vpc = new tencentcloud.Vpc("vpc", {cidrBlock: "10.0.0.0/16"});
    const subnet = new tencentcloud.Subnet("subnet", {
        vpcId: vpc.vpcId,
        availabilityZone: availabilityZone.then(availabilityZone => availabilityZone.zones?.[0]?.name),
        cidrBlock: "10.0.1.0/24",
    });
    const example = new tencentcloud.ElasticsearchInstance("example", {
        instanceName: "tf_example_es",
        availabilityZone: availabilityZone.then(availabilityZone => availabilityZone.zones?.[0]?.name),
        version: "7.10.1",
        vpcId: vpc.vpcId,
        subnetId: subnet.subnetId,
        password: "Test12345",
        licenseType: "basic",
        basicSecurityType: 2,
        webNodeTypeInfos: [{
            nodeNum: 1,
            nodeType: "ES.S1.MEDIUM4",
        }],
        nodeInfoLists: [{
            nodeNum: 2,
            nodeType: "ES.S1.MEDIUM8",
            encrypt: false,
        }],
        esAcl: {
            whiteLists: ["127.0.0.1"],
        },
        cosBackup: {
            isAutoBackup: true,
            backupTime: "22:00",
        },
        tags: {
            test: "test",
        },
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    availability_zone = tencentcloud.get_availability_zones_by_product(product="es")
    vpc = tencentcloud.Vpc("vpc", cidr_block="10.0.0.0/16")
    subnet = tencentcloud.Subnet("subnet",
        vpc_id=vpc.vpc_id,
        availability_zone=availability_zone.zones[0].name,
        cidr_block="10.0.1.0/24")
    example = tencentcloud.ElasticsearchInstance("example",
        instance_name="tf_example_es",
        availability_zone=availability_zone.zones[0].name,
        version="7.10.1",
        vpc_id=vpc.vpc_id,
        subnet_id=subnet.subnet_id,
        password="Test12345",
        license_type="basic",
        basic_security_type=2,
        web_node_type_infos=[{
            "node_num": 1,
            "node_type": "ES.S1.MEDIUM4",
        }],
        node_info_lists=[{
            "node_num": 2,
            "node_type": "ES.S1.MEDIUM8",
            "encrypt": False,
        }],
        es_acl={
            "white_lists": ["127.0.0.1"],
        },
        cos_backup={
            "is_auto_backup": True,
            "backup_time": "22:00",
        },
        tags={
            "test": "test",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		availabilityZone, err := tencentcloud.GetAvailabilityZonesByProduct(ctx, &tencentcloud.GetAvailabilityZonesByProductArgs{
    			Product: "es",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		vpc, err := tencentcloud.NewVpc(ctx, "vpc", &tencentcloud.VpcArgs{
    			CidrBlock: pulumi.String("10.0.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		subnet, err := tencentcloud.NewSubnet(ctx, "subnet", &tencentcloud.SubnetArgs{
    			VpcId:            vpc.VpcId,
    			AvailabilityZone: pulumi.String(availabilityZone.Zones[0].Name),
    			CidrBlock:        pulumi.String("10.0.1.0/24"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = tencentcloud.NewElasticsearchInstance(ctx, "example", &tencentcloud.ElasticsearchInstanceArgs{
    			InstanceName:      pulumi.String("tf_example_es"),
    			AvailabilityZone:  pulumi.String(availabilityZone.Zones[0].Name),
    			Version:           pulumi.String("7.10.1"),
    			VpcId:             vpc.VpcId,
    			SubnetId:          subnet.SubnetId,
    			Password:          pulumi.String("Test12345"),
    			LicenseType:       pulumi.String("basic"),
    			BasicSecurityType: pulumi.Float64(2),
    			WebNodeTypeInfos: tencentcloud.ElasticsearchInstanceWebNodeTypeInfoArray{
    				&tencentcloud.ElasticsearchInstanceWebNodeTypeInfoArgs{
    					NodeNum:  pulumi.Float64(1),
    					NodeType: pulumi.String("ES.S1.MEDIUM4"),
    				},
    			},
    			NodeInfoLists: tencentcloud.ElasticsearchInstanceNodeInfoListArray{
    				&tencentcloud.ElasticsearchInstanceNodeInfoListArgs{
    					NodeNum:  pulumi.Float64(2),
    					NodeType: pulumi.String("ES.S1.MEDIUM8"),
    					Encrypt:  pulumi.Bool(false),
    				},
    			},
    			EsAcl: &tencentcloud.ElasticsearchInstanceEsAclArgs{
    				WhiteLists: pulumi.StringArray{
    					pulumi.String("127.0.0.1"),
    				},
    			},
    			CosBackup: &tencentcloud.ElasticsearchInstanceCosBackupArgs{
    				IsAutoBackup: pulumi.Bool(true),
    				BackupTime:   pulumi.String("22:00"),
    			},
    			Tags: pulumi.StringMap{
    				"test": pulumi.String("test"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var availabilityZone = Tencentcloud.GetAvailabilityZonesByProduct.Invoke(new()
        {
            Product = "es",
        });
    
        var vpc = new Tencentcloud.Vpc("vpc", new()
        {
            CidrBlock = "10.0.0.0/16",
        });
    
        var subnet = new Tencentcloud.Subnet("subnet", new()
        {
            VpcId = vpc.VpcId,
            AvailabilityZone = availabilityZone.Apply(getAvailabilityZonesByProductResult => getAvailabilityZonesByProductResult.Zones[0]?.Name),
            CidrBlock = "10.0.1.0/24",
        });
    
        var example = new Tencentcloud.ElasticsearchInstance("example", new()
        {
            InstanceName = "tf_example_es",
            AvailabilityZone = availabilityZone.Apply(getAvailabilityZonesByProductResult => getAvailabilityZonesByProductResult.Zones[0]?.Name),
            Version = "7.10.1",
            VpcId = vpc.VpcId,
            SubnetId = subnet.SubnetId,
            Password = "Test12345",
            LicenseType = "basic",
            BasicSecurityType = 2,
            WebNodeTypeInfos = new[]
            {
                new Tencentcloud.Inputs.ElasticsearchInstanceWebNodeTypeInfoArgs
                {
                    NodeNum = 1,
                    NodeType = "ES.S1.MEDIUM4",
                },
            },
            NodeInfoLists = new[]
            {
                new Tencentcloud.Inputs.ElasticsearchInstanceNodeInfoListArgs
                {
                    NodeNum = 2,
                    NodeType = "ES.S1.MEDIUM8",
                    Encrypt = false,
                },
            },
            EsAcl = new Tencentcloud.Inputs.ElasticsearchInstanceEsAclArgs
            {
                WhiteLists = new[]
                {
                    "127.0.0.1",
                },
            },
            CosBackup = new Tencentcloud.Inputs.ElasticsearchInstanceCosBackupArgs
            {
                IsAutoBackup = true,
                BackupTime = "22:00",
            },
            Tags = 
            {
                { "test", "test" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetAvailabilityZonesByProductArgs;
    import com.pulumi.tencentcloud.Vpc;
    import com.pulumi.tencentcloud.VpcArgs;
    import com.pulumi.tencentcloud.Subnet;
    import com.pulumi.tencentcloud.SubnetArgs;
    import com.pulumi.tencentcloud.ElasticsearchInstance;
    import com.pulumi.tencentcloud.ElasticsearchInstanceArgs;
    import com.pulumi.tencentcloud.inputs.ElasticsearchInstanceWebNodeTypeInfoArgs;
    import com.pulumi.tencentcloud.inputs.ElasticsearchInstanceNodeInfoListArgs;
    import com.pulumi.tencentcloud.inputs.ElasticsearchInstanceEsAclArgs;
    import com.pulumi.tencentcloud.inputs.ElasticsearchInstanceCosBackupArgs;
    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 availabilityZone = TencentcloudFunctions.getAvailabilityZonesByProduct(GetAvailabilityZonesByProductArgs.builder()
                .product("es")
                .build());
    
            var vpc = new Vpc("vpc", VpcArgs.builder()
                .cidrBlock("10.0.0.0/16")
                .build());
    
            var subnet = new Subnet("subnet", SubnetArgs.builder()
                .vpcId(vpc.vpcId())
                .availabilityZone(availabilityZone.applyValue(getAvailabilityZonesByProductResult -> getAvailabilityZonesByProductResult.zones()[0].name()))
                .cidrBlock("10.0.1.0/24")
                .build());
    
            var example = new ElasticsearchInstance("example", ElasticsearchInstanceArgs.builder()
                .instanceName("tf_example_es")
                .availabilityZone(availabilityZone.applyValue(getAvailabilityZonesByProductResult -> getAvailabilityZonesByProductResult.zones()[0].name()))
                .version("7.10.1")
                .vpcId(vpc.vpcId())
                .subnetId(subnet.subnetId())
                .password("Test12345")
                .licenseType("basic")
                .basicSecurityType(2)
                .webNodeTypeInfos(ElasticsearchInstanceWebNodeTypeInfoArgs.builder()
                    .nodeNum(1)
                    .nodeType("ES.S1.MEDIUM4")
                    .build())
                .nodeInfoLists(ElasticsearchInstanceNodeInfoListArgs.builder()
                    .nodeNum(2)
                    .nodeType("ES.S1.MEDIUM8")
                    .encrypt(false)
                    .build())
                .esAcl(ElasticsearchInstanceEsAclArgs.builder()
                    .whiteLists("127.0.0.1")
                    .build())
                .cosBackup(ElasticsearchInstanceCosBackupArgs.builder()
                    .isAutoBackup(true)
                    .backupTime("22:00")
                    .build())
                .tags(Map.of("test", "test"))
                .build());
    
        }
    }
    
    resources:
      vpc:
        type: tencentcloud:Vpc
        properties:
          cidrBlock: 10.0.0.0/16
      subnet:
        type: tencentcloud:Subnet
        properties:
          vpcId: ${vpc.vpcId}
          availabilityZone: ${availabilityZone.zones[0].name}
          cidrBlock: 10.0.1.0/24
      example:
        type: tencentcloud:ElasticsearchInstance
        properties:
          instanceName: tf_example_es
          availabilityZone: ${availabilityZone.zones[0].name}
          version: 7.10.1
          vpcId: ${vpc.vpcId}
          subnetId: ${subnet.subnetId}
          password: Test12345
          licenseType: basic
          basicSecurityType: 2
          webNodeTypeInfos:
            - nodeNum: 1
              nodeType: ES.S1.MEDIUM4
          nodeInfoLists:
            - nodeNum: 2
              nodeType: ES.S1.MEDIUM8
              encrypt: false
          esAcl:
            whiteLists:
              - 127.0.0.1
          cosBackup:
            isAutoBackup: true
            backupTime: 22:00
          tags:
            test: test
    variables:
      availabilityZone:
        fn::invoke:
          function: tencentcloud:getAvailabilityZonesByProduct
          arguments:
            product: es
    

    Create a basic version of elasticsearch instance for multi-availability zone deployment

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const availabilityZone = tencentcloud.getAvailabilityZonesByProduct({
        product: "es",
    });
    const vpc = new tencentcloud.Vpc("vpc", {cidrBlock: "10.0.0.0/16"});
    const subnet = new tencentcloud.Subnet("subnet", {
        vpcId: vpc.vpcId,
        availabilityZone: availabilityZone.then(availabilityZone => availabilityZone.zones?.[0]?.name),
        cidrBlock: "10.0.1.0/24",
    });
    const subnetMultiZone = new tencentcloud.Subnet("subnetMultiZone", {
        vpcId: vpc.vpcId,
        availabilityZone: availabilityZone.then(availabilityZone => availabilityZone.zones?.[1]?.name),
        cidrBlock: "10.0.2.0/24",
    });
    const exampleMultiZone = new tencentcloud.ElasticsearchInstance("exampleMultiZone", {
        instanceName: "tf_example_es",
        availabilityZone: "-",
        version: "7.10.1",
        vpcId: vpc.vpcId,
        subnetId: "-",
        password: "Test12345",
        licenseType: "basic",
        basicSecurityType: 2,
        deployMode: 1,
        multiZoneInfos: [
            {
                availabilityZone: availabilityZone.then(availabilityZone => availabilityZone.zones?.[0]?.name),
                subnetId: subnet.subnetId,
            },
            {
                availabilityZone: availabilityZone.then(availabilityZone => availabilityZone.zones?.[1]?.name),
                subnetId: subnetMultiZone.subnetId,
            },
        ],
        webNodeTypeInfos: [{
            nodeNum: 1,
            nodeType: "ES.S1.MEDIUM4",
        }],
        nodeInfoLists: [
            {
                type: "dedicatedMaster",
                nodeNum: 3,
                nodeType: "ES.S1.MEDIUM8",
                encrypt: false,
            },
            {
                type: "hotData",
                nodeNum: 2,
                nodeType: "ES.S1.MEDIUM8",
                encrypt: false,
            },
        ],
        esAcl: {
            whiteLists: ["127.0.0.1"],
        },
        tags: {
            test: "test",
        },
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    availability_zone = tencentcloud.get_availability_zones_by_product(product="es")
    vpc = tencentcloud.Vpc("vpc", cidr_block="10.0.0.0/16")
    subnet = tencentcloud.Subnet("subnet",
        vpc_id=vpc.vpc_id,
        availability_zone=availability_zone.zones[0].name,
        cidr_block="10.0.1.0/24")
    subnet_multi_zone = tencentcloud.Subnet("subnetMultiZone",
        vpc_id=vpc.vpc_id,
        availability_zone=availability_zone.zones[1].name,
        cidr_block="10.0.2.0/24")
    example_multi_zone = tencentcloud.ElasticsearchInstance("exampleMultiZone",
        instance_name="tf_example_es",
        availability_zone="-",
        version="7.10.1",
        vpc_id=vpc.vpc_id,
        subnet_id="-",
        password="Test12345",
        license_type="basic",
        basic_security_type=2,
        deploy_mode=1,
        multi_zone_infos=[
            {
                "availability_zone": availability_zone.zones[0].name,
                "subnet_id": subnet.subnet_id,
            },
            {
                "availability_zone": availability_zone.zones[1].name,
                "subnet_id": subnet_multi_zone.subnet_id,
            },
        ],
        web_node_type_infos=[{
            "node_num": 1,
            "node_type": "ES.S1.MEDIUM4",
        }],
        node_info_lists=[
            {
                "type": "dedicatedMaster",
                "node_num": 3,
                "node_type": "ES.S1.MEDIUM8",
                "encrypt": False,
            },
            {
                "type": "hotData",
                "node_num": 2,
                "node_type": "ES.S1.MEDIUM8",
                "encrypt": False,
            },
        ],
        es_acl={
            "white_lists": ["127.0.0.1"],
        },
        tags={
            "test": "test",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		availabilityZone, err := tencentcloud.GetAvailabilityZonesByProduct(ctx, &tencentcloud.GetAvailabilityZonesByProductArgs{
    			Product: "es",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		vpc, err := tencentcloud.NewVpc(ctx, "vpc", &tencentcloud.VpcArgs{
    			CidrBlock: pulumi.String("10.0.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		subnet, err := tencentcloud.NewSubnet(ctx, "subnet", &tencentcloud.SubnetArgs{
    			VpcId:            vpc.VpcId,
    			AvailabilityZone: pulumi.String(availabilityZone.Zones[0].Name),
    			CidrBlock:        pulumi.String("10.0.1.0/24"),
    		})
    		if err != nil {
    			return err
    		}
    		subnetMultiZone, err := tencentcloud.NewSubnet(ctx, "subnetMultiZone", &tencentcloud.SubnetArgs{
    			VpcId:            vpc.VpcId,
    			AvailabilityZone: pulumi.String(availabilityZone.Zones[1].Name),
    			CidrBlock:        pulumi.String("10.0.2.0/24"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = tencentcloud.NewElasticsearchInstance(ctx, "exampleMultiZone", &tencentcloud.ElasticsearchInstanceArgs{
    			InstanceName:      pulumi.String("tf_example_es"),
    			AvailabilityZone:  pulumi.String("-"),
    			Version:           pulumi.String("7.10.1"),
    			VpcId:             vpc.VpcId,
    			SubnetId:          pulumi.String("-"),
    			Password:          pulumi.String("Test12345"),
    			LicenseType:       pulumi.String("basic"),
    			BasicSecurityType: pulumi.Float64(2),
    			DeployMode:        pulumi.Float64(1),
    			MultiZoneInfos: tencentcloud.ElasticsearchInstanceMultiZoneInfoArray{
    				&tencentcloud.ElasticsearchInstanceMultiZoneInfoArgs{
    					AvailabilityZone: pulumi.String(availabilityZone.Zones[0].Name),
    					SubnetId:         subnet.SubnetId,
    				},
    				&tencentcloud.ElasticsearchInstanceMultiZoneInfoArgs{
    					AvailabilityZone: pulumi.String(availabilityZone.Zones[1].Name),
    					SubnetId:         subnetMultiZone.SubnetId,
    				},
    			},
    			WebNodeTypeInfos: tencentcloud.ElasticsearchInstanceWebNodeTypeInfoArray{
    				&tencentcloud.ElasticsearchInstanceWebNodeTypeInfoArgs{
    					NodeNum:  pulumi.Float64(1),
    					NodeType: pulumi.String("ES.S1.MEDIUM4"),
    				},
    			},
    			NodeInfoLists: tencentcloud.ElasticsearchInstanceNodeInfoListArray{
    				&tencentcloud.ElasticsearchInstanceNodeInfoListArgs{
    					Type:     pulumi.String("dedicatedMaster"),
    					NodeNum:  pulumi.Float64(3),
    					NodeType: pulumi.String("ES.S1.MEDIUM8"),
    					Encrypt:  pulumi.Bool(false),
    				},
    				&tencentcloud.ElasticsearchInstanceNodeInfoListArgs{
    					Type:     pulumi.String("hotData"),
    					NodeNum:  pulumi.Float64(2),
    					NodeType: pulumi.String("ES.S1.MEDIUM8"),
    					Encrypt:  pulumi.Bool(false),
    				},
    			},
    			EsAcl: &tencentcloud.ElasticsearchInstanceEsAclArgs{
    				WhiteLists: pulumi.StringArray{
    					pulumi.String("127.0.0.1"),
    				},
    			},
    			Tags: pulumi.StringMap{
    				"test": pulumi.String("test"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var availabilityZone = Tencentcloud.GetAvailabilityZonesByProduct.Invoke(new()
        {
            Product = "es",
        });
    
        var vpc = new Tencentcloud.Vpc("vpc", new()
        {
            CidrBlock = "10.0.0.0/16",
        });
    
        var subnet = new Tencentcloud.Subnet("subnet", new()
        {
            VpcId = vpc.VpcId,
            AvailabilityZone = availabilityZone.Apply(getAvailabilityZonesByProductResult => getAvailabilityZonesByProductResult.Zones[0]?.Name),
            CidrBlock = "10.0.1.0/24",
        });
    
        var subnetMultiZone = new Tencentcloud.Subnet("subnetMultiZone", new()
        {
            VpcId = vpc.VpcId,
            AvailabilityZone = availabilityZone.Apply(getAvailabilityZonesByProductResult => getAvailabilityZonesByProductResult.Zones[1]?.Name),
            CidrBlock = "10.0.2.0/24",
        });
    
        var exampleMultiZone = new Tencentcloud.ElasticsearchInstance("exampleMultiZone", new()
        {
            InstanceName = "tf_example_es",
            AvailabilityZone = "-",
            Version = "7.10.1",
            VpcId = vpc.VpcId,
            SubnetId = "-",
            Password = "Test12345",
            LicenseType = "basic",
            BasicSecurityType = 2,
            DeployMode = 1,
            MultiZoneInfos = new[]
            {
                new Tencentcloud.Inputs.ElasticsearchInstanceMultiZoneInfoArgs
                {
                    AvailabilityZone = availabilityZone.Apply(getAvailabilityZonesByProductResult => getAvailabilityZonesByProductResult.Zones[0]?.Name),
                    SubnetId = subnet.SubnetId,
                },
                new Tencentcloud.Inputs.ElasticsearchInstanceMultiZoneInfoArgs
                {
                    AvailabilityZone = availabilityZone.Apply(getAvailabilityZonesByProductResult => getAvailabilityZonesByProductResult.Zones[1]?.Name),
                    SubnetId = subnetMultiZone.SubnetId,
                },
            },
            WebNodeTypeInfos = new[]
            {
                new Tencentcloud.Inputs.ElasticsearchInstanceWebNodeTypeInfoArgs
                {
                    NodeNum = 1,
                    NodeType = "ES.S1.MEDIUM4",
                },
            },
            NodeInfoLists = new[]
            {
                new Tencentcloud.Inputs.ElasticsearchInstanceNodeInfoListArgs
                {
                    Type = "dedicatedMaster",
                    NodeNum = 3,
                    NodeType = "ES.S1.MEDIUM8",
                    Encrypt = false,
                },
                new Tencentcloud.Inputs.ElasticsearchInstanceNodeInfoListArgs
                {
                    Type = "hotData",
                    NodeNum = 2,
                    NodeType = "ES.S1.MEDIUM8",
                    Encrypt = false,
                },
            },
            EsAcl = new Tencentcloud.Inputs.ElasticsearchInstanceEsAclArgs
            {
                WhiteLists = new[]
                {
                    "127.0.0.1",
                },
            },
            Tags = 
            {
                { "test", "test" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetAvailabilityZonesByProductArgs;
    import com.pulumi.tencentcloud.Vpc;
    import com.pulumi.tencentcloud.VpcArgs;
    import com.pulumi.tencentcloud.Subnet;
    import com.pulumi.tencentcloud.SubnetArgs;
    import com.pulumi.tencentcloud.ElasticsearchInstance;
    import com.pulumi.tencentcloud.ElasticsearchInstanceArgs;
    import com.pulumi.tencentcloud.inputs.ElasticsearchInstanceMultiZoneInfoArgs;
    import com.pulumi.tencentcloud.inputs.ElasticsearchInstanceWebNodeTypeInfoArgs;
    import com.pulumi.tencentcloud.inputs.ElasticsearchInstanceNodeInfoListArgs;
    import com.pulumi.tencentcloud.inputs.ElasticsearchInstanceEsAclArgs;
    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 availabilityZone = TencentcloudFunctions.getAvailabilityZonesByProduct(GetAvailabilityZonesByProductArgs.builder()
                .product("es")
                .build());
    
            var vpc = new Vpc("vpc", VpcArgs.builder()
                .cidrBlock("10.0.0.0/16")
                .build());
    
            var subnet = new Subnet("subnet", SubnetArgs.builder()
                .vpcId(vpc.vpcId())
                .availabilityZone(availabilityZone.applyValue(getAvailabilityZonesByProductResult -> getAvailabilityZonesByProductResult.zones()[0].name()))
                .cidrBlock("10.0.1.0/24")
                .build());
    
            var subnetMultiZone = new Subnet("subnetMultiZone", SubnetArgs.builder()
                .vpcId(vpc.vpcId())
                .availabilityZone(availabilityZone.applyValue(getAvailabilityZonesByProductResult -> getAvailabilityZonesByProductResult.zones()[1].name()))
                .cidrBlock("10.0.2.0/24")
                .build());
    
            var exampleMultiZone = new ElasticsearchInstance("exampleMultiZone", ElasticsearchInstanceArgs.builder()
                .instanceName("tf_example_es")
                .availabilityZone("-")
                .version("7.10.1")
                .vpcId(vpc.vpcId())
                .subnetId("-")
                .password("Test12345")
                .licenseType("basic")
                .basicSecurityType(2)
                .deployMode(1)
                .multiZoneInfos(            
                    ElasticsearchInstanceMultiZoneInfoArgs.builder()
                        .availabilityZone(availabilityZone.applyValue(getAvailabilityZonesByProductResult -> getAvailabilityZonesByProductResult.zones()[0].name()))
                        .subnetId(subnet.subnetId())
                        .build(),
                    ElasticsearchInstanceMultiZoneInfoArgs.builder()
                        .availabilityZone(availabilityZone.applyValue(getAvailabilityZonesByProductResult -> getAvailabilityZonesByProductResult.zones()[1].name()))
                        .subnetId(subnetMultiZone.subnetId())
                        .build())
                .webNodeTypeInfos(ElasticsearchInstanceWebNodeTypeInfoArgs.builder()
                    .nodeNum(1)
                    .nodeType("ES.S1.MEDIUM4")
                    .build())
                .nodeInfoLists(            
                    ElasticsearchInstanceNodeInfoListArgs.builder()
                        .type("dedicatedMaster")
                        .nodeNum(3)
                        .nodeType("ES.S1.MEDIUM8")
                        .encrypt(false)
                        .build(),
                    ElasticsearchInstanceNodeInfoListArgs.builder()
                        .type("hotData")
                        .nodeNum(2)
                        .nodeType("ES.S1.MEDIUM8")
                        .encrypt(false)
                        .build())
                .esAcl(ElasticsearchInstanceEsAclArgs.builder()
                    .whiteLists("127.0.0.1")
                    .build())
                .tags(Map.of("test", "test"))
                .build());
    
        }
    }
    
    resources:
      vpc:
        type: tencentcloud:Vpc
        properties:
          cidrBlock: 10.0.0.0/16
      subnet:
        type: tencentcloud:Subnet
        properties:
          vpcId: ${vpc.vpcId}
          availabilityZone: ${availabilityZone.zones[0].name}
          cidrBlock: 10.0.1.0/24
      subnetMultiZone:
        type: tencentcloud:Subnet
        properties:
          vpcId: ${vpc.vpcId}
          availabilityZone: ${availabilityZone.zones[1].name}
          cidrBlock: 10.0.2.0/24
      exampleMultiZone:
        type: tencentcloud:ElasticsearchInstance
        properties:
          instanceName: tf_example_es
          availabilityZone: '-'
          version: 7.10.1
          vpcId: ${vpc.vpcId}
          subnetId: '-'
          password: Test12345
          licenseType: basic
          basicSecurityType: 2
          deployMode: 1
          multiZoneInfos:
            - availabilityZone: ${availabilityZone.zones[0].name}
              subnetId: ${subnet.subnetId}
            - availabilityZone: ${availabilityZone.zones[1].name}
              subnetId: ${subnetMultiZone.subnetId}
          webNodeTypeInfos:
            - nodeNum: 1
              nodeType: ES.S1.MEDIUM4
          nodeInfoLists:
            - type: dedicatedMaster
              nodeNum: 3
              nodeType: ES.S1.MEDIUM8
              encrypt: false
            - type: hotData
              nodeNum: 2
              nodeType: ES.S1.MEDIUM8
              encrypt: false
          esAcl:
            whiteLists:
              - 127.0.0.1
          tags:
            test: test
    variables:
      availabilityZone:
        fn::invoke:
          function: tencentcloud:getAvailabilityZonesByProduct
          arguments:
            product: es
    

    Create ElasticsearchInstance Resource

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

    Constructor syntax

    new ElasticsearchInstance(name: string, args: ElasticsearchInstanceArgs, opts?: CustomResourceOptions);
    @overload
    def ElasticsearchInstance(resource_name: str,
                              args: ElasticsearchInstanceArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def ElasticsearchInstance(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              node_info_lists: Optional[Sequence[ElasticsearchInstanceNodeInfoListArgs]] = None,
                              vpc_id: Optional[str] = None,
                              version: Optional[str] = None,
                              password: Optional[str] = None,
                              kibana_public_access: Optional[str] = None,
                              cos_backup: Optional[ElasticsearchInstanceCosBackupArgs] = None,
                              elasticsearch_instance_id: Optional[str] = None,
                              es_acl: Optional[ElasticsearchInstanceEsAclArgs] = None,
                              es_public_acl: Optional[ElasticsearchInstanceEsPublicAclArgs] = None,
                              instance_name: Optional[str] = None,
                              availability_zone: Optional[str] = None,
                              license_type: Optional[str] = None,
                              multi_zone_infos: Optional[Sequence[ElasticsearchInstanceMultiZoneInfoArgs]] = None,
                              deploy_mode: Optional[float] = None,
                              charge_type: Optional[str] = None,
                              public_access: Optional[str] = None,
                              renew_flag: Optional[str] = None,
                              subnet_id: Optional[str] = None,
                              tags: Optional[Mapping[str, str]] = None,
                              charge_period: Optional[float] = None,
                              basic_security_type: Optional[float] = None,
                              web_node_type_infos: Optional[Sequence[ElasticsearchInstanceWebNodeTypeInfoArgs]] = None)
    func NewElasticsearchInstance(ctx *Context, name string, args ElasticsearchInstanceArgs, opts ...ResourceOption) (*ElasticsearchInstance, error)
    public ElasticsearchInstance(string name, ElasticsearchInstanceArgs args, CustomResourceOptions? opts = null)
    public ElasticsearchInstance(String name, ElasticsearchInstanceArgs args)
    public ElasticsearchInstance(String name, ElasticsearchInstanceArgs args, CustomResourceOptions options)
    
    type: tencentcloud:ElasticsearchInstance
    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 ElasticsearchInstanceArgs
    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 ElasticsearchInstanceArgs
    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 ElasticsearchInstanceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ElasticsearchInstanceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ElasticsearchInstanceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    ElasticsearchInstance 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 ElasticsearchInstance resource accepts the following input properties:

    NodeInfoLists List<ElasticsearchInstanceNodeInfoList>
    Node information list, which is used to describe the specification information of various types of nodes in the cluster, such as node type, node quantity, node specification, disk type, and disk size.
    Password string
    Password to an instance, the password needs to be 8 to 16 characters, including at least two items ([a-z,A-Z], [0-9] and [-!@#$%&^*+=_:;,.?] special symbols.
    Version string
    Version of the instance. Valid values are 5.6.4, 6.4.3, 6.8.2, 7.5.1 and 7.10.1.
    VpcId string
    The ID of a VPC network.
    AvailabilityZone string
    Availability zone. When create multi-az es, this parameter must be omitted or -.
    BasicSecurityType double
    Whether to enable X-Pack security authentication in Basic Edition 6.8 and above. Valid values are 1 and 2. 1 is disabled, 2 is enabled, and default value is 1. Notice: this parameter is only take effect on basic license.
    ChargePeriod double
    The tenancy of the prepaid instance, and uint is month. NOTE: it only works when charge_type is set to PREPAID.
    ChargeType string
    The charge type of instance. Valid values are PREPAID and POSTPAID_BY_HOUR.
    CosBackup ElasticsearchInstanceCosBackup
    COS automatic backup information.
    DeployMode double
    Cluster deployment mode. Valid values are 0 and 1. 0 is single-AZ deployment, and 1 is multi-AZ deployment. Default value is 0.
    ElasticsearchInstanceId string
    ID of the resource.
    EsAcl ElasticsearchInstanceEsAcl
    Kibana Access Control Configuration.
    EsPublicAcl ElasticsearchInstanceEsPublicAcl
    Public network access control list.
    InstanceName string
    Name of the instance, which can contain 1 to 50 English letters, Chinese characters, digits, dashes(-), or underscores(_).
    KibanaPublicAccess string
    Kibana public network access status. Valid values are OPEN and CLOSE.
    LicenseType string
    License type. Valid values are oss, basic and platinum. The default value is platinum.
    MultiZoneInfos List<ElasticsearchInstanceMultiZoneInfo>
    Details of AZs in multi-AZ deployment mode (which is required when deploy_mode is 1).
    PublicAccess string
    ES cluster public network access status. Valid values are OPEN and CLOSE. Cannot be changed at the same time as es_acl.
    RenewFlag string
    When enabled, the instance will be renew automatically when it reach the end of the prepaid tenancy. Valid values are RENEW_FLAG_AUTO and RENEW_FLAG_MANUAL. NOTE: it only works when charge_type is set to PREPAID.
    SubnetId string
    The ID of a VPC subnetwork. When create multi-az es, this parameter must be omitted or -.
    Tags Dictionary<string, string>
    A mapping of tags to assign to the instance. For tag limits, please refer to Use Limits.
    WebNodeTypeInfos List<ElasticsearchInstanceWebNodeTypeInfo>
    Visual node configuration.
    NodeInfoLists []ElasticsearchInstanceNodeInfoListArgs
    Node information list, which is used to describe the specification information of various types of nodes in the cluster, such as node type, node quantity, node specification, disk type, and disk size.
    Password string
    Password to an instance, the password needs to be 8 to 16 characters, including at least two items ([a-z,A-Z], [0-9] and [-!@#$%&^*+=_:;,.?] special symbols.
    Version string
    Version of the instance. Valid values are 5.6.4, 6.4.3, 6.8.2, 7.5.1 and 7.10.1.
    VpcId string
    The ID of a VPC network.
    AvailabilityZone string
    Availability zone. When create multi-az es, this parameter must be omitted or -.
    BasicSecurityType float64
    Whether to enable X-Pack security authentication in Basic Edition 6.8 and above. Valid values are 1 and 2. 1 is disabled, 2 is enabled, and default value is 1. Notice: this parameter is only take effect on basic license.
    ChargePeriod float64
    The tenancy of the prepaid instance, and uint is month. NOTE: it only works when charge_type is set to PREPAID.
    ChargeType string
    The charge type of instance. Valid values are PREPAID and POSTPAID_BY_HOUR.
    CosBackup ElasticsearchInstanceCosBackupArgs
    COS automatic backup information.
    DeployMode float64
    Cluster deployment mode. Valid values are 0 and 1. 0 is single-AZ deployment, and 1 is multi-AZ deployment. Default value is 0.
    ElasticsearchInstanceId string
    ID of the resource.
    EsAcl ElasticsearchInstanceEsAclArgs
    Kibana Access Control Configuration.
    EsPublicAcl ElasticsearchInstanceEsPublicAclArgs
    Public network access control list.
    InstanceName string
    Name of the instance, which can contain 1 to 50 English letters, Chinese characters, digits, dashes(-), or underscores(_).
    KibanaPublicAccess string
    Kibana public network access status. Valid values are OPEN and CLOSE.
    LicenseType string
    License type. Valid values are oss, basic and platinum. The default value is platinum.
    MultiZoneInfos []ElasticsearchInstanceMultiZoneInfoArgs
    Details of AZs in multi-AZ deployment mode (which is required when deploy_mode is 1).
    PublicAccess string
    ES cluster public network access status. Valid values are OPEN and CLOSE. Cannot be changed at the same time as es_acl.
    RenewFlag string
    When enabled, the instance will be renew automatically when it reach the end of the prepaid tenancy. Valid values are RENEW_FLAG_AUTO and RENEW_FLAG_MANUAL. NOTE: it only works when charge_type is set to PREPAID.
    SubnetId string
    The ID of a VPC subnetwork. When create multi-az es, this parameter must be omitted or -.
    Tags map[string]string
    A mapping of tags to assign to the instance. For tag limits, please refer to Use Limits.
    WebNodeTypeInfos []ElasticsearchInstanceWebNodeTypeInfoArgs
    Visual node configuration.
    nodeInfoLists List<ElasticsearchInstanceNodeInfoList>
    Node information list, which is used to describe the specification information of various types of nodes in the cluster, such as node type, node quantity, node specification, disk type, and disk size.
    password String
    Password to an instance, the password needs to be 8 to 16 characters, including at least two items ([a-z,A-Z], [0-9] and [-!@#$%&^*+=_:;,.?] special symbols.
    version String
    Version of the instance. Valid values are 5.6.4, 6.4.3, 6.8.2, 7.5.1 and 7.10.1.
    vpcId String
    The ID of a VPC network.
    availabilityZone String
    Availability zone. When create multi-az es, this parameter must be omitted or -.
    basicSecurityType Double
    Whether to enable X-Pack security authentication in Basic Edition 6.8 and above. Valid values are 1 and 2. 1 is disabled, 2 is enabled, and default value is 1. Notice: this parameter is only take effect on basic license.
    chargePeriod Double
    The tenancy of the prepaid instance, and uint is month. NOTE: it only works when charge_type is set to PREPAID.
    chargeType String
    The charge type of instance. Valid values are PREPAID and POSTPAID_BY_HOUR.
    cosBackup ElasticsearchInstanceCosBackup
    COS automatic backup information.
    deployMode Double
    Cluster deployment mode. Valid values are 0 and 1. 0 is single-AZ deployment, and 1 is multi-AZ deployment. Default value is 0.
    elasticsearchInstanceId String
    ID of the resource.
    esAcl ElasticsearchInstanceEsAcl
    Kibana Access Control Configuration.
    esPublicAcl ElasticsearchInstanceEsPublicAcl
    Public network access control list.
    instanceName String
    Name of the instance, which can contain 1 to 50 English letters, Chinese characters, digits, dashes(-), or underscores(_).
    kibanaPublicAccess String
    Kibana public network access status. Valid values are OPEN and CLOSE.
    licenseType String
    License type. Valid values are oss, basic and platinum. The default value is platinum.
    multiZoneInfos List<ElasticsearchInstanceMultiZoneInfo>
    Details of AZs in multi-AZ deployment mode (which is required when deploy_mode is 1).
    publicAccess String
    ES cluster public network access status. Valid values are OPEN and CLOSE. Cannot be changed at the same time as es_acl.
    renewFlag String
    When enabled, the instance will be renew automatically when it reach the end of the prepaid tenancy. Valid values are RENEW_FLAG_AUTO and RENEW_FLAG_MANUAL. NOTE: it only works when charge_type is set to PREPAID.
    subnetId String
    The ID of a VPC subnetwork. When create multi-az es, this parameter must be omitted or -.
    tags Map<String,String>
    A mapping of tags to assign to the instance. For tag limits, please refer to Use Limits.
    webNodeTypeInfos List<ElasticsearchInstanceWebNodeTypeInfo>
    Visual node configuration.
    nodeInfoLists ElasticsearchInstanceNodeInfoList[]
    Node information list, which is used to describe the specification information of various types of nodes in the cluster, such as node type, node quantity, node specification, disk type, and disk size.
    password string
    Password to an instance, the password needs to be 8 to 16 characters, including at least two items ([a-z,A-Z], [0-9] and [-!@#$%&^*+=_:;,.?] special symbols.
    version string
    Version of the instance. Valid values are 5.6.4, 6.4.3, 6.8.2, 7.5.1 and 7.10.1.
    vpcId string
    The ID of a VPC network.
    availabilityZone string
    Availability zone. When create multi-az es, this parameter must be omitted or -.
    basicSecurityType number
    Whether to enable X-Pack security authentication in Basic Edition 6.8 and above. Valid values are 1 and 2. 1 is disabled, 2 is enabled, and default value is 1. Notice: this parameter is only take effect on basic license.
    chargePeriod number
    The tenancy of the prepaid instance, and uint is month. NOTE: it only works when charge_type is set to PREPAID.
    chargeType string
    The charge type of instance. Valid values are PREPAID and POSTPAID_BY_HOUR.
    cosBackup ElasticsearchInstanceCosBackup
    COS automatic backup information.
    deployMode number
    Cluster deployment mode. Valid values are 0 and 1. 0 is single-AZ deployment, and 1 is multi-AZ deployment. Default value is 0.
    elasticsearchInstanceId string
    ID of the resource.
    esAcl ElasticsearchInstanceEsAcl
    Kibana Access Control Configuration.
    esPublicAcl ElasticsearchInstanceEsPublicAcl
    Public network access control list.
    instanceName string
    Name of the instance, which can contain 1 to 50 English letters, Chinese characters, digits, dashes(-), or underscores(_).
    kibanaPublicAccess string
    Kibana public network access status. Valid values are OPEN and CLOSE.
    licenseType string
    License type. Valid values are oss, basic and platinum. The default value is platinum.
    multiZoneInfos ElasticsearchInstanceMultiZoneInfo[]
    Details of AZs in multi-AZ deployment mode (which is required when deploy_mode is 1).
    publicAccess string
    ES cluster public network access status. Valid values are OPEN and CLOSE. Cannot be changed at the same time as es_acl.
    renewFlag string
    When enabled, the instance will be renew automatically when it reach the end of the prepaid tenancy. Valid values are RENEW_FLAG_AUTO and RENEW_FLAG_MANUAL. NOTE: it only works when charge_type is set to PREPAID.
    subnetId string
    The ID of a VPC subnetwork. When create multi-az es, this parameter must be omitted or -.
    tags {[key: string]: string}
    A mapping of tags to assign to the instance. For tag limits, please refer to Use Limits.
    webNodeTypeInfos ElasticsearchInstanceWebNodeTypeInfo[]
    Visual node configuration.
    node_info_lists Sequence[ElasticsearchInstanceNodeInfoListArgs]
    Node information list, which is used to describe the specification information of various types of nodes in the cluster, such as node type, node quantity, node specification, disk type, and disk size.
    password str
    Password to an instance, the password needs to be 8 to 16 characters, including at least two items ([a-z,A-Z], [0-9] and [-!@#$%&^*+=_:;,.?] special symbols.
    version str
    Version of the instance. Valid values are 5.6.4, 6.4.3, 6.8.2, 7.5.1 and 7.10.1.
    vpc_id str
    The ID of a VPC network.
    availability_zone str
    Availability zone. When create multi-az es, this parameter must be omitted or -.
    basic_security_type float
    Whether to enable X-Pack security authentication in Basic Edition 6.8 and above. Valid values are 1 and 2. 1 is disabled, 2 is enabled, and default value is 1. Notice: this parameter is only take effect on basic license.
    charge_period float
    The tenancy of the prepaid instance, and uint is month. NOTE: it only works when charge_type is set to PREPAID.
    charge_type str
    The charge type of instance. Valid values are PREPAID and POSTPAID_BY_HOUR.
    cos_backup ElasticsearchInstanceCosBackupArgs
    COS automatic backup information.
    deploy_mode float
    Cluster deployment mode. Valid values are 0 and 1. 0 is single-AZ deployment, and 1 is multi-AZ deployment. Default value is 0.
    elasticsearch_instance_id str
    ID of the resource.
    es_acl ElasticsearchInstanceEsAclArgs
    Kibana Access Control Configuration.
    es_public_acl ElasticsearchInstanceEsPublicAclArgs
    Public network access control list.
    instance_name str
    Name of the instance, which can contain 1 to 50 English letters, Chinese characters, digits, dashes(-), or underscores(_).
    kibana_public_access str
    Kibana public network access status. Valid values are OPEN and CLOSE.
    license_type str
    License type. Valid values are oss, basic and platinum. The default value is platinum.
    multi_zone_infos Sequence[ElasticsearchInstanceMultiZoneInfoArgs]
    Details of AZs in multi-AZ deployment mode (which is required when deploy_mode is 1).
    public_access str
    ES cluster public network access status. Valid values are OPEN and CLOSE. Cannot be changed at the same time as es_acl.
    renew_flag str
    When enabled, the instance will be renew automatically when it reach the end of the prepaid tenancy. Valid values are RENEW_FLAG_AUTO and RENEW_FLAG_MANUAL. NOTE: it only works when charge_type is set to PREPAID.
    subnet_id str
    The ID of a VPC subnetwork. When create multi-az es, this parameter must be omitted or -.
    tags Mapping[str, str]
    A mapping of tags to assign to the instance. For tag limits, please refer to Use Limits.
    web_node_type_infos Sequence[ElasticsearchInstanceWebNodeTypeInfoArgs]
    Visual node configuration.
    nodeInfoLists List<Property Map>
    Node information list, which is used to describe the specification information of various types of nodes in the cluster, such as node type, node quantity, node specification, disk type, and disk size.
    password String
    Password to an instance, the password needs to be 8 to 16 characters, including at least two items ([a-z,A-Z], [0-9] and [-!@#$%&^*+=_:;,.?] special symbols.
    version String
    Version of the instance. Valid values are 5.6.4, 6.4.3, 6.8.2, 7.5.1 and 7.10.1.
    vpcId String
    The ID of a VPC network.
    availabilityZone String
    Availability zone. When create multi-az es, this parameter must be omitted or -.
    basicSecurityType Number
    Whether to enable X-Pack security authentication in Basic Edition 6.8 and above. Valid values are 1 and 2. 1 is disabled, 2 is enabled, and default value is 1. Notice: this parameter is only take effect on basic license.
    chargePeriod Number
    The tenancy of the prepaid instance, and uint is month. NOTE: it only works when charge_type is set to PREPAID.
    chargeType String
    The charge type of instance. Valid values are PREPAID and POSTPAID_BY_HOUR.
    cosBackup Property Map
    COS automatic backup information.
    deployMode Number
    Cluster deployment mode. Valid values are 0 and 1. 0 is single-AZ deployment, and 1 is multi-AZ deployment. Default value is 0.
    elasticsearchInstanceId String
    ID of the resource.
    esAcl Property Map
    Kibana Access Control Configuration.
    esPublicAcl Property Map
    Public network access control list.
    instanceName String
    Name of the instance, which can contain 1 to 50 English letters, Chinese characters, digits, dashes(-), or underscores(_).
    kibanaPublicAccess String
    Kibana public network access status. Valid values are OPEN and CLOSE.
    licenseType String
    License type. Valid values are oss, basic and platinum. The default value is platinum.
    multiZoneInfos List<Property Map>
    Details of AZs in multi-AZ deployment mode (which is required when deploy_mode is 1).
    publicAccess String
    ES cluster public network access status. Valid values are OPEN and CLOSE. Cannot be changed at the same time as es_acl.
    renewFlag String
    When enabled, the instance will be renew automatically when it reach the end of the prepaid tenancy. Valid values are RENEW_FLAG_AUTO and RENEW_FLAG_MANUAL. NOTE: it only works when charge_type is set to PREPAID.
    subnetId String
    The ID of a VPC subnetwork. When create multi-az es, this parameter must be omitted or -.
    tags Map<String>
    A mapping of tags to assign to the instance. For tag limits, please refer to Use Limits.
    webNodeTypeInfos List<Property Map>
    Visual node configuration.

    Outputs

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

    CreateTime string
    Instance creation time.
    ElasticsearchDomain string
    Elasticsearch domain name.
    ElasticsearchPort double
    Elasticsearch port.
    ElasticsearchVip string
    Elasticsearch VIP.
    EsPublicUrl string
    Es public network address.
    Id string
    The provider-assigned unique ID for this managed resource.
    KibanaUrl string
    Kibana access URL.
    CreateTime string
    Instance creation time.
    ElasticsearchDomain string
    Elasticsearch domain name.
    ElasticsearchPort float64
    Elasticsearch port.
    ElasticsearchVip string
    Elasticsearch VIP.
    EsPublicUrl string
    Es public network address.
    Id string
    The provider-assigned unique ID for this managed resource.
    KibanaUrl string
    Kibana access URL.
    createTime String
    Instance creation time.
    elasticsearchDomain String
    Elasticsearch domain name.
    elasticsearchPort Double
    Elasticsearch port.
    elasticsearchVip String
    Elasticsearch VIP.
    esPublicUrl String
    Es public network address.
    id String
    The provider-assigned unique ID for this managed resource.
    kibanaUrl String
    Kibana access URL.
    createTime string
    Instance creation time.
    elasticsearchDomain string
    Elasticsearch domain name.
    elasticsearchPort number
    Elasticsearch port.
    elasticsearchVip string
    Elasticsearch VIP.
    esPublicUrl string
    Es public network address.
    id string
    The provider-assigned unique ID for this managed resource.
    kibanaUrl string
    Kibana access URL.
    create_time str
    Instance creation time.
    elasticsearch_domain str
    Elasticsearch domain name.
    elasticsearch_port float
    Elasticsearch port.
    elasticsearch_vip str
    Elasticsearch VIP.
    es_public_url str
    Es public network address.
    id str
    The provider-assigned unique ID for this managed resource.
    kibana_url str
    Kibana access URL.
    createTime String
    Instance creation time.
    elasticsearchDomain String
    Elasticsearch domain name.
    elasticsearchPort Number
    Elasticsearch port.
    elasticsearchVip String
    Elasticsearch VIP.
    esPublicUrl String
    Es public network address.
    id String
    The provider-assigned unique ID for this managed resource.
    kibanaUrl String
    Kibana access URL.

    Look up Existing ElasticsearchInstance Resource

    Get an existing ElasticsearchInstance 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?: ElasticsearchInstanceState, opts?: CustomResourceOptions): ElasticsearchInstance
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            availability_zone: Optional[str] = None,
            basic_security_type: Optional[float] = None,
            charge_period: Optional[float] = None,
            charge_type: Optional[str] = None,
            cos_backup: Optional[ElasticsearchInstanceCosBackupArgs] = None,
            create_time: Optional[str] = None,
            deploy_mode: Optional[float] = None,
            elasticsearch_domain: Optional[str] = None,
            elasticsearch_instance_id: Optional[str] = None,
            elasticsearch_port: Optional[float] = None,
            elasticsearch_vip: Optional[str] = None,
            es_acl: Optional[ElasticsearchInstanceEsAclArgs] = None,
            es_public_acl: Optional[ElasticsearchInstanceEsPublicAclArgs] = None,
            es_public_url: Optional[str] = None,
            instance_name: Optional[str] = None,
            kibana_public_access: Optional[str] = None,
            kibana_url: Optional[str] = None,
            license_type: Optional[str] = None,
            multi_zone_infos: Optional[Sequence[ElasticsearchInstanceMultiZoneInfoArgs]] = None,
            node_info_lists: Optional[Sequence[ElasticsearchInstanceNodeInfoListArgs]] = None,
            password: Optional[str] = None,
            public_access: Optional[str] = None,
            renew_flag: Optional[str] = None,
            subnet_id: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            version: Optional[str] = None,
            vpc_id: Optional[str] = None,
            web_node_type_infos: Optional[Sequence[ElasticsearchInstanceWebNodeTypeInfoArgs]] = None) -> ElasticsearchInstance
    func GetElasticsearchInstance(ctx *Context, name string, id IDInput, state *ElasticsearchInstanceState, opts ...ResourceOption) (*ElasticsearchInstance, error)
    public static ElasticsearchInstance Get(string name, Input<string> id, ElasticsearchInstanceState? state, CustomResourceOptions? opts = null)
    public static ElasticsearchInstance get(String name, Output<String> id, ElasticsearchInstanceState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:ElasticsearchInstance    get:      id: ${id}
    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:
    AvailabilityZone string
    Availability zone. When create multi-az es, this parameter must be omitted or -.
    BasicSecurityType double
    Whether to enable X-Pack security authentication in Basic Edition 6.8 and above. Valid values are 1 and 2. 1 is disabled, 2 is enabled, and default value is 1. Notice: this parameter is only take effect on basic license.
    ChargePeriod double
    The tenancy of the prepaid instance, and uint is month. NOTE: it only works when charge_type is set to PREPAID.
    ChargeType string
    The charge type of instance. Valid values are PREPAID and POSTPAID_BY_HOUR.
    CosBackup ElasticsearchInstanceCosBackup
    COS automatic backup information.
    CreateTime string
    Instance creation time.
    DeployMode double
    Cluster deployment mode. Valid values are 0 and 1. 0 is single-AZ deployment, and 1 is multi-AZ deployment. Default value is 0.
    ElasticsearchDomain string
    Elasticsearch domain name.
    ElasticsearchInstanceId string
    ID of the resource.
    ElasticsearchPort double
    Elasticsearch port.
    ElasticsearchVip string
    Elasticsearch VIP.
    EsAcl ElasticsearchInstanceEsAcl
    Kibana Access Control Configuration.
    EsPublicAcl ElasticsearchInstanceEsPublicAcl
    Public network access control list.
    EsPublicUrl string
    Es public network address.
    InstanceName string
    Name of the instance, which can contain 1 to 50 English letters, Chinese characters, digits, dashes(-), or underscores(_).
    KibanaPublicAccess string
    Kibana public network access status. Valid values are OPEN and CLOSE.
    KibanaUrl string
    Kibana access URL.
    LicenseType string
    License type. Valid values are oss, basic and platinum. The default value is platinum.
    MultiZoneInfos List<ElasticsearchInstanceMultiZoneInfo>
    Details of AZs in multi-AZ deployment mode (which is required when deploy_mode is 1).
    NodeInfoLists List<ElasticsearchInstanceNodeInfoList>
    Node information list, which is used to describe the specification information of various types of nodes in the cluster, such as node type, node quantity, node specification, disk type, and disk size.
    Password string
    Password to an instance, the password needs to be 8 to 16 characters, including at least two items ([a-z,A-Z], [0-9] and [-!@#$%&^*+=_:;,.?] special symbols.
    PublicAccess string
    ES cluster public network access status. Valid values are OPEN and CLOSE. Cannot be changed at the same time as es_acl.
    RenewFlag string
    When enabled, the instance will be renew automatically when it reach the end of the prepaid tenancy. Valid values are RENEW_FLAG_AUTO and RENEW_FLAG_MANUAL. NOTE: it only works when charge_type is set to PREPAID.
    SubnetId string
    The ID of a VPC subnetwork. When create multi-az es, this parameter must be omitted or -.
    Tags Dictionary<string, string>
    A mapping of tags to assign to the instance. For tag limits, please refer to Use Limits.
    Version string
    Version of the instance. Valid values are 5.6.4, 6.4.3, 6.8.2, 7.5.1 and 7.10.1.
    VpcId string
    The ID of a VPC network.
    WebNodeTypeInfos List<ElasticsearchInstanceWebNodeTypeInfo>
    Visual node configuration.
    AvailabilityZone string
    Availability zone. When create multi-az es, this parameter must be omitted or -.
    BasicSecurityType float64
    Whether to enable X-Pack security authentication in Basic Edition 6.8 and above. Valid values are 1 and 2. 1 is disabled, 2 is enabled, and default value is 1. Notice: this parameter is only take effect on basic license.
    ChargePeriod float64
    The tenancy of the prepaid instance, and uint is month. NOTE: it only works when charge_type is set to PREPAID.
    ChargeType string
    The charge type of instance. Valid values are PREPAID and POSTPAID_BY_HOUR.
    CosBackup ElasticsearchInstanceCosBackupArgs
    COS automatic backup information.
    CreateTime string
    Instance creation time.
    DeployMode float64
    Cluster deployment mode. Valid values are 0 and 1. 0 is single-AZ deployment, and 1 is multi-AZ deployment. Default value is 0.
    ElasticsearchDomain string
    Elasticsearch domain name.
    ElasticsearchInstanceId string
    ID of the resource.
    ElasticsearchPort float64
    Elasticsearch port.
    ElasticsearchVip string
    Elasticsearch VIP.
    EsAcl ElasticsearchInstanceEsAclArgs
    Kibana Access Control Configuration.
    EsPublicAcl ElasticsearchInstanceEsPublicAclArgs
    Public network access control list.
    EsPublicUrl string
    Es public network address.
    InstanceName string
    Name of the instance, which can contain 1 to 50 English letters, Chinese characters, digits, dashes(-), or underscores(_).
    KibanaPublicAccess string
    Kibana public network access status. Valid values are OPEN and CLOSE.
    KibanaUrl string
    Kibana access URL.
    LicenseType string
    License type. Valid values are oss, basic and platinum. The default value is platinum.
    MultiZoneInfos []ElasticsearchInstanceMultiZoneInfoArgs
    Details of AZs in multi-AZ deployment mode (which is required when deploy_mode is 1).
    NodeInfoLists []ElasticsearchInstanceNodeInfoListArgs
    Node information list, which is used to describe the specification information of various types of nodes in the cluster, such as node type, node quantity, node specification, disk type, and disk size.
    Password string
    Password to an instance, the password needs to be 8 to 16 characters, including at least two items ([a-z,A-Z], [0-9] and [-!@#$%&^*+=_:;,.?] special symbols.
    PublicAccess string
    ES cluster public network access status. Valid values are OPEN and CLOSE. Cannot be changed at the same time as es_acl.
    RenewFlag string
    When enabled, the instance will be renew automatically when it reach the end of the prepaid tenancy. Valid values are RENEW_FLAG_AUTO and RENEW_FLAG_MANUAL. NOTE: it only works when charge_type is set to PREPAID.
    SubnetId string
    The ID of a VPC subnetwork. When create multi-az es, this parameter must be omitted or -.
    Tags map[string]string
    A mapping of tags to assign to the instance. For tag limits, please refer to Use Limits.
    Version string
    Version of the instance. Valid values are 5.6.4, 6.4.3, 6.8.2, 7.5.1 and 7.10.1.
    VpcId string
    The ID of a VPC network.
    WebNodeTypeInfos []ElasticsearchInstanceWebNodeTypeInfoArgs
    Visual node configuration.
    availabilityZone String
    Availability zone. When create multi-az es, this parameter must be omitted or -.
    basicSecurityType Double
    Whether to enable X-Pack security authentication in Basic Edition 6.8 and above. Valid values are 1 and 2. 1 is disabled, 2 is enabled, and default value is 1. Notice: this parameter is only take effect on basic license.
    chargePeriod Double
    The tenancy of the prepaid instance, and uint is month. NOTE: it only works when charge_type is set to PREPAID.
    chargeType String
    The charge type of instance. Valid values are PREPAID and POSTPAID_BY_HOUR.
    cosBackup ElasticsearchInstanceCosBackup
    COS automatic backup information.
    createTime String
    Instance creation time.
    deployMode Double
    Cluster deployment mode. Valid values are 0 and 1. 0 is single-AZ deployment, and 1 is multi-AZ deployment. Default value is 0.
    elasticsearchDomain String
    Elasticsearch domain name.
    elasticsearchInstanceId String
    ID of the resource.
    elasticsearchPort Double
    Elasticsearch port.
    elasticsearchVip String
    Elasticsearch VIP.
    esAcl ElasticsearchInstanceEsAcl
    Kibana Access Control Configuration.
    esPublicAcl ElasticsearchInstanceEsPublicAcl
    Public network access control list.
    esPublicUrl String
    Es public network address.
    instanceName String
    Name of the instance, which can contain 1 to 50 English letters, Chinese characters, digits, dashes(-), or underscores(_).
    kibanaPublicAccess String
    Kibana public network access status. Valid values are OPEN and CLOSE.
    kibanaUrl String
    Kibana access URL.
    licenseType String
    License type. Valid values are oss, basic and platinum. The default value is platinum.
    multiZoneInfos List<ElasticsearchInstanceMultiZoneInfo>
    Details of AZs in multi-AZ deployment mode (which is required when deploy_mode is 1).
    nodeInfoLists List<ElasticsearchInstanceNodeInfoList>
    Node information list, which is used to describe the specification information of various types of nodes in the cluster, such as node type, node quantity, node specification, disk type, and disk size.
    password String
    Password to an instance, the password needs to be 8 to 16 characters, including at least two items ([a-z,A-Z], [0-9] and [-!@#$%&^*+=_:;,.?] special symbols.
    publicAccess String
    ES cluster public network access status. Valid values are OPEN and CLOSE. Cannot be changed at the same time as es_acl.
    renewFlag String
    When enabled, the instance will be renew automatically when it reach the end of the prepaid tenancy. Valid values are RENEW_FLAG_AUTO and RENEW_FLAG_MANUAL. NOTE: it only works when charge_type is set to PREPAID.
    subnetId String
    The ID of a VPC subnetwork. When create multi-az es, this parameter must be omitted or -.
    tags Map<String,String>
    A mapping of tags to assign to the instance. For tag limits, please refer to Use Limits.
    version String
    Version of the instance. Valid values are 5.6.4, 6.4.3, 6.8.2, 7.5.1 and 7.10.1.
    vpcId String
    The ID of a VPC network.
    webNodeTypeInfos List<ElasticsearchInstanceWebNodeTypeInfo>
    Visual node configuration.
    availabilityZone string
    Availability zone. When create multi-az es, this parameter must be omitted or -.
    basicSecurityType number
    Whether to enable X-Pack security authentication in Basic Edition 6.8 and above. Valid values are 1 and 2. 1 is disabled, 2 is enabled, and default value is 1. Notice: this parameter is only take effect on basic license.
    chargePeriod number
    The tenancy of the prepaid instance, and uint is month. NOTE: it only works when charge_type is set to PREPAID.
    chargeType string
    The charge type of instance. Valid values are PREPAID and POSTPAID_BY_HOUR.
    cosBackup ElasticsearchInstanceCosBackup
    COS automatic backup information.
    createTime string
    Instance creation time.
    deployMode number
    Cluster deployment mode. Valid values are 0 and 1. 0 is single-AZ deployment, and 1 is multi-AZ deployment. Default value is 0.
    elasticsearchDomain string
    Elasticsearch domain name.
    elasticsearchInstanceId string
    ID of the resource.
    elasticsearchPort number
    Elasticsearch port.
    elasticsearchVip string
    Elasticsearch VIP.
    esAcl ElasticsearchInstanceEsAcl
    Kibana Access Control Configuration.
    esPublicAcl ElasticsearchInstanceEsPublicAcl
    Public network access control list.
    esPublicUrl string
    Es public network address.
    instanceName string
    Name of the instance, which can contain 1 to 50 English letters, Chinese characters, digits, dashes(-), or underscores(_).
    kibanaPublicAccess string
    Kibana public network access status. Valid values are OPEN and CLOSE.
    kibanaUrl string
    Kibana access URL.
    licenseType string
    License type. Valid values are oss, basic and platinum. The default value is platinum.
    multiZoneInfos ElasticsearchInstanceMultiZoneInfo[]
    Details of AZs in multi-AZ deployment mode (which is required when deploy_mode is 1).
    nodeInfoLists ElasticsearchInstanceNodeInfoList[]
    Node information list, which is used to describe the specification information of various types of nodes in the cluster, such as node type, node quantity, node specification, disk type, and disk size.
    password string
    Password to an instance, the password needs to be 8 to 16 characters, including at least two items ([a-z,A-Z], [0-9] and [-!@#$%&^*+=_:;,.?] special symbols.
    publicAccess string
    ES cluster public network access status. Valid values are OPEN and CLOSE. Cannot be changed at the same time as es_acl.
    renewFlag string
    When enabled, the instance will be renew automatically when it reach the end of the prepaid tenancy. Valid values are RENEW_FLAG_AUTO and RENEW_FLAG_MANUAL. NOTE: it only works when charge_type is set to PREPAID.
    subnetId string
    The ID of a VPC subnetwork. When create multi-az es, this parameter must be omitted or -.
    tags {[key: string]: string}
    A mapping of tags to assign to the instance. For tag limits, please refer to Use Limits.
    version string
    Version of the instance. Valid values are 5.6.4, 6.4.3, 6.8.2, 7.5.1 and 7.10.1.
    vpcId string
    The ID of a VPC network.
    webNodeTypeInfos ElasticsearchInstanceWebNodeTypeInfo[]
    Visual node configuration.
    availability_zone str
    Availability zone. When create multi-az es, this parameter must be omitted or -.
    basic_security_type float
    Whether to enable X-Pack security authentication in Basic Edition 6.8 and above. Valid values are 1 and 2. 1 is disabled, 2 is enabled, and default value is 1. Notice: this parameter is only take effect on basic license.
    charge_period float
    The tenancy of the prepaid instance, and uint is month. NOTE: it only works when charge_type is set to PREPAID.
    charge_type str
    The charge type of instance. Valid values are PREPAID and POSTPAID_BY_HOUR.
    cos_backup ElasticsearchInstanceCosBackupArgs
    COS automatic backup information.
    create_time str
    Instance creation time.
    deploy_mode float
    Cluster deployment mode. Valid values are 0 and 1. 0 is single-AZ deployment, and 1 is multi-AZ deployment. Default value is 0.
    elasticsearch_domain str
    Elasticsearch domain name.
    elasticsearch_instance_id str
    ID of the resource.
    elasticsearch_port float
    Elasticsearch port.
    elasticsearch_vip str
    Elasticsearch VIP.
    es_acl ElasticsearchInstanceEsAclArgs
    Kibana Access Control Configuration.
    es_public_acl ElasticsearchInstanceEsPublicAclArgs
    Public network access control list.
    es_public_url str
    Es public network address.
    instance_name str
    Name of the instance, which can contain 1 to 50 English letters, Chinese characters, digits, dashes(-), or underscores(_).
    kibana_public_access str
    Kibana public network access status. Valid values are OPEN and CLOSE.
    kibana_url str
    Kibana access URL.
    license_type str
    License type. Valid values are oss, basic and platinum. The default value is platinum.
    multi_zone_infos Sequence[ElasticsearchInstanceMultiZoneInfoArgs]
    Details of AZs in multi-AZ deployment mode (which is required when deploy_mode is 1).
    node_info_lists Sequence[ElasticsearchInstanceNodeInfoListArgs]
    Node information list, which is used to describe the specification information of various types of nodes in the cluster, such as node type, node quantity, node specification, disk type, and disk size.
    password str
    Password to an instance, the password needs to be 8 to 16 characters, including at least two items ([a-z,A-Z], [0-9] and [-!@#$%&^*+=_:;,.?] special symbols.
    public_access str
    ES cluster public network access status. Valid values are OPEN and CLOSE. Cannot be changed at the same time as es_acl.
    renew_flag str
    When enabled, the instance will be renew automatically when it reach the end of the prepaid tenancy. Valid values are RENEW_FLAG_AUTO and RENEW_FLAG_MANUAL. NOTE: it only works when charge_type is set to PREPAID.
    subnet_id str
    The ID of a VPC subnetwork. When create multi-az es, this parameter must be omitted or -.
    tags Mapping[str, str]
    A mapping of tags to assign to the instance. For tag limits, please refer to Use Limits.
    version str
    Version of the instance. Valid values are 5.6.4, 6.4.3, 6.8.2, 7.5.1 and 7.10.1.
    vpc_id str
    The ID of a VPC network.
    web_node_type_infos Sequence[ElasticsearchInstanceWebNodeTypeInfoArgs]
    Visual node configuration.
    availabilityZone String
    Availability zone. When create multi-az es, this parameter must be omitted or -.
    basicSecurityType Number
    Whether to enable X-Pack security authentication in Basic Edition 6.8 and above. Valid values are 1 and 2. 1 is disabled, 2 is enabled, and default value is 1. Notice: this parameter is only take effect on basic license.
    chargePeriod Number
    The tenancy of the prepaid instance, and uint is month. NOTE: it only works when charge_type is set to PREPAID.
    chargeType String
    The charge type of instance. Valid values are PREPAID and POSTPAID_BY_HOUR.
    cosBackup Property Map
    COS automatic backup information.
    createTime String
    Instance creation time.
    deployMode Number
    Cluster deployment mode. Valid values are 0 and 1. 0 is single-AZ deployment, and 1 is multi-AZ deployment. Default value is 0.
    elasticsearchDomain String
    Elasticsearch domain name.
    elasticsearchInstanceId String
    ID of the resource.
    elasticsearchPort Number
    Elasticsearch port.
    elasticsearchVip String
    Elasticsearch VIP.
    esAcl Property Map
    Kibana Access Control Configuration.
    esPublicAcl Property Map
    Public network access control list.
    esPublicUrl String
    Es public network address.
    instanceName String
    Name of the instance, which can contain 1 to 50 English letters, Chinese characters, digits, dashes(-), or underscores(_).
    kibanaPublicAccess String
    Kibana public network access status. Valid values are OPEN and CLOSE.
    kibanaUrl String
    Kibana access URL.
    licenseType String
    License type. Valid values are oss, basic and platinum. The default value is platinum.
    multiZoneInfos List<Property Map>
    Details of AZs in multi-AZ deployment mode (which is required when deploy_mode is 1).
    nodeInfoLists List<Property Map>
    Node information list, which is used to describe the specification information of various types of nodes in the cluster, such as node type, node quantity, node specification, disk type, and disk size.
    password String
    Password to an instance, the password needs to be 8 to 16 characters, including at least two items ([a-z,A-Z], [0-9] and [-!@#$%&^*+=_:;,.?] special symbols.
    publicAccess String
    ES cluster public network access status. Valid values are OPEN and CLOSE. Cannot be changed at the same time as es_acl.
    renewFlag String
    When enabled, the instance will be renew automatically when it reach the end of the prepaid tenancy. Valid values are RENEW_FLAG_AUTO and RENEW_FLAG_MANUAL. NOTE: it only works when charge_type is set to PREPAID.
    subnetId String
    The ID of a VPC subnetwork. When create multi-az es, this parameter must be omitted or -.
    tags Map<String>
    A mapping of tags to assign to the instance. For tag limits, please refer to Use Limits.
    version String
    Version of the instance. Valid values are 5.6.4, 6.4.3, 6.8.2, 7.5.1 and 7.10.1.
    vpcId String
    The ID of a VPC network.
    webNodeTypeInfos List<Property Map>
    Visual node configuration.

    Supporting Types

    ElasticsearchInstanceCosBackup, ElasticsearchInstanceCosBackupArgs

    BackupTime string
    Automatic backup execution time (accurate to the hour), e.g. 22:00.
    IsAutoBackup bool
    Whether to enable automatic backup of cos.
    BackupTime string
    Automatic backup execution time (accurate to the hour), e.g. 22:00.
    IsAutoBackup bool
    Whether to enable automatic backup of cos.
    backupTime String
    Automatic backup execution time (accurate to the hour), e.g. 22:00.
    isAutoBackup Boolean
    Whether to enable automatic backup of cos.
    backupTime string
    Automatic backup execution time (accurate to the hour), e.g. 22:00.
    isAutoBackup boolean
    Whether to enable automatic backup of cos.
    backup_time str
    Automatic backup execution time (accurate to the hour), e.g. 22:00.
    is_auto_backup bool
    Whether to enable automatic backup of cos.
    backupTime String
    Automatic backup execution time (accurate to the hour), e.g. 22:00.
    isAutoBackup Boolean
    Whether to enable automatic backup of cos.

    ElasticsearchInstanceEsAcl, ElasticsearchInstanceEsAclArgs

    BlackLists List<string>
    Blacklist of kibana access.
    WhiteLists List<string>
    Whitelist of kibana access.
    BlackLists []string
    Blacklist of kibana access.
    WhiteLists []string
    Whitelist of kibana access.
    blackLists List<String>
    Blacklist of kibana access.
    whiteLists List<String>
    Whitelist of kibana access.
    blackLists string[]
    Blacklist of kibana access.
    whiteLists string[]
    Whitelist of kibana access.
    black_lists Sequence[str]
    Blacklist of kibana access.
    white_lists Sequence[str]
    Whitelist of kibana access.
    blackLists List<String>
    Blacklist of kibana access.
    whiteLists List<String>
    Whitelist of kibana access.

    ElasticsearchInstanceEsPublicAcl, ElasticsearchInstanceEsPublicAclArgs

    WhiteIpLists List<string>
    Access Whitelist.
    WhiteIpLists []string
    Access Whitelist.
    whiteIpLists List<String>
    Access Whitelist.
    whiteIpLists string[]
    Access Whitelist.
    white_ip_lists Sequence[str]
    Access Whitelist.
    whiteIpLists List<String>
    Access Whitelist.

    ElasticsearchInstanceMultiZoneInfo, ElasticsearchInstanceMultiZoneInfoArgs

    AvailabilityZone string
    Availability zone.
    SubnetId string
    The ID of a VPC subnetwork.
    AvailabilityZone string
    Availability zone.
    SubnetId string
    The ID of a VPC subnetwork.
    availabilityZone String
    Availability zone.
    subnetId String
    The ID of a VPC subnetwork.
    availabilityZone string
    Availability zone.
    subnetId string
    The ID of a VPC subnetwork.
    availability_zone str
    Availability zone.
    subnet_id str
    The ID of a VPC subnetwork.
    availabilityZone String
    Availability zone.
    subnetId String
    The ID of a VPC subnetwork.

    ElasticsearchInstanceNodeInfoList, ElasticsearchInstanceNodeInfoListArgs

    NodeNum double
    Number of nodes.
    NodeType string
    Node specification, and valid values refer to document of tencentcloud.
    DiskSize double
    Node disk size. Unit is GB, and default value is 100.
    DiskType string
    Node disk type. Valid values are CLOUD_SSD, CLOUD_PREMIUM, CLOUD_HSSD, CLOUD_BSSD, CLOUD_BIGDATA and CLOUD_HIGHIO. The default value is CLOUD_SSD.
    Encrypt bool
    Decides to encrypt this disk or not.
    Type string
    Node type. Valid values are hotData, warmData and dedicatedMaster. The default value is 'hotData`.
    NodeNum float64
    Number of nodes.
    NodeType string
    Node specification, and valid values refer to document of tencentcloud.
    DiskSize float64
    Node disk size. Unit is GB, and default value is 100.
    DiskType string
    Node disk type. Valid values are CLOUD_SSD, CLOUD_PREMIUM, CLOUD_HSSD, CLOUD_BSSD, CLOUD_BIGDATA and CLOUD_HIGHIO. The default value is CLOUD_SSD.
    Encrypt bool
    Decides to encrypt this disk or not.
    Type string
    Node type. Valid values are hotData, warmData and dedicatedMaster. The default value is 'hotData`.
    nodeNum Double
    Number of nodes.
    nodeType String
    Node specification, and valid values refer to document of tencentcloud.
    diskSize Double
    Node disk size. Unit is GB, and default value is 100.
    diskType String
    Node disk type. Valid values are CLOUD_SSD, CLOUD_PREMIUM, CLOUD_HSSD, CLOUD_BSSD, CLOUD_BIGDATA and CLOUD_HIGHIO. The default value is CLOUD_SSD.
    encrypt Boolean
    Decides to encrypt this disk or not.
    type String
    Node type. Valid values are hotData, warmData and dedicatedMaster. The default value is 'hotData`.
    nodeNum number
    Number of nodes.
    nodeType string
    Node specification, and valid values refer to document of tencentcloud.
    diskSize number
    Node disk size. Unit is GB, and default value is 100.
    diskType string
    Node disk type. Valid values are CLOUD_SSD, CLOUD_PREMIUM, CLOUD_HSSD, CLOUD_BSSD, CLOUD_BIGDATA and CLOUD_HIGHIO. The default value is CLOUD_SSD.
    encrypt boolean
    Decides to encrypt this disk or not.
    type string
    Node type. Valid values are hotData, warmData and dedicatedMaster. The default value is 'hotData`.
    node_num float
    Number of nodes.
    node_type str
    Node specification, and valid values refer to document of tencentcloud.
    disk_size float
    Node disk size. Unit is GB, and default value is 100.
    disk_type str
    Node disk type. Valid values are CLOUD_SSD, CLOUD_PREMIUM, CLOUD_HSSD, CLOUD_BSSD, CLOUD_BIGDATA and CLOUD_HIGHIO. The default value is CLOUD_SSD.
    encrypt bool
    Decides to encrypt this disk or not.
    type str
    Node type. Valid values are hotData, warmData and dedicatedMaster. The default value is 'hotData`.
    nodeNum Number
    Number of nodes.
    nodeType String
    Node specification, and valid values refer to document of tencentcloud.
    diskSize Number
    Node disk size. Unit is GB, and default value is 100.
    diskType String
    Node disk type. Valid values are CLOUD_SSD, CLOUD_PREMIUM, CLOUD_HSSD, CLOUD_BSSD, CLOUD_BIGDATA and CLOUD_HIGHIO. The default value is CLOUD_SSD.
    encrypt Boolean
    Decides to encrypt this disk or not.
    type String
    Node type. Valid values are hotData, warmData and dedicatedMaster. The default value is 'hotData`.

    ElasticsearchInstanceWebNodeTypeInfo, ElasticsearchInstanceWebNodeTypeInfoArgs

    NodeNum double
    Visual node number.
    NodeType string
    Visual node specifications.
    NodeNum float64
    Visual node number.
    NodeType string
    Visual node specifications.
    nodeNum Double
    Visual node number.
    nodeType String
    Visual node specifications.
    nodeNum number
    Visual node number.
    nodeType string
    Visual node specifications.
    node_num float
    Visual node number.
    node_type str
    Visual node specifications.
    nodeNum Number
    Visual node number.
    nodeType String
    Visual node specifications.

    Import

    Elasticsearch instance can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/elasticsearchInstance:ElasticsearchInstance foo es-17634f05
    

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

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack