1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. DcsInstanceV1
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.DcsInstanceV1

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    Manages a DCS instance in the flexibleengine DCS Service.

    Example Usage

    DCS instance for Redis 5.0

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const config = new pulumi.Config();
    const myPassword = config.requireObject("myPassword");
    const exampleVpc = new flexibleengine.VpcV1("exampleVpc", {cidr: "192.168.0.0/16"});
    const exampleSubnet = new flexibleengine.VpcSubnetV1("exampleSubnet", {
        cidr: "192.168.0.0/24",
        gatewayIp: "192.168.0.1",
        vpcId: exampleVpc.vpcV1Id,
    });
    const product1 = flexibleengine.getDcsProductV1({
        engine: "redis",
        engineVersion: "4.0;5.0",
        cacheMode: "cluster",
        capacity: 8,
        replicaCount: 2,
    });
    const instance1 = new flexibleengine.DcsInstanceV1("instance1", {
        engine: "Redis",
        engineVersion: "5.0",
        password: myPassword,
        productId: product1.then(product1 => product1.id),
        capacity: 8,
        vpcId: exampleVpc.vpcV1Id,
        networkId: exampleSubnet.vpcSubnetV1Id,
        availableZones: [
            "eu-west-0a",
            "eu-west-0b",
        ],
        saveDays: 1,
        backupType: "manual",
        beginAt: "00:00-01:00",
        periodType: "weekly",
        backupAts: [1],
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    config = pulumi.Config()
    my_password = config.require_object("myPassword")
    example_vpc = flexibleengine.VpcV1("exampleVpc", cidr="192.168.0.0/16")
    example_subnet = flexibleengine.VpcSubnetV1("exampleSubnet",
        cidr="192.168.0.0/24",
        gateway_ip="192.168.0.1",
        vpc_id=example_vpc.vpc_v1_id)
    product1 = flexibleengine.get_dcs_product_v1(engine="redis",
        engine_version="4.0;5.0",
        cache_mode="cluster",
        capacity=8,
        replica_count=2)
    instance1 = flexibleengine.DcsInstanceV1("instance1",
        engine="Redis",
        engine_version="5.0",
        password=my_password,
        product_id=product1.id,
        capacity=8,
        vpc_id=example_vpc.vpc_v1_id,
        network_id=example_subnet.vpc_subnet_v1_id,
        available_zones=[
            "eu-west-0a",
            "eu-west-0b",
        ],
        save_days=1,
        backup_type="manual",
        begin_at="00:00-01:00",
        period_type="weekly",
        backup_ats=[1])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		myPassword := cfg.RequireObject("myPassword")
    		exampleVpc, err := flexibleengine.NewVpcV1(ctx, "exampleVpc", &flexibleengine.VpcV1Args{
    			Cidr: pulumi.String("192.168.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleSubnet, err := flexibleengine.NewVpcSubnetV1(ctx, "exampleSubnet", &flexibleengine.VpcSubnetV1Args{
    			Cidr:      pulumi.String("192.168.0.0/24"),
    			GatewayIp: pulumi.String("192.168.0.1"),
    			VpcId:     exampleVpc.VpcV1Id,
    		})
    		if err != nil {
    			return err
    		}
    		product1, err := flexibleengine.GetDcsProductV1(ctx, &flexibleengine.GetDcsProductV1Args{
    			Engine:        pulumi.StringRef("redis"),
    			EngineVersion: pulumi.StringRef("4.0;5.0"),
    			CacheMode:     pulumi.StringRef("cluster"),
    			Capacity:      pulumi.Float64Ref(8),
    			ReplicaCount:  pulumi.Float64Ref(2),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = flexibleengine.NewDcsInstanceV1(ctx, "instance1", &flexibleengine.DcsInstanceV1Args{
    			Engine:        pulumi.String("Redis"),
    			EngineVersion: pulumi.String("5.0"),
    			Password:      pulumi.Any(myPassword),
    			ProductId:     pulumi.String(product1.Id),
    			Capacity:      pulumi.Float64(8),
    			VpcId:         exampleVpc.VpcV1Id,
    			NetworkId:     exampleSubnet.VpcSubnetV1Id,
    			AvailableZones: pulumi.StringArray{
    				pulumi.String("eu-west-0a"),
    				pulumi.String("eu-west-0b"),
    			},
    			SaveDays:   pulumi.Float64(1),
    			BackupType: pulumi.String("manual"),
    			BeginAt:    pulumi.String("00:00-01:00"),
    			PeriodType: pulumi.String("weekly"),
    			BackupAts: pulumi.Float64Array{
    				pulumi.Float64(1),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var myPassword = config.RequireObject<dynamic>("myPassword");
        var exampleVpc = new Flexibleengine.VpcV1("exampleVpc", new()
        {
            Cidr = "192.168.0.0/16",
        });
    
        var exampleSubnet = new Flexibleengine.VpcSubnetV1("exampleSubnet", new()
        {
            Cidr = "192.168.0.0/24",
            GatewayIp = "192.168.0.1",
            VpcId = exampleVpc.VpcV1Id,
        });
    
        var product1 = Flexibleengine.GetDcsProductV1.Invoke(new()
        {
            Engine = "redis",
            EngineVersion = "4.0;5.0",
            CacheMode = "cluster",
            Capacity = 8,
            ReplicaCount = 2,
        });
    
        var instance1 = new Flexibleengine.DcsInstanceV1("instance1", new()
        {
            Engine = "Redis",
            EngineVersion = "5.0",
            Password = myPassword,
            ProductId = product1.Apply(getDcsProductV1Result => getDcsProductV1Result.Id),
            Capacity = 8,
            VpcId = exampleVpc.VpcV1Id,
            NetworkId = exampleSubnet.VpcSubnetV1Id,
            AvailableZones = new[]
            {
                "eu-west-0a",
                "eu-west-0b",
            },
            SaveDays = 1,
            BackupType = "manual",
            BeginAt = "00:00-01:00",
            PeriodType = "weekly",
            BackupAts = new[]
            {
                1,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.VpcV1;
    import com.pulumi.flexibleengine.VpcV1Args;
    import com.pulumi.flexibleengine.VpcSubnetV1;
    import com.pulumi.flexibleengine.VpcSubnetV1Args;
    import com.pulumi.flexibleengine.FlexibleengineFunctions;
    import com.pulumi.flexibleengine.inputs.GetDcsProductV1Args;
    import com.pulumi.flexibleengine.DcsInstanceV1;
    import com.pulumi.flexibleengine.DcsInstanceV1Args;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var config = ctx.config();
            final var myPassword = config.get("myPassword");
            var exampleVpc = new VpcV1("exampleVpc", VpcV1Args.builder()
                .cidr("192.168.0.0/16")
                .build());
    
            var exampleSubnet = new VpcSubnetV1("exampleSubnet", VpcSubnetV1Args.builder()
                .cidr("192.168.0.0/24")
                .gatewayIp("192.168.0.1")
                .vpcId(exampleVpc.vpcV1Id())
                .build());
    
            final var product1 = FlexibleengineFunctions.getDcsProductV1(GetDcsProductV1Args.builder()
                .engine("redis")
                .engineVersion("4.0;5.0")
                .cacheMode("cluster")
                .capacity(8)
                .replicaCount(2)
                .build());
    
            var instance1 = new DcsInstanceV1("instance1", DcsInstanceV1Args.builder()
                .engine("Redis")
                .engineVersion("5.0")
                .password(myPassword)
                .productId(product1.applyValue(getDcsProductV1Result -> getDcsProductV1Result.id()))
                .capacity(8)
                .vpcId(exampleVpc.vpcV1Id())
                .networkId(exampleSubnet.vpcSubnetV1Id())
                .availableZones(            
                    "eu-west-0a",
                    "eu-west-0b")
                .saveDays(1)
                .backupType("manual")
                .beginAt("00:00-01:00")
                .periodType("weekly")
                .backupAts(1)
                .build());
    
        }
    }
    
    configuration:
      myPassword:
        type: dynamic
    resources:
      exampleVpc:
        type: flexibleengine:VpcV1
        properties:
          cidr: 192.168.0.0/16
      exampleSubnet:
        type: flexibleengine:VpcSubnetV1
        properties:
          cidr: 192.168.0.0/24
          gatewayIp: 192.168.0.1
          vpcId: ${exampleVpc.vpcV1Id}
      instance1:
        type: flexibleengine:DcsInstanceV1
        properties:
          engine: Redis
          engineVersion: '5.0'
          password: ${myPassword}
          productId: ${product1.id}
          capacity: 8
          vpcId: ${exampleVpc.vpcV1Id}
          networkId: ${exampleSubnet.vpcSubnetV1Id}
          availableZones:
            - eu-west-0a
            - eu-west-0b
          saveDays: 1
          backupType: manual
          beginAt: 00:00-01:00
          periodType: weekly
          backupAts:
            - 1
    variables:
      product1:
        fn::invoke:
          function: flexibleengine:getDcsProductV1
          arguments:
            engine: redis
            engineVersion: 4.0;5.0
            cacheMode: cluster
            capacity: 8
            replicaCount: 2
    

    DCS instance for Redis 3.0

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const config = new pulumi.Config();
    const myPassword = config.requireObject("myPassword");
    const vpcId = config.requireObject("vpcId");
    const networkId = config.requireObject("networkId");
    const exampleSecgroup = new flexibleengine.NetworkingSecgroupV2("exampleSecgroup", {});
    const instance1 = new flexibleengine.DcsInstanceV1("instance1", {
        engine: "Redis",
        engineVersion: "3.0",
        password: myPassword,
        productId: "dcs.master_standby-h",
        capacity: 2,
        vpcId: flexibleengine_vpc_v1.example_vpc.id,
        networkId: flexibleengine_vpc_subnet_v1.example_subnet.id,
        securityGroupId: exampleSecgroup.networkingSecgroupV2Id,
        availableZones: ["eu-west-0a"],
        saveDays: 1,
        backupType: "manual",
        beginAt: "00:00-01:00",
        periodType: "weekly",
        backupAts: [1],
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    config = pulumi.Config()
    my_password = config.require_object("myPassword")
    vpc_id = config.require_object("vpcId")
    network_id = config.require_object("networkId")
    example_secgroup = flexibleengine.NetworkingSecgroupV2("exampleSecgroup")
    instance1 = flexibleengine.DcsInstanceV1("instance1",
        engine="Redis",
        engine_version="3.0",
        password=my_password,
        product_id="dcs.master_standby-h",
        capacity=2,
        vpc_id=flexibleengine_vpc_v1["example_vpc"]["id"],
        network_id=flexibleengine_vpc_subnet_v1["example_subnet"]["id"],
        security_group_id=example_secgroup.networking_secgroup_v2_id,
        available_zones=["eu-west-0a"],
        save_days=1,
        backup_type="manual",
        begin_at="00:00-01:00",
        period_type="weekly",
        backup_ats=[1])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		myPassword := cfg.RequireObject("myPassword")
    		vpcId := cfg.RequireObject("vpcId")
    		networkId := cfg.RequireObject("networkId")
    		exampleSecgroup, err := flexibleengine.NewNetworkingSecgroupV2(ctx, "exampleSecgroup", nil)
    		if err != nil {
    			return err
    		}
    		_, err = flexibleengine.NewDcsInstanceV1(ctx, "instance1", &flexibleengine.DcsInstanceV1Args{
    			Engine:          pulumi.String("Redis"),
    			EngineVersion:   pulumi.String("3.0"),
    			Password:        pulumi.Any(myPassword),
    			ProductId:       pulumi.String("dcs.master_standby-h"),
    			Capacity:        pulumi.Float64(2),
    			VpcId:           pulumi.Any(flexibleengine_vpc_v1.Example_vpc.Id),
    			NetworkId:       pulumi.Any(flexibleengine_vpc_subnet_v1.Example_subnet.Id),
    			SecurityGroupId: exampleSecgroup.NetworkingSecgroupV2Id,
    			AvailableZones: pulumi.StringArray{
    				pulumi.String("eu-west-0a"),
    			},
    			SaveDays:   pulumi.Float64(1),
    			BackupType: pulumi.String("manual"),
    			BeginAt:    pulumi.String("00:00-01:00"),
    			PeriodType: pulumi.String("weekly"),
    			BackupAts: pulumi.Float64Array{
    				pulumi.Float64(1),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var myPassword = config.RequireObject<dynamic>("myPassword");
        var vpcId = config.RequireObject<dynamic>("vpcId");
        var networkId = config.RequireObject<dynamic>("networkId");
        var exampleSecgroup = new Flexibleengine.NetworkingSecgroupV2("exampleSecgroup");
    
        var instance1 = new Flexibleengine.DcsInstanceV1("instance1", new()
        {
            Engine = "Redis",
            EngineVersion = "3.0",
            Password = myPassword,
            ProductId = "dcs.master_standby-h",
            Capacity = 2,
            VpcId = flexibleengine_vpc_v1.Example_vpc.Id,
            NetworkId = flexibleengine_vpc_subnet_v1.Example_subnet.Id,
            SecurityGroupId = exampleSecgroup.NetworkingSecgroupV2Id,
            AvailableZones = new[]
            {
                "eu-west-0a",
            },
            SaveDays = 1,
            BackupType = "manual",
            BeginAt = "00:00-01:00",
            PeriodType = "weekly",
            BackupAts = new[]
            {
                1,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.NetworkingSecgroupV2;
    import com.pulumi.flexibleengine.DcsInstanceV1;
    import com.pulumi.flexibleengine.DcsInstanceV1Args;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var config = ctx.config();
            final var myPassword = config.get("myPassword");
            final var vpcId = config.get("vpcId");
            final var networkId = config.get("networkId");
            var exampleSecgroup = new NetworkingSecgroupV2("exampleSecgroup");
    
            var instance1 = new DcsInstanceV1("instance1", DcsInstanceV1Args.builder()
                .engine("Redis")
                .engineVersion("3.0")
                .password(myPassword)
                .productId("dcs.master_standby-h")
                .capacity(2)
                .vpcId(flexibleengine_vpc_v1.example_vpc().id())
                .networkId(flexibleengine_vpc_subnet_v1.example_subnet().id())
                .securityGroupId(exampleSecgroup.networkingSecgroupV2Id())
                .availableZones("eu-west-0a")
                .saveDays(1)
                .backupType("manual")
                .beginAt("00:00-01:00")
                .periodType("weekly")
                .backupAts(1)
                .build());
    
        }
    }
    
    configuration:
      myPassword:
        type: dynamic
      vpcId:
        type: dynamic
      networkId:
        type: dynamic
    resources:
      exampleSecgroup:
        type: flexibleengine:NetworkingSecgroupV2
      instance1:
        type: flexibleengine:DcsInstanceV1
        properties:
          engine: Redis
          engineVersion: '3.0'
          password: ${myPassword}
          productId: dcs.master_standby-h
          capacity: 2
          vpcId: ${flexibleengine_vpc_v1.example_vpc.id}
          networkId: ${flexibleengine_vpc_subnet_v1.example_subnet.id}
          securityGroupId: ${exampleSecgroup.networkingSecgroupV2Id}
          availableZones:
            - eu-west-0a
          saveDays: 1
          backupType: manual
          beginAt: 00:00-01:00
          periodType: weekly
          backupAts:
            - 1
    

    DCS instance for Memcached

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const config = new pulumi.Config();
    const myPassword = config.requireObject("myPassword");
    const exampleSecgroup = new flexibleengine.NetworkingSecgroupV2("exampleSecgroup", {});
    const instance1 = new flexibleengine.DcsInstanceV1("instance1", {
        engine: "Memcached",
        accessUser: "admin",
        password: myPassword,
        productId: "dcs.memcached.master_standby-h",
        capacity: 2,
        vpcId: flexibleengine_vpc_v1.example_vpc.id,
        networkId: flexibleengine_vpc_subnet_v1.example_subnet.id,
        securityGroupId: exampleSecgroup.networkingSecgroupV2Id,
        availableZones: ["eu-west-0a"],
        saveDays: 1,
        backupType: "manual",
        beginAt: "00:00-01:00",
        periodType: "weekly",
        backupAts: [1],
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    config = pulumi.Config()
    my_password = config.require_object("myPassword")
    example_secgroup = flexibleengine.NetworkingSecgroupV2("exampleSecgroup")
    instance1 = flexibleengine.DcsInstanceV1("instance1",
        engine="Memcached",
        access_user="admin",
        password=my_password,
        product_id="dcs.memcached.master_standby-h",
        capacity=2,
        vpc_id=flexibleengine_vpc_v1["example_vpc"]["id"],
        network_id=flexibleengine_vpc_subnet_v1["example_subnet"]["id"],
        security_group_id=example_secgroup.networking_secgroup_v2_id,
        available_zones=["eu-west-0a"],
        save_days=1,
        backup_type="manual",
        begin_at="00:00-01:00",
        period_type="weekly",
        backup_ats=[1])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		myPassword := cfg.RequireObject("myPassword")
    		exampleSecgroup, err := flexibleengine.NewNetworkingSecgroupV2(ctx, "exampleSecgroup", nil)
    		if err != nil {
    			return err
    		}
    		_, err = flexibleengine.NewDcsInstanceV1(ctx, "instance1", &flexibleengine.DcsInstanceV1Args{
    			Engine:          pulumi.String("Memcached"),
    			AccessUser:      pulumi.String("admin"),
    			Password:        pulumi.Any(myPassword),
    			ProductId:       pulumi.String("dcs.memcached.master_standby-h"),
    			Capacity:        pulumi.Float64(2),
    			VpcId:           pulumi.Any(flexibleengine_vpc_v1.Example_vpc.Id),
    			NetworkId:       pulumi.Any(flexibleengine_vpc_subnet_v1.Example_subnet.Id),
    			SecurityGroupId: exampleSecgroup.NetworkingSecgroupV2Id,
    			AvailableZones: pulumi.StringArray{
    				pulumi.String("eu-west-0a"),
    			},
    			SaveDays:   pulumi.Float64(1),
    			BackupType: pulumi.String("manual"),
    			BeginAt:    pulumi.String("00:00-01:00"),
    			PeriodType: pulumi.String("weekly"),
    			BackupAts: pulumi.Float64Array{
    				pulumi.Float64(1),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var myPassword = config.RequireObject<dynamic>("myPassword");
        var exampleSecgroup = new Flexibleengine.NetworkingSecgroupV2("exampleSecgroup");
    
        var instance1 = new Flexibleengine.DcsInstanceV1("instance1", new()
        {
            Engine = "Memcached",
            AccessUser = "admin",
            Password = myPassword,
            ProductId = "dcs.memcached.master_standby-h",
            Capacity = 2,
            VpcId = flexibleengine_vpc_v1.Example_vpc.Id,
            NetworkId = flexibleengine_vpc_subnet_v1.Example_subnet.Id,
            SecurityGroupId = exampleSecgroup.NetworkingSecgroupV2Id,
            AvailableZones = new[]
            {
                "eu-west-0a",
            },
            SaveDays = 1,
            BackupType = "manual",
            BeginAt = "00:00-01:00",
            PeriodType = "weekly",
            BackupAts = new[]
            {
                1,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.NetworkingSecgroupV2;
    import com.pulumi.flexibleengine.DcsInstanceV1;
    import com.pulumi.flexibleengine.DcsInstanceV1Args;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var config = ctx.config();
            final var myPassword = config.get("myPassword");
            var exampleSecgroup = new NetworkingSecgroupV2("exampleSecgroup");
    
            var instance1 = new DcsInstanceV1("instance1", DcsInstanceV1Args.builder()
                .engine("Memcached")
                .accessUser("admin")
                .password(myPassword)
                .productId("dcs.memcached.master_standby-h")
                .capacity(2)
                .vpcId(flexibleengine_vpc_v1.example_vpc().id())
                .networkId(flexibleengine_vpc_subnet_v1.example_subnet().id())
                .securityGroupId(exampleSecgroup.networkingSecgroupV2Id())
                .availableZones("eu-west-0a")
                .saveDays(1)
                .backupType("manual")
                .beginAt("00:00-01:00")
                .periodType("weekly")
                .backupAts(1)
                .build());
    
        }
    }
    
    configuration:
      myPassword:
        type: dynamic
    resources:
      exampleSecgroup:
        type: flexibleengine:NetworkingSecgroupV2
      instance1:
        type: flexibleengine:DcsInstanceV1
        properties:
          engine: Memcached
          accessUser: admin
          password: ${myPassword}
          productId: dcs.memcached.master_standby-h
          capacity: 2
          vpcId: ${flexibleengine_vpc_v1.example_vpc.id}
          networkId: ${flexibleengine_vpc_subnet_v1.example_subnet.id}
          securityGroupId: ${exampleSecgroup.networkingSecgroupV2Id}
          availableZones:
            - eu-west-0a
          saveDays: 1
          backupType: manual
          beginAt: 00:00-01:00
          periodType: weekly
          backupAts:
            - 1
    

    Create DcsInstanceV1 Resource

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

    Constructor syntax

    new DcsInstanceV1(name: string, args: DcsInstanceV1Args, opts?: CustomResourceOptions);
    @overload
    def DcsInstanceV1(resource_name: str,
                      args: DcsInstanceV1Args,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def DcsInstanceV1(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      password: Optional[str] = None,
                      available_zones: Optional[Sequence[str]] = None,
                      vpc_id: Optional[str] = None,
                      network_id: Optional[str] = None,
                      engine: Optional[str] = None,
                      capacity: Optional[float] = None,
                      dcs_instance_v1_id: Optional[str] = None,
                      access_user: Optional[str] = None,
                      maintain_begin: Optional[str] = None,
                      engine_version: Optional[str] = None,
                      instance_type: Optional[str] = None,
                      begin_at: Optional[str] = None,
                      description: Optional[str] = None,
                      name: Optional[str] = None,
                      backup_type: Optional[str] = None,
                      maintain_end: Optional[str] = None,
                      period_type: Optional[str] = None,
                      port: Optional[float] = None,
                      product_id: Optional[str] = None,
                      save_days: Optional[float] = None,
                      security_group_id: Optional[str] = None,
                      timeouts: Optional[DcsInstanceV1TimeoutsArgs] = None,
                      backup_ats: Optional[Sequence[float]] = None)
    func NewDcsInstanceV1(ctx *Context, name string, args DcsInstanceV1Args, opts ...ResourceOption) (*DcsInstanceV1, error)
    public DcsInstanceV1(string name, DcsInstanceV1Args args, CustomResourceOptions? opts = null)
    public DcsInstanceV1(String name, DcsInstanceV1Args args)
    public DcsInstanceV1(String name, DcsInstanceV1Args args, CustomResourceOptions options)
    
    type: flexibleengine:DcsInstanceV1
    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 DcsInstanceV1Args
    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 DcsInstanceV1Args
    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 DcsInstanceV1Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DcsInstanceV1Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DcsInstanceV1Args
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var dcsInstanceV1Resource = new Flexibleengine.DcsInstanceV1("dcsInstanceV1Resource", new()
    {
        Password = "string",
        AvailableZones = new[]
        {
            "string",
        },
        VpcId = "string",
        NetworkId = "string",
        Engine = "string",
        Capacity = 0,
        DcsInstanceV1Id = "string",
        AccessUser = "string",
        MaintainBegin = "string",
        EngineVersion = "string",
        BeginAt = "string",
        Description = "string",
        Name = "string",
        BackupType = "string",
        MaintainEnd = "string",
        PeriodType = "string",
        Port = 0,
        ProductId = "string",
        SaveDays = 0,
        SecurityGroupId = "string",
        Timeouts = new Flexibleengine.Inputs.DcsInstanceV1TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
        },
        BackupAts = new[]
        {
            0,
        },
    });
    
    example, err := flexibleengine.NewDcsInstanceV1(ctx, "dcsInstanceV1Resource", &flexibleengine.DcsInstanceV1Args{
    	Password: pulumi.String("string"),
    	AvailableZones: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	VpcId:           pulumi.String("string"),
    	NetworkId:       pulumi.String("string"),
    	Engine:          pulumi.String("string"),
    	Capacity:        pulumi.Float64(0),
    	DcsInstanceV1Id: pulumi.String("string"),
    	AccessUser:      pulumi.String("string"),
    	MaintainBegin:   pulumi.String("string"),
    	EngineVersion:   pulumi.String("string"),
    	BeginAt:         pulumi.String("string"),
    	Description:     pulumi.String("string"),
    	Name:            pulumi.String("string"),
    	BackupType:      pulumi.String("string"),
    	MaintainEnd:     pulumi.String("string"),
    	PeriodType:      pulumi.String("string"),
    	Port:            pulumi.Float64(0),
    	ProductId:       pulumi.String("string"),
    	SaveDays:        pulumi.Float64(0),
    	SecurityGroupId: pulumi.String("string"),
    	Timeouts: &flexibleengine.DcsInstanceV1TimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    	},
    	BackupAts: pulumi.Float64Array{
    		pulumi.Float64(0),
    	},
    })
    
    var dcsInstanceV1Resource = new DcsInstanceV1("dcsInstanceV1Resource", DcsInstanceV1Args.builder()
        .password("string")
        .availableZones("string")
        .vpcId("string")
        .networkId("string")
        .engine("string")
        .capacity(0)
        .dcsInstanceV1Id("string")
        .accessUser("string")
        .maintainBegin("string")
        .engineVersion("string")
        .beginAt("string")
        .description("string")
        .name("string")
        .backupType("string")
        .maintainEnd("string")
        .periodType("string")
        .port(0)
        .productId("string")
        .saveDays(0)
        .securityGroupId("string")
        .timeouts(DcsInstanceV1TimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .build())
        .backupAts(0)
        .build());
    
    dcs_instance_v1_resource = flexibleengine.DcsInstanceV1("dcsInstanceV1Resource",
        password="string",
        available_zones=["string"],
        vpc_id="string",
        network_id="string",
        engine="string",
        capacity=0,
        dcs_instance_v1_id="string",
        access_user="string",
        maintain_begin="string",
        engine_version="string",
        begin_at="string",
        description="string",
        name="string",
        backup_type="string",
        maintain_end="string",
        period_type="string",
        port=0,
        product_id="string",
        save_days=0,
        security_group_id="string",
        timeouts={
            "create": "string",
            "delete": "string",
        },
        backup_ats=[0])
    
    const dcsInstanceV1Resource = new flexibleengine.DcsInstanceV1("dcsInstanceV1Resource", {
        password: "string",
        availableZones: ["string"],
        vpcId: "string",
        networkId: "string",
        engine: "string",
        capacity: 0,
        dcsInstanceV1Id: "string",
        accessUser: "string",
        maintainBegin: "string",
        engineVersion: "string",
        beginAt: "string",
        description: "string",
        name: "string",
        backupType: "string",
        maintainEnd: "string",
        periodType: "string",
        port: 0,
        productId: "string",
        saveDays: 0,
        securityGroupId: "string",
        timeouts: {
            create: "string",
            "delete": "string",
        },
        backupAts: [0],
    });
    
    type: flexibleengine:DcsInstanceV1
    properties:
        accessUser: string
        availableZones:
            - string
        backupAts:
            - 0
        backupType: string
        beginAt: string
        capacity: 0
        dcsInstanceV1Id: string
        description: string
        engine: string
        engineVersion: string
        maintainBegin: string
        maintainEnd: string
        name: string
        networkId: string
        password: string
        periodType: string
        port: 0
        productId: string
        saveDays: 0
        securityGroupId: string
        timeouts:
            create: string
            delete: string
        vpcId: string
    

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

    AvailableZones List<string>
    IDs or Names of the AZs where cache nodes reside. For details on how to query AZs, see Querying AZ Information. Changing this creates a new instance.
    Capacity double
    Indicates the Cache capacity. Unit: GB. For a DCS Redis or Memcached instance in single-node or master/standby mode, the cache capacity can be 2 GB, 4 GB, 8 GB, 16 GB, 32 GB, or 64 GB. For a DCS Redis instance in cluster mode, the cache capacity can be 64, 128, 256, 512, or 1024 GB. Changing this creates a new instance.
    Engine string
    Indicates a cache engine. Valid values are Redis and Memcached. Changing this creates a new instance.
    NetworkId string
    Specifies the ID of the VPC subnet. Changing this creates a new instance.
    Password string
    Password of a DCS instance. The password of a DCS Redis instance must meet the following complexity requirements: Changing this creates a new instance.
    VpcId string
    Specifies the id of the VPC. Changing this creates a new instance.
    AccessUser string
    Username used for accessing a DCS instance after password authentication. A username starts with a letter, consists of 1 to 64 characters, and supports only letters, digits, and hyphens (-). Changing this creates a new instance.
    BackupAts List<double>
    Day in a week on which backup starts. Range: 1–7. Where: 1 indicates Monday; 7 indicates Sunday. Changing this creates a new instance.
    BackupType string
    Backup type. Options: auto: automatic backup. manual: manual backup. Changing this creates a new instance.
    BeginAt string
    Time at which backup starts. "00:00-01:00" indicates that backup starts at 00:00:00. Changing this creates a new instance.
    DcsInstanceV1Id string
    The resource ID in UUID format.
    Description string
    Indicates the description of an instance. It is a character string containing not more than 1024 characters.
    EngineVersion string
    Indicates the version of a cache engine. This parameter is only supported and mandatory for Redis engine. Changing this creates a new instance.
    InstanceType string

    Deprecated: Deprecated

    MaintainBegin string
    Indicates the time at which a maintenance time window starts. Format: HH:mm:ss. The start time and end time of a maintenance time window must indicate the time segment of a supported maintenance time window. For details, see section Querying Maintenance Time Windows. The start time must be set to 22:00, 02:00, 06:00, 10:00, 14:00, or 18:00. Parameters maintain_begin and maintain_end must be set in pairs. If parameter maintain_begin is left blank, parameter maintain_end is also blank. In this case, the system automatically allocates the default start time 02:00.
    MaintainEnd string
    Indicates the time at which a maintenance time window ends. Format: HH:mm:ss. The start time and end time of a maintenance time window must indicate the time segment of a supported maintenance time window. For details, see section Querying Maintenance Time Windows. The end time is four hours later than the start time. For example, if the start time is 22:00, the end time is 02:00. Parameters maintain_begin and maintain_end must be set in pairs. If parameter maintain_end is left blank, parameter maintain_begin is also blank. In this case, the system automatically allocates the default end time 06:00.
    Name string
    Indicates the name of an instance. An instance name starts with a letter, consists of 4 to 64 characters, and supports only letters, digits, and hyphens (-).
    PeriodType string
    Interval at which backup is performed. Currently, only weekly backup is supported. Changing this creates a new instance.
    Port double
    Port customization, which is supported only by Redis 4.0 and Redis 5.0 instances and not by Redis 3.0 and Memcached instances. The values ranges from 1 to 65535. The default value is 6379. Changing this creates a new instance.
    ProductId string

    Product ID used to differentiate DCS instance types.

    • For Redis 4.0/5.0 instance, please use flexibleengine.getDcsProductV1 to get the ID of an available product.

    • For Redis 3.0 instance, the valid values are dcs.master_standby-h, dcs.single_node-h and dcs.cluster-h.

    • For Memcached instance, the valid values are dcs.memcached.master_standby-h and dcs.memcached.single_node-h.

    Changing this creates a new instance.

    SaveDays double
    Retention time. Unit: day. Range: 1–7. Changing this creates a new instance.
    SecurityGroupId string
    Specifies the id of the security group which the instance belongs to. This parameter is only supported and mandatory for Memcached and Redis 3.0 versions.
    Timeouts DcsInstanceV1Timeouts
    AvailableZones []string
    IDs or Names of the AZs where cache nodes reside. For details on how to query AZs, see Querying AZ Information. Changing this creates a new instance.
    Capacity float64
    Indicates the Cache capacity. Unit: GB. For a DCS Redis or Memcached instance in single-node or master/standby mode, the cache capacity can be 2 GB, 4 GB, 8 GB, 16 GB, 32 GB, or 64 GB. For a DCS Redis instance in cluster mode, the cache capacity can be 64, 128, 256, 512, or 1024 GB. Changing this creates a new instance.
    Engine string
    Indicates a cache engine. Valid values are Redis and Memcached. Changing this creates a new instance.
    NetworkId string
    Specifies the ID of the VPC subnet. Changing this creates a new instance.
    Password string
    Password of a DCS instance. The password of a DCS Redis instance must meet the following complexity requirements: Changing this creates a new instance.
    VpcId string
    Specifies the id of the VPC. Changing this creates a new instance.
    AccessUser string
    Username used for accessing a DCS instance after password authentication. A username starts with a letter, consists of 1 to 64 characters, and supports only letters, digits, and hyphens (-). Changing this creates a new instance.
    BackupAts []float64
    Day in a week on which backup starts. Range: 1–7. Where: 1 indicates Monday; 7 indicates Sunday. Changing this creates a new instance.
    BackupType string
    Backup type. Options: auto: automatic backup. manual: manual backup. Changing this creates a new instance.
    BeginAt string
    Time at which backup starts. "00:00-01:00" indicates that backup starts at 00:00:00. Changing this creates a new instance.
    DcsInstanceV1Id string
    The resource ID in UUID format.
    Description string
    Indicates the description of an instance. It is a character string containing not more than 1024 characters.
    EngineVersion string
    Indicates the version of a cache engine. This parameter is only supported and mandatory for Redis engine. Changing this creates a new instance.
    InstanceType string

    Deprecated: Deprecated

    MaintainBegin string
    Indicates the time at which a maintenance time window starts. Format: HH:mm:ss. The start time and end time of a maintenance time window must indicate the time segment of a supported maintenance time window. For details, see section Querying Maintenance Time Windows. The start time must be set to 22:00, 02:00, 06:00, 10:00, 14:00, or 18:00. Parameters maintain_begin and maintain_end must be set in pairs. If parameter maintain_begin is left blank, parameter maintain_end is also blank. In this case, the system automatically allocates the default start time 02:00.
    MaintainEnd string
    Indicates the time at which a maintenance time window ends. Format: HH:mm:ss. The start time and end time of a maintenance time window must indicate the time segment of a supported maintenance time window. For details, see section Querying Maintenance Time Windows. The end time is four hours later than the start time. For example, if the start time is 22:00, the end time is 02:00. Parameters maintain_begin and maintain_end must be set in pairs. If parameter maintain_end is left blank, parameter maintain_begin is also blank. In this case, the system automatically allocates the default end time 06:00.
    Name string
    Indicates the name of an instance. An instance name starts with a letter, consists of 4 to 64 characters, and supports only letters, digits, and hyphens (-).
    PeriodType string
    Interval at which backup is performed. Currently, only weekly backup is supported. Changing this creates a new instance.
    Port float64
    Port customization, which is supported only by Redis 4.0 and Redis 5.0 instances and not by Redis 3.0 and Memcached instances. The values ranges from 1 to 65535. The default value is 6379. Changing this creates a new instance.
    ProductId string

    Product ID used to differentiate DCS instance types.

    • For Redis 4.0/5.0 instance, please use flexibleengine.getDcsProductV1 to get the ID of an available product.

    • For Redis 3.0 instance, the valid values are dcs.master_standby-h, dcs.single_node-h and dcs.cluster-h.

    • For Memcached instance, the valid values are dcs.memcached.master_standby-h and dcs.memcached.single_node-h.

    Changing this creates a new instance.

    SaveDays float64
    Retention time. Unit: day. Range: 1–7. Changing this creates a new instance.
    SecurityGroupId string
    Specifies the id of the security group which the instance belongs to. This parameter is only supported and mandatory for Memcached and Redis 3.0 versions.
    Timeouts DcsInstanceV1TimeoutsArgs
    availableZones List<String>
    IDs or Names of the AZs where cache nodes reside. For details on how to query AZs, see Querying AZ Information. Changing this creates a new instance.
    capacity Double
    Indicates the Cache capacity. Unit: GB. For a DCS Redis or Memcached instance in single-node or master/standby mode, the cache capacity can be 2 GB, 4 GB, 8 GB, 16 GB, 32 GB, or 64 GB. For a DCS Redis instance in cluster mode, the cache capacity can be 64, 128, 256, 512, or 1024 GB. Changing this creates a new instance.
    engine String
    Indicates a cache engine. Valid values are Redis and Memcached. Changing this creates a new instance.
    networkId String
    Specifies the ID of the VPC subnet. Changing this creates a new instance.
    password String
    Password of a DCS instance. The password of a DCS Redis instance must meet the following complexity requirements: Changing this creates a new instance.
    vpcId String
    Specifies the id of the VPC. Changing this creates a new instance.
    accessUser String
    Username used for accessing a DCS instance after password authentication. A username starts with a letter, consists of 1 to 64 characters, and supports only letters, digits, and hyphens (-). Changing this creates a new instance.
    backupAts List<Double>
    Day in a week on which backup starts. Range: 1–7. Where: 1 indicates Monday; 7 indicates Sunday. Changing this creates a new instance.
    backupType String
    Backup type. Options: auto: automatic backup. manual: manual backup. Changing this creates a new instance.
    beginAt String
    Time at which backup starts. "00:00-01:00" indicates that backup starts at 00:00:00. Changing this creates a new instance.
    dcsInstanceV1Id String
    The resource ID in UUID format.
    description String
    Indicates the description of an instance. It is a character string containing not more than 1024 characters.
    engineVersion String
    Indicates the version of a cache engine. This parameter is only supported and mandatory for Redis engine. Changing this creates a new instance.
    instanceType String

    Deprecated: Deprecated

    maintainBegin String
    Indicates the time at which a maintenance time window starts. Format: HH:mm:ss. The start time and end time of a maintenance time window must indicate the time segment of a supported maintenance time window. For details, see section Querying Maintenance Time Windows. The start time must be set to 22:00, 02:00, 06:00, 10:00, 14:00, or 18:00. Parameters maintain_begin and maintain_end must be set in pairs. If parameter maintain_begin is left blank, parameter maintain_end is also blank. In this case, the system automatically allocates the default start time 02:00.
    maintainEnd String
    Indicates the time at which a maintenance time window ends. Format: HH:mm:ss. The start time and end time of a maintenance time window must indicate the time segment of a supported maintenance time window. For details, see section Querying Maintenance Time Windows. The end time is four hours later than the start time. For example, if the start time is 22:00, the end time is 02:00. Parameters maintain_begin and maintain_end must be set in pairs. If parameter maintain_end is left blank, parameter maintain_begin is also blank. In this case, the system automatically allocates the default end time 06:00.
    name String
    Indicates the name of an instance. An instance name starts with a letter, consists of 4 to 64 characters, and supports only letters, digits, and hyphens (-).
    periodType String
    Interval at which backup is performed. Currently, only weekly backup is supported. Changing this creates a new instance.
    port Double
    Port customization, which is supported only by Redis 4.0 and Redis 5.0 instances and not by Redis 3.0 and Memcached instances. The values ranges from 1 to 65535. The default value is 6379. Changing this creates a new instance.
    productId String

    Product ID used to differentiate DCS instance types.

    • For Redis 4.0/5.0 instance, please use flexibleengine.getDcsProductV1 to get the ID of an available product.

    • For Redis 3.0 instance, the valid values are dcs.master_standby-h, dcs.single_node-h and dcs.cluster-h.

    • For Memcached instance, the valid values are dcs.memcached.master_standby-h and dcs.memcached.single_node-h.

    Changing this creates a new instance.

    saveDays Double
    Retention time. Unit: day. Range: 1–7. Changing this creates a new instance.
    securityGroupId String
    Specifies the id of the security group which the instance belongs to. This parameter is only supported and mandatory for Memcached and Redis 3.0 versions.
    timeouts DcsInstanceV1Timeouts
    availableZones string[]
    IDs or Names of the AZs where cache nodes reside. For details on how to query AZs, see Querying AZ Information. Changing this creates a new instance.
    capacity number
    Indicates the Cache capacity. Unit: GB. For a DCS Redis or Memcached instance in single-node or master/standby mode, the cache capacity can be 2 GB, 4 GB, 8 GB, 16 GB, 32 GB, or 64 GB. For a DCS Redis instance in cluster mode, the cache capacity can be 64, 128, 256, 512, or 1024 GB. Changing this creates a new instance.
    engine string
    Indicates a cache engine. Valid values are Redis and Memcached. Changing this creates a new instance.
    networkId string
    Specifies the ID of the VPC subnet. Changing this creates a new instance.
    password string
    Password of a DCS instance. The password of a DCS Redis instance must meet the following complexity requirements: Changing this creates a new instance.
    vpcId string
    Specifies the id of the VPC. Changing this creates a new instance.
    accessUser string
    Username used for accessing a DCS instance after password authentication. A username starts with a letter, consists of 1 to 64 characters, and supports only letters, digits, and hyphens (-). Changing this creates a new instance.
    backupAts number[]
    Day in a week on which backup starts. Range: 1–7. Where: 1 indicates Monday; 7 indicates Sunday. Changing this creates a new instance.
    backupType string
    Backup type. Options: auto: automatic backup. manual: manual backup. Changing this creates a new instance.
    beginAt string
    Time at which backup starts. "00:00-01:00" indicates that backup starts at 00:00:00. Changing this creates a new instance.
    dcsInstanceV1Id string
    The resource ID in UUID format.
    description string
    Indicates the description of an instance. It is a character string containing not more than 1024 characters.
    engineVersion string
    Indicates the version of a cache engine. This parameter is only supported and mandatory for Redis engine. Changing this creates a new instance.
    instanceType string

    Deprecated: Deprecated

    maintainBegin string
    Indicates the time at which a maintenance time window starts. Format: HH:mm:ss. The start time and end time of a maintenance time window must indicate the time segment of a supported maintenance time window. For details, see section Querying Maintenance Time Windows. The start time must be set to 22:00, 02:00, 06:00, 10:00, 14:00, or 18:00. Parameters maintain_begin and maintain_end must be set in pairs. If parameter maintain_begin is left blank, parameter maintain_end is also blank. In this case, the system automatically allocates the default start time 02:00.
    maintainEnd string
    Indicates the time at which a maintenance time window ends. Format: HH:mm:ss. The start time and end time of a maintenance time window must indicate the time segment of a supported maintenance time window. For details, see section Querying Maintenance Time Windows. The end time is four hours later than the start time. For example, if the start time is 22:00, the end time is 02:00. Parameters maintain_begin and maintain_end must be set in pairs. If parameter maintain_end is left blank, parameter maintain_begin is also blank. In this case, the system automatically allocates the default end time 06:00.
    name string
    Indicates the name of an instance. An instance name starts with a letter, consists of 4 to 64 characters, and supports only letters, digits, and hyphens (-).
    periodType string
    Interval at which backup is performed. Currently, only weekly backup is supported. Changing this creates a new instance.
    port number
    Port customization, which is supported only by Redis 4.0 and Redis 5.0 instances and not by Redis 3.0 and Memcached instances. The values ranges from 1 to 65535. The default value is 6379. Changing this creates a new instance.
    productId string

    Product ID used to differentiate DCS instance types.

    • For Redis 4.0/5.0 instance, please use flexibleengine.getDcsProductV1 to get the ID of an available product.

    • For Redis 3.0 instance, the valid values are dcs.master_standby-h, dcs.single_node-h and dcs.cluster-h.

    • For Memcached instance, the valid values are dcs.memcached.master_standby-h and dcs.memcached.single_node-h.

    Changing this creates a new instance.

    saveDays number
    Retention time. Unit: day. Range: 1–7. Changing this creates a new instance.
    securityGroupId string
    Specifies the id of the security group which the instance belongs to. This parameter is only supported and mandatory for Memcached and Redis 3.0 versions.
    timeouts DcsInstanceV1Timeouts
    available_zones Sequence[str]
    IDs or Names of the AZs where cache nodes reside. For details on how to query AZs, see Querying AZ Information. Changing this creates a new instance.
    capacity float
    Indicates the Cache capacity. Unit: GB. For a DCS Redis or Memcached instance in single-node or master/standby mode, the cache capacity can be 2 GB, 4 GB, 8 GB, 16 GB, 32 GB, or 64 GB. For a DCS Redis instance in cluster mode, the cache capacity can be 64, 128, 256, 512, or 1024 GB. Changing this creates a new instance.
    engine str
    Indicates a cache engine. Valid values are Redis and Memcached. Changing this creates a new instance.
    network_id str
    Specifies the ID of the VPC subnet. Changing this creates a new instance.
    password str
    Password of a DCS instance. The password of a DCS Redis instance must meet the following complexity requirements: Changing this creates a new instance.
    vpc_id str
    Specifies the id of the VPC. Changing this creates a new instance.
    access_user str
    Username used for accessing a DCS instance after password authentication. A username starts with a letter, consists of 1 to 64 characters, and supports only letters, digits, and hyphens (-). Changing this creates a new instance.
    backup_ats Sequence[float]
    Day in a week on which backup starts. Range: 1–7. Where: 1 indicates Monday; 7 indicates Sunday. Changing this creates a new instance.
    backup_type str
    Backup type. Options: auto: automatic backup. manual: manual backup. Changing this creates a new instance.
    begin_at str
    Time at which backup starts. "00:00-01:00" indicates that backup starts at 00:00:00. Changing this creates a new instance.
    dcs_instance_v1_id str
    The resource ID in UUID format.
    description str
    Indicates the description of an instance. It is a character string containing not more than 1024 characters.
    engine_version str
    Indicates the version of a cache engine. This parameter is only supported and mandatory for Redis engine. Changing this creates a new instance.
    instance_type str

    Deprecated: Deprecated

    maintain_begin str
    Indicates the time at which a maintenance time window starts. Format: HH:mm:ss. The start time and end time of a maintenance time window must indicate the time segment of a supported maintenance time window. For details, see section Querying Maintenance Time Windows. The start time must be set to 22:00, 02:00, 06:00, 10:00, 14:00, or 18:00. Parameters maintain_begin and maintain_end must be set in pairs. If parameter maintain_begin is left blank, parameter maintain_end is also blank. In this case, the system automatically allocates the default start time 02:00.
    maintain_end str
    Indicates the time at which a maintenance time window ends. Format: HH:mm:ss. The start time and end time of a maintenance time window must indicate the time segment of a supported maintenance time window. For details, see section Querying Maintenance Time Windows. The end time is four hours later than the start time. For example, if the start time is 22:00, the end time is 02:00. Parameters maintain_begin and maintain_end must be set in pairs. If parameter maintain_end is left blank, parameter maintain_begin is also blank. In this case, the system automatically allocates the default end time 06:00.
    name str
    Indicates the name of an instance. An instance name starts with a letter, consists of 4 to 64 characters, and supports only letters, digits, and hyphens (-).
    period_type str
    Interval at which backup is performed. Currently, only weekly backup is supported. Changing this creates a new instance.
    port float
    Port customization, which is supported only by Redis 4.0 and Redis 5.0 instances and not by Redis 3.0 and Memcached instances. The values ranges from 1 to 65535. The default value is 6379. Changing this creates a new instance.
    product_id str

    Product ID used to differentiate DCS instance types.

    • For Redis 4.0/5.0 instance, please use flexibleengine.getDcsProductV1 to get the ID of an available product.

    • For Redis 3.0 instance, the valid values are dcs.master_standby-h, dcs.single_node-h and dcs.cluster-h.

    • For Memcached instance, the valid values are dcs.memcached.master_standby-h and dcs.memcached.single_node-h.

    Changing this creates a new instance.

    save_days float
    Retention time. Unit: day. Range: 1–7. Changing this creates a new instance.
    security_group_id str
    Specifies the id of the security group which the instance belongs to. This parameter is only supported and mandatory for Memcached and Redis 3.0 versions.
    timeouts DcsInstanceV1TimeoutsArgs
    availableZones List<String>
    IDs or Names of the AZs where cache nodes reside. For details on how to query AZs, see Querying AZ Information. Changing this creates a new instance.
    capacity Number
    Indicates the Cache capacity. Unit: GB. For a DCS Redis or Memcached instance in single-node or master/standby mode, the cache capacity can be 2 GB, 4 GB, 8 GB, 16 GB, 32 GB, or 64 GB. For a DCS Redis instance in cluster mode, the cache capacity can be 64, 128, 256, 512, or 1024 GB. Changing this creates a new instance.
    engine String
    Indicates a cache engine. Valid values are Redis and Memcached. Changing this creates a new instance.
    networkId String
    Specifies the ID of the VPC subnet. Changing this creates a new instance.
    password String
    Password of a DCS instance. The password of a DCS Redis instance must meet the following complexity requirements: Changing this creates a new instance.
    vpcId String
    Specifies the id of the VPC. Changing this creates a new instance.
    accessUser String
    Username used for accessing a DCS instance after password authentication. A username starts with a letter, consists of 1 to 64 characters, and supports only letters, digits, and hyphens (-). Changing this creates a new instance.
    backupAts List<Number>
    Day in a week on which backup starts. Range: 1–7. Where: 1 indicates Monday; 7 indicates Sunday. Changing this creates a new instance.
    backupType String
    Backup type. Options: auto: automatic backup. manual: manual backup. Changing this creates a new instance.
    beginAt String
    Time at which backup starts. "00:00-01:00" indicates that backup starts at 00:00:00. Changing this creates a new instance.
    dcsInstanceV1Id String
    The resource ID in UUID format.
    description String
    Indicates the description of an instance. It is a character string containing not more than 1024 characters.
    engineVersion String
    Indicates the version of a cache engine. This parameter is only supported and mandatory for Redis engine. Changing this creates a new instance.
    instanceType String

    Deprecated: Deprecated

    maintainBegin String
    Indicates the time at which a maintenance time window starts. Format: HH:mm:ss. The start time and end time of a maintenance time window must indicate the time segment of a supported maintenance time window. For details, see section Querying Maintenance Time Windows. The start time must be set to 22:00, 02:00, 06:00, 10:00, 14:00, or 18:00. Parameters maintain_begin and maintain_end must be set in pairs. If parameter maintain_begin is left blank, parameter maintain_end is also blank. In this case, the system automatically allocates the default start time 02:00.
    maintainEnd String
    Indicates the time at which a maintenance time window ends. Format: HH:mm:ss. The start time and end time of a maintenance time window must indicate the time segment of a supported maintenance time window. For details, see section Querying Maintenance Time Windows. The end time is four hours later than the start time. For example, if the start time is 22:00, the end time is 02:00. Parameters maintain_begin and maintain_end must be set in pairs. If parameter maintain_end is left blank, parameter maintain_begin is also blank. In this case, the system automatically allocates the default end time 06:00.
    name String
    Indicates the name of an instance. An instance name starts with a letter, consists of 4 to 64 characters, and supports only letters, digits, and hyphens (-).
    periodType String
    Interval at which backup is performed. Currently, only weekly backup is supported. Changing this creates a new instance.
    port Number
    Port customization, which is supported only by Redis 4.0 and Redis 5.0 instances and not by Redis 3.0 and Memcached instances. The values ranges from 1 to 65535. The default value is 6379. Changing this creates a new instance.
    productId String

    Product ID used to differentiate DCS instance types.

    • For Redis 4.0/5.0 instance, please use flexibleengine.getDcsProductV1 to get the ID of an available product.

    • For Redis 3.0 instance, the valid values are dcs.master_standby-h, dcs.single_node-h and dcs.cluster-h.

    • For Memcached instance, the valid values are dcs.memcached.master_standby-h and dcs.memcached.single_node-h.

    Changing this creates a new instance.

    saveDays Number
    Retention time. Unit: day. Range: 1–7. Changing this creates a new instance.
    securityGroupId String
    Specifies the id of the security group which the instance belongs to. This parameter is only supported and mandatory for Memcached and Redis 3.0 versions.
    timeouts Property Map

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    InternalVersion string
    Internal DCS version.
    Ip string
    Cache node's IP address in tenant's VPC.
    MaxMemory double
    Overall memory size. Unit: MB.
    ResourceSpecCode string
    Resource specifications. dcs.single_node: indicates a DCS instance in single-node mode. dcs.master_standby: indicates a DCS instance in master/standby mode. dcs.cluster: indicates a DCS instance in cluster mode.
    SecurityGroupName string
    Indicates the name of a security group.
    Status string
    Status of the Cache instance.
    SubnetName string
    Indicates the name of a subnet.
    UsedMemory double
    Size of the used memory. Unit: MB.
    UserId string
    Indicates a user ID.
    VpcName string
    Indicates the name of a vpc.
    Id string
    The provider-assigned unique ID for this managed resource.
    InternalVersion string
    Internal DCS version.
    Ip string
    Cache node's IP address in tenant's VPC.
    MaxMemory float64
    Overall memory size. Unit: MB.
    ResourceSpecCode string
    Resource specifications. dcs.single_node: indicates a DCS instance in single-node mode. dcs.master_standby: indicates a DCS instance in master/standby mode. dcs.cluster: indicates a DCS instance in cluster mode.
    SecurityGroupName string
    Indicates the name of a security group.
    Status string
    Status of the Cache instance.
    SubnetName string
    Indicates the name of a subnet.
    UsedMemory float64
    Size of the used memory. Unit: MB.
    UserId string
    Indicates a user ID.
    VpcName string
    Indicates the name of a vpc.
    id String
    The provider-assigned unique ID for this managed resource.
    internalVersion String
    Internal DCS version.
    ip String
    Cache node's IP address in tenant's VPC.
    maxMemory Double
    Overall memory size. Unit: MB.
    resourceSpecCode String
    Resource specifications. dcs.single_node: indicates a DCS instance in single-node mode. dcs.master_standby: indicates a DCS instance in master/standby mode. dcs.cluster: indicates a DCS instance in cluster mode.
    securityGroupName String
    Indicates the name of a security group.
    status String
    Status of the Cache instance.
    subnetName String
    Indicates the name of a subnet.
    usedMemory Double
    Size of the used memory. Unit: MB.
    userId String
    Indicates a user ID.
    vpcName String
    Indicates the name of a vpc.
    id string
    The provider-assigned unique ID for this managed resource.
    internalVersion string
    Internal DCS version.
    ip string
    Cache node's IP address in tenant's VPC.
    maxMemory number
    Overall memory size. Unit: MB.
    resourceSpecCode string
    Resource specifications. dcs.single_node: indicates a DCS instance in single-node mode. dcs.master_standby: indicates a DCS instance in master/standby mode. dcs.cluster: indicates a DCS instance in cluster mode.
    securityGroupName string
    Indicates the name of a security group.
    status string
    Status of the Cache instance.
    subnetName string
    Indicates the name of a subnet.
    usedMemory number
    Size of the used memory. Unit: MB.
    userId string
    Indicates a user ID.
    vpcName string
    Indicates the name of a vpc.
    id str
    The provider-assigned unique ID for this managed resource.
    internal_version str
    Internal DCS version.
    ip str
    Cache node's IP address in tenant's VPC.
    max_memory float
    Overall memory size. Unit: MB.
    resource_spec_code str
    Resource specifications. dcs.single_node: indicates a DCS instance in single-node mode. dcs.master_standby: indicates a DCS instance in master/standby mode. dcs.cluster: indicates a DCS instance in cluster mode.
    security_group_name str
    Indicates the name of a security group.
    status str
    Status of the Cache instance.
    subnet_name str
    Indicates the name of a subnet.
    used_memory float
    Size of the used memory. Unit: MB.
    user_id str
    Indicates a user ID.
    vpc_name str
    Indicates the name of a vpc.
    id String
    The provider-assigned unique ID for this managed resource.
    internalVersion String
    Internal DCS version.
    ip String
    Cache node's IP address in tenant's VPC.
    maxMemory Number
    Overall memory size. Unit: MB.
    resourceSpecCode String
    Resource specifications. dcs.single_node: indicates a DCS instance in single-node mode. dcs.master_standby: indicates a DCS instance in master/standby mode. dcs.cluster: indicates a DCS instance in cluster mode.
    securityGroupName String
    Indicates the name of a security group.
    status String
    Status of the Cache instance.
    subnetName String
    Indicates the name of a subnet.
    usedMemory Number
    Size of the used memory. Unit: MB.
    userId String
    Indicates a user ID.
    vpcName String
    Indicates the name of a vpc.

    Look up Existing DcsInstanceV1 Resource

    Get an existing DcsInstanceV1 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?: DcsInstanceV1State, opts?: CustomResourceOptions): DcsInstanceV1
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            access_user: Optional[str] = None,
            available_zones: Optional[Sequence[str]] = None,
            backup_ats: Optional[Sequence[float]] = None,
            backup_type: Optional[str] = None,
            begin_at: Optional[str] = None,
            capacity: Optional[float] = None,
            dcs_instance_v1_id: Optional[str] = None,
            description: Optional[str] = None,
            engine: Optional[str] = None,
            engine_version: Optional[str] = None,
            instance_type: Optional[str] = None,
            internal_version: Optional[str] = None,
            ip: Optional[str] = None,
            maintain_begin: Optional[str] = None,
            maintain_end: Optional[str] = None,
            max_memory: Optional[float] = None,
            name: Optional[str] = None,
            network_id: Optional[str] = None,
            password: Optional[str] = None,
            period_type: Optional[str] = None,
            port: Optional[float] = None,
            product_id: Optional[str] = None,
            resource_spec_code: Optional[str] = None,
            save_days: Optional[float] = None,
            security_group_id: Optional[str] = None,
            security_group_name: Optional[str] = None,
            status: Optional[str] = None,
            subnet_name: Optional[str] = None,
            timeouts: Optional[DcsInstanceV1TimeoutsArgs] = None,
            used_memory: Optional[float] = None,
            user_id: Optional[str] = None,
            vpc_id: Optional[str] = None,
            vpc_name: Optional[str] = None) -> DcsInstanceV1
    func GetDcsInstanceV1(ctx *Context, name string, id IDInput, state *DcsInstanceV1State, opts ...ResourceOption) (*DcsInstanceV1, error)
    public static DcsInstanceV1 Get(string name, Input<string> id, DcsInstanceV1State? state, CustomResourceOptions? opts = null)
    public static DcsInstanceV1 get(String name, Output<String> id, DcsInstanceV1State state, CustomResourceOptions options)
    resources:  _:    type: flexibleengine:DcsInstanceV1    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:
    AccessUser string
    Username used for accessing a DCS instance after password authentication. A username starts with a letter, consists of 1 to 64 characters, and supports only letters, digits, and hyphens (-). Changing this creates a new instance.
    AvailableZones List<string>
    IDs or Names of the AZs where cache nodes reside. For details on how to query AZs, see Querying AZ Information. Changing this creates a new instance.
    BackupAts List<double>
    Day in a week on which backup starts. Range: 1–7. Where: 1 indicates Monday; 7 indicates Sunday. Changing this creates a new instance.
    BackupType string
    Backup type. Options: auto: automatic backup. manual: manual backup. Changing this creates a new instance.
    BeginAt string
    Time at which backup starts. "00:00-01:00" indicates that backup starts at 00:00:00. Changing this creates a new instance.
    Capacity double
    Indicates the Cache capacity. Unit: GB. For a DCS Redis or Memcached instance in single-node or master/standby mode, the cache capacity can be 2 GB, 4 GB, 8 GB, 16 GB, 32 GB, or 64 GB. For a DCS Redis instance in cluster mode, the cache capacity can be 64, 128, 256, 512, or 1024 GB. Changing this creates a new instance.
    DcsInstanceV1Id string
    The resource ID in UUID format.
    Description string
    Indicates the description of an instance. It is a character string containing not more than 1024 characters.
    Engine string
    Indicates a cache engine. Valid values are Redis and Memcached. Changing this creates a new instance.
    EngineVersion string
    Indicates the version of a cache engine. This parameter is only supported and mandatory for Redis engine. Changing this creates a new instance.
    InstanceType string

    Deprecated: Deprecated

    InternalVersion string
    Internal DCS version.
    Ip string
    Cache node's IP address in tenant's VPC.
    MaintainBegin string
    Indicates the time at which a maintenance time window starts. Format: HH:mm:ss. The start time and end time of a maintenance time window must indicate the time segment of a supported maintenance time window. For details, see section Querying Maintenance Time Windows. The start time must be set to 22:00, 02:00, 06:00, 10:00, 14:00, or 18:00. Parameters maintain_begin and maintain_end must be set in pairs. If parameter maintain_begin is left blank, parameter maintain_end is also blank. In this case, the system automatically allocates the default start time 02:00.
    MaintainEnd string
    Indicates the time at which a maintenance time window ends. Format: HH:mm:ss. The start time and end time of a maintenance time window must indicate the time segment of a supported maintenance time window. For details, see section Querying Maintenance Time Windows. The end time is four hours later than the start time. For example, if the start time is 22:00, the end time is 02:00. Parameters maintain_begin and maintain_end must be set in pairs. If parameter maintain_end is left blank, parameter maintain_begin is also blank. In this case, the system automatically allocates the default end time 06:00.
    MaxMemory double
    Overall memory size. Unit: MB.
    Name string
    Indicates the name of an instance. An instance name starts with a letter, consists of 4 to 64 characters, and supports only letters, digits, and hyphens (-).
    NetworkId string
    Specifies the ID of the VPC subnet. Changing this creates a new instance.
    Password string
    Password of a DCS instance. The password of a DCS Redis instance must meet the following complexity requirements: Changing this creates a new instance.
    PeriodType string
    Interval at which backup is performed. Currently, only weekly backup is supported. Changing this creates a new instance.
    Port double
    Port customization, which is supported only by Redis 4.0 and Redis 5.0 instances and not by Redis 3.0 and Memcached instances. The values ranges from 1 to 65535. The default value is 6379. Changing this creates a new instance.
    ProductId string

    Product ID used to differentiate DCS instance types.

    • For Redis 4.0/5.0 instance, please use flexibleengine.getDcsProductV1 to get the ID of an available product.

    • For Redis 3.0 instance, the valid values are dcs.master_standby-h, dcs.single_node-h and dcs.cluster-h.

    • For Memcached instance, the valid values are dcs.memcached.master_standby-h and dcs.memcached.single_node-h.

    Changing this creates a new instance.

    ResourceSpecCode string
    Resource specifications. dcs.single_node: indicates a DCS instance in single-node mode. dcs.master_standby: indicates a DCS instance in master/standby mode. dcs.cluster: indicates a DCS instance in cluster mode.
    SaveDays double
    Retention time. Unit: day. Range: 1–7. Changing this creates a new instance.
    SecurityGroupId string
    Specifies the id of the security group which the instance belongs to. This parameter is only supported and mandatory for Memcached and Redis 3.0 versions.
    SecurityGroupName string
    Indicates the name of a security group.
    Status string
    Status of the Cache instance.
    SubnetName string
    Indicates the name of a subnet.
    Timeouts DcsInstanceV1Timeouts
    UsedMemory double
    Size of the used memory. Unit: MB.
    UserId string
    Indicates a user ID.
    VpcId string
    Specifies the id of the VPC. Changing this creates a new instance.
    VpcName string
    Indicates the name of a vpc.
    AccessUser string
    Username used for accessing a DCS instance after password authentication. A username starts with a letter, consists of 1 to 64 characters, and supports only letters, digits, and hyphens (-). Changing this creates a new instance.
    AvailableZones []string
    IDs or Names of the AZs where cache nodes reside. For details on how to query AZs, see Querying AZ Information. Changing this creates a new instance.
    BackupAts []float64
    Day in a week on which backup starts. Range: 1–7. Where: 1 indicates Monday; 7 indicates Sunday. Changing this creates a new instance.
    BackupType string
    Backup type. Options: auto: automatic backup. manual: manual backup. Changing this creates a new instance.
    BeginAt string
    Time at which backup starts. "00:00-01:00" indicates that backup starts at 00:00:00. Changing this creates a new instance.
    Capacity float64
    Indicates the Cache capacity. Unit: GB. For a DCS Redis or Memcached instance in single-node or master/standby mode, the cache capacity can be 2 GB, 4 GB, 8 GB, 16 GB, 32 GB, or 64 GB. For a DCS Redis instance in cluster mode, the cache capacity can be 64, 128, 256, 512, or 1024 GB. Changing this creates a new instance.
    DcsInstanceV1Id string
    The resource ID in UUID format.
    Description string
    Indicates the description of an instance. It is a character string containing not more than 1024 characters.
    Engine string
    Indicates a cache engine. Valid values are Redis and Memcached. Changing this creates a new instance.
    EngineVersion string
    Indicates the version of a cache engine. This parameter is only supported and mandatory for Redis engine. Changing this creates a new instance.
    InstanceType string

    Deprecated: Deprecated

    InternalVersion string
    Internal DCS version.
    Ip string
    Cache node's IP address in tenant's VPC.
    MaintainBegin string
    Indicates the time at which a maintenance time window starts. Format: HH:mm:ss. The start time and end time of a maintenance time window must indicate the time segment of a supported maintenance time window. For details, see section Querying Maintenance Time Windows. The start time must be set to 22:00, 02:00, 06:00, 10:00, 14:00, or 18:00. Parameters maintain_begin and maintain_end must be set in pairs. If parameter maintain_begin is left blank, parameter maintain_end is also blank. In this case, the system automatically allocates the default start time 02:00.
    MaintainEnd string
    Indicates the time at which a maintenance time window ends. Format: HH:mm:ss. The start time and end time of a maintenance time window must indicate the time segment of a supported maintenance time window. For details, see section Querying Maintenance Time Windows. The end time is four hours later than the start time. For example, if the start time is 22:00, the end time is 02:00. Parameters maintain_begin and maintain_end must be set in pairs. If parameter maintain_end is left blank, parameter maintain_begin is also blank. In this case, the system automatically allocates the default end time 06:00.
    MaxMemory float64
    Overall memory size. Unit: MB.
    Name string
    Indicates the name of an instance. An instance name starts with a letter, consists of 4 to 64 characters, and supports only letters, digits, and hyphens (-).
    NetworkId string
    Specifies the ID of the VPC subnet. Changing this creates a new instance.
    Password string
    Password of a DCS instance. The password of a DCS Redis instance must meet the following complexity requirements: Changing this creates a new instance.
    PeriodType string
    Interval at which backup is performed. Currently, only weekly backup is supported. Changing this creates a new instance.
    Port float64
    Port customization, which is supported only by Redis 4.0 and Redis 5.0 instances and not by Redis 3.0 and Memcached instances. The values ranges from 1 to 65535. The default value is 6379. Changing this creates a new instance.
    ProductId string

    Product ID used to differentiate DCS instance types.

    • For Redis 4.0/5.0 instance, please use flexibleengine.getDcsProductV1 to get the ID of an available product.

    • For Redis 3.0 instance, the valid values are dcs.master_standby-h, dcs.single_node-h and dcs.cluster-h.

    • For Memcached instance, the valid values are dcs.memcached.master_standby-h and dcs.memcached.single_node-h.

    Changing this creates a new instance.

    ResourceSpecCode string
    Resource specifications. dcs.single_node: indicates a DCS instance in single-node mode. dcs.master_standby: indicates a DCS instance in master/standby mode. dcs.cluster: indicates a DCS instance in cluster mode.
    SaveDays float64
    Retention time. Unit: day. Range: 1–7. Changing this creates a new instance.
    SecurityGroupId string
    Specifies the id of the security group which the instance belongs to. This parameter is only supported and mandatory for Memcached and Redis 3.0 versions.
    SecurityGroupName string
    Indicates the name of a security group.
    Status string
    Status of the Cache instance.
    SubnetName string
    Indicates the name of a subnet.
    Timeouts DcsInstanceV1TimeoutsArgs
    UsedMemory float64
    Size of the used memory. Unit: MB.
    UserId string
    Indicates a user ID.
    VpcId string
    Specifies the id of the VPC. Changing this creates a new instance.
    VpcName string
    Indicates the name of a vpc.
    accessUser String
    Username used for accessing a DCS instance after password authentication. A username starts with a letter, consists of 1 to 64 characters, and supports only letters, digits, and hyphens (-). Changing this creates a new instance.
    availableZones List<String>
    IDs or Names of the AZs where cache nodes reside. For details on how to query AZs, see Querying AZ Information. Changing this creates a new instance.
    backupAts List<Double>
    Day in a week on which backup starts. Range: 1–7. Where: 1 indicates Monday; 7 indicates Sunday. Changing this creates a new instance.
    backupType String
    Backup type. Options: auto: automatic backup. manual: manual backup. Changing this creates a new instance.
    beginAt String
    Time at which backup starts. "00:00-01:00" indicates that backup starts at 00:00:00. Changing this creates a new instance.
    capacity Double
    Indicates the Cache capacity. Unit: GB. For a DCS Redis or Memcached instance in single-node or master/standby mode, the cache capacity can be 2 GB, 4 GB, 8 GB, 16 GB, 32 GB, or 64 GB. For a DCS Redis instance in cluster mode, the cache capacity can be 64, 128, 256, 512, or 1024 GB. Changing this creates a new instance.
    dcsInstanceV1Id String
    The resource ID in UUID format.
    description String
    Indicates the description of an instance. It is a character string containing not more than 1024 characters.
    engine String
    Indicates a cache engine. Valid values are Redis and Memcached. Changing this creates a new instance.
    engineVersion String
    Indicates the version of a cache engine. This parameter is only supported and mandatory for Redis engine. Changing this creates a new instance.
    instanceType String

    Deprecated: Deprecated

    internalVersion String
    Internal DCS version.
    ip String
    Cache node's IP address in tenant's VPC.
    maintainBegin String
    Indicates the time at which a maintenance time window starts. Format: HH:mm:ss. The start time and end time of a maintenance time window must indicate the time segment of a supported maintenance time window. For details, see section Querying Maintenance Time Windows. The start time must be set to 22:00, 02:00, 06:00, 10:00, 14:00, or 18:00. Parameters maintain_begin and maintain_end must be set in pairs. If parameter maintain_begin is left blank, parameter maintain_end is also blank. In this case, the system automatically allocates the default start time 02:00.
    maintainEnd String
    Indicates the time at which a maintenance time window ends. Format: HH:mm:ss. The start time and end time of a maintenance time window must indicate the time segment of a supported maintenance time window. For details, see section Querying Maintenance Time Windows. The end time is four hours later than the start time. For example, if the start time is 22:00, the end time is 02:00. Parameters maintain_begin and maintain_end must be set in pairs. If parameter maintain_end is left blank, parameter maintain_begin is also blank. In this case, the system automatically allocates the default end time 06:00.
    maxMemory Double
    Overall memory size. Unit: MB.
    name String
    Indicates the name of an instance. An instance name starts with a letter, consists of 4 to 64 characters, and supports only letters, digits, and hyphens (-).
    networkId String
    Specifies the ID of the VPC subnet. Changing this creates a new instance.
    password String
    Password of a DCS instance. The password of a DCS Redis instance must meet the following complexity requirements: Changing this creates a new instance.
    periodType String
    Interval at which backup is performed. Currently, only weekly backup is supported. Changing this creates a new instance.
    port Double
    Port customization, which is supported only by Redis 4.0 and Redis 5.0 instances and not by Redis 3.0 and Memcached instances. The values ranges from 1 to 65535. The default value is 6379. Changing this creates a new instance.
    productId String

    Product ID used to differentiate DCS instance types.

    • For Redis 4.0/5.0 instance, please use flexibleengine.getDcsProductV1 to get the ID of an available product.

    • For Redis 3.0 instance, the valid values are dcs.master_standby-h, dcs.single_node-h and dcs.cluster-h.

    • For Memcached instance, the valid values are dcs.memcached.master_standby-h and dcs.memcached.single_node-h.

    Changing this creates a new instance.

    resourceSpecCode String
    Resource specifications. dcs.single_node: indicates a DCS instance in single-node mode. dcs.master_standby: indicates a DCS instance in master/standby mode. dcs.cluster: indicates a DCS instance in cluster mode.
    saveDays Double
    Retention time. Unit: day. Range: 1–7. Changing this creates a new instance.
    securityGroupId String
    Specifies the id of the security group which the instance belongs to. This parameter is only supported and mandatory for Memcached and Redis 3.0 versions.
    securityGroupName String
    Indicates the name of a security group.
    status String
    Status of the Cache instance.
    subnetName String
    Indicates the name of a subnet.
    timeouts DcsInstanceV1Timeouts
    usedMemory Double
    Size of the used memory. Unit: MB.
    userId String
    Indicates a user ID.
    vpcId String
    Specifies the id of the VPC. Changing this creates a new instance.
    vpcName String
    Indicates the name of a vpc.
    accessUser string
    Username used for accessing a DCS instance after password authentication. A username starts with a letter, consists of 1 to 64 characters, and supports only letters, digits, and hyphens (-). Changing this creates a new instance.
    availableZones string[]
    IDs or Names of the AZs where cache nodes reside. For details on how to query AZs, see Querying AZ Information. Changing this creates a new instance.
    backupAts number[]
    Day in a week on which backup starts. Range: 1–7. Where: 1 indicates Monday; 7 indicates Sunday. Changing this creates a new instance.
    backupType string
    Backup type. Options: auto: automatic backup. manual: manual backup. Changing this creates a new instance.
    beginAt string
    Time at which backup starts. "00:00-01:00" indicates that backup starts at 00:00:00. Changing this creates a new instance.
    capacity number
    Indicates the Cache capacity. Unit: GB. For a DCS Redis or Memcached instance in single-node or master/standby mode, the cache capacity can be 2 GB, 4 GB, 8 GB, 16 GB, 32 GB, or 64 GB. For a DCS Redis instance in cluster mode, the cache capacity can be 64, 128, 256, 512, or 1024 GB. Changing this creates a new instance.
    dcsInstanceV1Id string
    The resource ID in UUID format.
    description string
    Indicates the description of an instance. It is a character string containing not more than 1024 characters.
    engine string
    Indicates a cache engine. Valid values are Redis and Memcached. Changing this creates a new instance.
    engineVersion string
    Indicates the version of a cache engine. This parameter is only supported and mandatory for Redis engine. Changing this creates a new instance.
    instanceType string

    Deprecated: Deprecated

    internalVersion string
    Internal DCS version.
    ip string
    Cache node's IP address in tenant's VPC.
    maintainBegin string
    Indicates the time at which a maintenance time window starts. Format: HH:mm:ss. The start time and end time of a maintenance time window must indicate the time segment of a supported maintenance time window. For details, see section Querying Maintenance Time Windows. The start time must be set to 22:00, 02:00, 06:00, 10:00, 14:00, or 18:00. Parameters maintain_begin and maintain_end must be set in pairs. If parameter maintain_begin is left blank, parameter maintain_end is also blank. In this case, the system automatically allocates the default start time 02:00.
    maintainEnd string
    Indicates the time at which a maintenance time window ends. Format: HH:mm:ss. The start time and end time of a maintenance time window must indicate the time segment of a supported maintenance time window. For details, see section Querying Maintenance Time Windows. The end time is four hours later than the start time. For example, if the start time is 22:00, the end time is 02:00. Parameters maintain_begin and maintain_end must be set in pairs. If parameter maintain_end is left blank, parameter maintain_begin is also blank. In this case, the system automatically allocates the default end time 06:00.
    maxMemory number
    Overall memory size. Unit: MB.
    name string
    Indicates the name of an instance. An instance name starts with a letter, consists of 4 to 64 characters, and supports only letters, digits, and hyphens (-).
    networkId string
    Specifies the ID of the VPC subnet. Changing this creates a new instance.
    password string
    Password of a DCS instance. The password of a DCS Redis instance must meet the following complexity requirements: Changing this creates a new instance.
    periodType string
    Interval at which backup is performed. Currently, only weekly backup is supported. Changing this creates a new instance.
    port number
    Port customization, which is supported only by Redis 4.0 and Redis 5.0 instances and not by Redis 3.0 and Memcached instances. The values ranges from 1 to 65535. The default value is 6379. Changing this creates a new instance.
    productId string

    Product ID used to differentiate DCS instance types.

    • For Redis 4.0/5.0 instance, please use flexibleengine.getDcsProductV1 to get the ID of an available product.

    • For Redis 3.0 instance, the valid values are dcs.master_standby-h, dcs.single_node-h and dcs.cluster-h.

    • For Memcached instance, the valid values are dcs.memcached.master_standby-h and dcs.memcached.single_node-h.

    Changing this creates a new instance.

    resourceSpecCode string
    Resource specifications. dcs.single_node: indicates a DCS instance in single-node mode. dcs.master_standby: indicates a DCS instance in master/standby mode. dcs.cluster: indicates a DCS instance in cluster mode.
    saveDays number
    Retention time. Unit: day. Range: 1–7. Changing this creates a new instance.
    securityGroupId string
    Specifies the id of the security group which the instance belongs to. This parameter is only supported and mandatory for Memcached and Redis 3.0 versions.
    securityGroupName string
    Indicates the name of a security group.
    status string
    Status of the Cache instance.
    subnetName string
    Indicates the name of a subnet.
    timeouts DcsInstanceV1Timeouts
    usedMemory number
    Size of the used memory. Unit: MB.
    userId string
    Indicates a user ID.
    vpcId string
    Specifies the id of the VPC. Changing this creates a new instance.
    vpcName string
    Indicates the name of a vpc.
    access_user str
    Username used for accessing a DCS instance after password authentication. A username starts with a letter, consists of 1 to 64 characters, and supports only letters, digits, and hyphens (-). Changing this creates a new instance.
    available_zones Sequence[str]
    IDs or Names of the AZs where cache nodes reside. For details on how to query AZs, see Querying AZ Information. Changing this creates a new instance.
    backup_ats Sequence[float]
    Day in a week on which backup starts. Range: 1–7. Where: 1 indicates Monday; 7 indicates Sunday. Changing this creates a new instance.
    backup_type str
    Backup type. Options: auto: automatic backup. manual: manual backup. Changing this creates a new instance.
    begin_at str
    Time at which backup starts. "00:00-01:00" indicates that backup starts at 00:00:00. Changing this creates a new instance.
    capacity float
    Indicates the Cache capacity. Unit: GB. For a DCS Redis or Memcached instance in single-node or master/standby mode, the cache capacity can be 2 GB, 4 GB, 8 GB, 16 GB, 32 GB, or 64 GB. For a DCS Redis instance in cluster mode, the cache capacity can be 64, 128, 256, 512, or 1024 GB. Changing this creates a new instance.
    dcs_instance_v1_id str
    The resource ID in UUID format.
    description str
    Indicates the description of an instance. It is a character string containing not more than 1024 characters.
    engine str
    Indicates a cache engine. Valid values are Redis and Memcached. Changing this creates a new instance.
    engine_version str
    Indicates the version of a cache engine. This parameter is only supported and mandatory for Redis engine. Changing this creates a new instance.
    instance_type str

    Deprecated: Deprecated

    internal_version str
    Internal DCS version.
    ip str
    Cache node's IP address in tenant's VPC.
    maintain_begin str
    Indicates the time at which a maintenance time window starts. Format: HH:mm:ss. The start time and end time of a maintenance time window must indicate the time segment of a supported maintenance time window. For details, see section Querying Maintenance Time Windows. The start time must be set to 22:00, 02:00, 06:00, 10:00, 14:00, or 18:00. Parameters maintain_begin and maintain_end must be set in pairs. If parameter maintain_begin is left blank, parameter maintain_end is also blank. In this case, the system automatically allocates the default start time 02:00.
    maintain_end str
    Indicates the time at which a maintenance time window ends. Format: HH:mm:ss. The start time and end time of a maintenance time window must indicate the time segment of a supported maintenance time window. For details, see section Querying Maintenance Time Windows. The end time is four hours later than the start time. For example, if the start time is 22:00, the end time is 02:00. Parameters maintain_begin and maintain_end must be set in pairs. If parameter maintain_end is left blank, parameter maintain_begin is also blank. In this case, the system automatically allocates the default end time 06:00.
    max_memory float
    Overall memory size. Unit: MB.
    name str
    Indicates the name of an instance. An instance name starts with a letter, consists of 4 to 64 characters, and supports only letters, digits, and hyphens (-).
    network_id str
    Specifies the ID of the VPC subnet. Changing this creates a new instance.
    password str
    Password of a DCS instance. The password of a DCS Redis instance must meet the following complexity requirements: Changing this creates a new instance.
    period_type str
    Interval at which backup is performed. Currently, only weekly backup is supported. Changing this creates a new instance.
    port float
    Port customization, which is supported only by Redis 4.0 and Redis 5.0 instances and not by Redis 3.0 and Memcached instances. The values ranges from 1 to 65535. The default value is 6379. Changing this creates a new instance.
    product_id str

    Product ID used to differentiate DCS instance types.

    • For Redis 4.0/5.0 instance, please use flexibleengine.getDcsProductV1 to get the ID of an available product.

    • For Redis 3.0 instance, the valid values are dcs.master_standby-h, dcs.single_node-h and dcs.cluster-h.

    • For Memcached instance, the valid values are dcs.memcached.master_standby-h and dcs.memcached.single_node-h.

    Changing this creates a new instance.

    resource_spec_code str
    Resource specifications. dcs.single_node: indicates a DCS instance in single-node mode. dcs.master_standby: indicates a DCS instance in master/standby mode. dcs.cluster: indicates a DCS instance in cluster mode.
    save_days float
    Retention time. Unit: day. Range: 1–7. Changing this creates a new instance.
    security_group_id str
    Specifies the id of the security group which the instance belongs to. This parameter is only supported and mandatory for Memcached and Redis 3.0 versions.
    security_group_name str
    Indicates the name of a security group.
    status str
    Status of the Cache instance.
    subnet_name str
    Indicates the name of a subnet.
    timeouts DcsInstanceV1TimeoutsArgs
    used_memory float
    Size of the used memory. Unit: MB.
    user_id str
    Indicates a user ID.
    vpc_id str
    Specifies the id of the VPC. Changing this creates a new instance.
    vpc_name str
    Indicates the name of a vpc.
    accessUser String
    Username used for accessing a DCS instance after password authentication. A username starts with a letter, consists of 1 to 64 characters, and supports only letters, digits, and hyphens (-). Changing this creates a new instance.
    availableZones List<String>
    IDs or Names of the AZs where cache nodes reside. For details on how to query AZs, see Querying AZ Information. Changing this creates a new instance.
    backupAts List<Number>
    Day in a week on which backup starts. Range: 1–7. Where: 1 indicates Monday; 7 indicates Sunday. Changing this creates a new instance.
    backupType String
    Backup type. Options: auto: automatic backup. manual: manual backup. Changing this creates a new instance.
    beginAt String
    Time at which backup starts. "00:00-01:00" indicates that backup starts at 00:00:00. Changing this creates a new instance.
    capacity Number
    Indicates the Cache capacity. Unit: GB. For a DCS Redis or Memcached instance in single-node or master/standby mode, the cache capacity can be 2 GB, 4 GB, 8 GB, 16 GB, 32 GB, or 64 GB. For a DCS Redis instance in cluster mode, the cache capacity can be 64, 128, 256, 512, or 1024 GB. Changing this creates a new instance.
    dcsInstanceV1Id String
    The resource ID in UUID format.
    description String
    Indicates the description of an instance. It is a character string containing not more than 1024 characters.
    engine String
    Indicates a cache engine. Valid values are Redis and Memcached. Changing this creates a new instance.
    engineVersion String
    Indicates the version of a cache engine. This parameter is only supported and mandatory for Redis engine. Changing this creates a new instance.
    instanceType String

    Deprecated: Deprecated

    internalVersion String
    Internal DCS version.
    ip String
    Cache node's IP address in tenant's VPC.
    maintainBegin String
    Indicates the time at which a maintenance time window starts. Format: HH:mm:ss. The start time and end time of a maintenance time window must indicate the time segment of a supported maintenance time window. For details, see section Querying Maintenance Time Windows. The start time must be set to 22:00, 02:00, 06:00, 10:00, 14:00, or 18:00. Parameters maintain_begin and maintain_end must be set in pairs. If parameter maintain_begin is left blank, parameter maintain_end is also blank. In this case, the system automatically allocates the default start time 02:00.
    maintainEnd String
    Indicates the time at which a maintenance time window ends. Format: HH:mm:ss. The start time and end time of a maintenance time window must indicate the time segment of a supported maintenance time window. For details, see section Querying Maintenance Time Windows. The end time is four hours later than the start time. For example, if the start time is 22:00, the end time is 02:00. Parameters maintain_begin and maintain_end must be set in pairs. If parameter maintain_end is left blank, parameter maintain_begin is also blank. In this case, the system automatically allocates the default end time 06:00.
    maxMemory Number
    Overall memory size. Unit: MB.
    name String
    Indicates the name of an instance. An instance name starts with a letter, consists of 4 to 64 characters, and supports only letters, digits, and hyphens (-).
    networkId String
    Specifies the ID of the VPC subnet. Changing this creates a new instance.
    password String
    Password of a DCS instance. The password of a DCS Redis instance must meet the following complexity requirements: Changing this creates a new instance.
    periodType String
    Interval at which backup is performed. Currently, only weekly backup is supported. Changing this creates a new instance.
    port Number
    Port customization, which is supported only by Redis 4.0 and Redis 5.0 instances and not by Redis 3.0 and Memcached instances. The values ranges from 1 to 65535. The default value is 6379. Changing this creates a new instance.
    productId String

    Product ID used to differentiate DCS instance types.

    • For Redis 4.0/5.0 instance, please use flexibleengine.getDcsProductV1 to get the ID of an available product.

    • For Redis 3.0 instance, the valid values are dcs.master_standby-h, dcs.single_node-h and dcs.cluster-h.

    • For Memcached instance, the valid values are dcs.memcached.master_standby-h and dcs.memcached.single_node-h.

    Changing this creates a new instance.

    resourceSpecCode String
    Resource specifications. dcs.single_node: indicates a DCS instance in single-node mode. dcs.master_standby: indicates a DCS instance in master/standby mode. dcs.cluster: indicates a DCS instance in cluster mode.
    saveDays Number
    Retention time. Unit: day. Range: 1–7. Changing this creates a new instance.
    securityGroupId String
    Specifies the id of the security group which the instance belongs to. This parameter is only supported and mandatory for Memcached and Redis 3.0 versions.
    securityGroupName String
    Indicates the name of a security group.
    status String
    Status of the Cache instance.
    subnetName String
    Indicates the name of a subnet.
    timeouts Property Map
    usedMemory Number
    Size of the used memory. Unit: MB.
    userId String
    Indicates a user ID.
    vpcId String
    Specifies the id of the VPC. Changing this creates a new instance.
    vpcName String
    Indicates the name of a vpc.

    Supporting Types

    DcsInstanceV1Timeouts, DcsInstanceV1TimeoutsArgs

    Create string
    Delete string
    Create string
    Delete string
    create String
    delete String
    create string
    delete string
    create str
    delete str
    create String
    delete String

    Import

    DCS instances can be imported using the id, e.g.

    $ pulumi import flexibleengine:index/dcsInstanceV1:DcsInstanceV1 instance_1 8a1b2c3d-4e5f-6g7h-8i9j-0k1l2m3n4o5p
    

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

    Package Details

    Repository
    flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
    License
    Notes
    This Pulumi package is based on the flexibleengine Terraform Provider.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud