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

tencentcloud.TrocketRocketmqInstance

Explore with Pulumi AI

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

    Provides a resource to create a rocketmq 5.x instance

    NOTE: It only supports create postpaid rocketmq 5.x instance.

    Example Usage

    Create Basic Instance

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    // create vpc
    const vpc = new tencentcloud.Vpc("vpc", {cidrBlock: "10.0.0.0/16"});
    // create vpc subnet
    const subnet = new tencentcloud.Subnet("subnet", {
        vpcId: vpc.vpcId,
        availabilityZone: "ap-guangzhou-6",
        cidrBlock: "10.0.20.0/28",
        isMulticast: false,
    });
    // create rocketmq instance
    const example = new tencentcloud.TrocketRocketmqInstance("example", {
        instanceType: "PRO",
        skuCode: "pro_4k",
        remark: "remark",
        vpcId: vpc.vpcId,
        subnetId: subnet.subnetId,
        tags: {
            tag_key: "rocketmq",
            tag_value: "5.x",
        },
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    # create vpc
    vpc = tencentcloud.Vpc("vpc", cidr_block="10.0.0.0/16")
    # create vpc subnet
    subnet = tencentcloud.Subnet("subnet",
        vpc_id=vpc.vpc_id,
        availability_zone="ap-guangzhou-6",
        cidr_block="10.0.20.0/28",
        is_multicast=False)
    # create rocketmq instance
    example = tencentcloud.TrocketRocketmqInstance("example",
        instance_type="PRO",
        sku_code="pro_4k",
        remark="remark",
        vpc_id=vpc.vpc_id,
        subnet_id=subnet.subnet_id,
        tags={
            "tag_key": "rocketmq",
            "tag_value": "5.x",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// create vpc
    		vpc, err := tencentcloud.NewVpc(ctx, "vpc", &tencentcloud.VpcArgs{
    			CidrBlock: pulumi.String("10.0.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		// create vpc subnet
    		subnet, err := tencentcloud.NewSubnet(ctx, "subnet", &tencentcloud.SubnetArgs{
    			VpcId:            vpc.VpcId,
    			AvailabilityZone: pulumi.String("ap-guangzhou-6"),
    			CidrBlock:        pulumi.String("10.0.20.0/28"),
    			IsMulticast:      pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		// create rocketmq instance
    		_, err = tencentcloud.NewTrocketRocketmqInstance(ctx, "example", &tencentcloud.TrocketRocketmqInstanceArgs{
    			InstanceType: pulumi.String("PRO"),
    			SkuCode:      pulumi.String("pro_4k"),
    			Remark:       pulumi.String("remark"),
    			VpcId:        vpc.VpcId,
    			SubnetId:     subnet.SubnetId,
    			Tags: pulumi.StringMap{
    				"tag_key":   pulumi.String("rocketmq"),
    				"tag_value": pulumi.String("5.x"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        // create vpc
        var vpc = new Tencentcloud.Vpc("vpc", new()
        {
            CidrBlock = "10.0.0.0/16",
        });
    
        // create vpc subnet
        var subnet = new Tencentcloud.Subnet("subnet", new()
        {
            VpcId = vpc.VpcId,
            AvailabilityZone = "ap-guangzhou-6",
            CidrBlock = "10.0.20.0/28",
            IsMulticast = false,
        });
    
        // create rocketmq instance
        var example = new Tencentcloud.TrocketRocketmqInstance("example", new()
        {
            InstanceType = "PRO",
            SkuCode = "pro_4k",
            Remark = "remark",
            VpcId = vpc.VpcId,
            SubnetId = subnet.SubnetId,
            Tags = 
            {
                { "tag_key", "rocketmq" },
                { "tag_value", "5.x" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.Vpc;
    import com.pulumi.tencentcloud.VpcArgs;
    import com.pulumi.tencentcloud.Subnet;
    import com.pulumi.tencentcloud.SubnetArgs;
    import com.pulumi.tencentcloud.TrocketRocketmqInstance;
    import com.pulumi.tencentcloud.TrocketRocketmqInstanceArgs;
    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) {
            // create vpc
            var vpc = new Vpc("vpc", VpcArgs.builder()
                .cidrBlock("10.0.0.0/16")
                .build());
    
            // create vpc subnet
            var subnet = new Subnet("subnet", SubnetArgs.builder()
                .vpcId(vpc.vpcId())
                .availabilityZone("ap-guangzhou-6")
                .cidrBlock("10.0.20.0/28")
                .isMulticast(false)
                .build());
    
            // create rocketmq instance
            var example = new TrocketRocketmqInstance("example", TrocketRocketmqInstanceArgs.builder()
                .instanceType("PRO")
                .skuCode("pro_4k")
                .remark("remark")
                .vpcId(vpc.vpcId())
                .subnetId(subnet.subnetId())
                .tags(Map.ofEntries(
                    Map.entry("tag_key", "rocketmq"),
                    Map.entry("tag_value", "5.x")
                ))
                .build());
    
        }
    }
    
    resources:
      # create vpc
      vpc:
        type: tencentcloud:Vpc
        properties:
          cidrBlock: 10.0.0.0/16
      # create vpc subnet
      subnet:
        type: tencentcloud:Subnet
        properties:
          vpcId: ${vpc.vpcId}
          availabilityZone: ap-guangzhou-6
          cidrBlock: 10.0.20.0/28
          isMulticast: false
      # create rocketmq instance
      example:
        type: tencentcloud:TrocketRocketmqInstance
        properties:
          instanceType: PRO
          skuCode: pro_4k
          remark: remark
          vpcId: ${vpc.vpcId}
          subnetId: ${subnet.subnetId}
          tags:
            tag_key: rocketmq
            tag_value: 5.x
    

    Create Enable Public Network Instance

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    // create vpc
    const vpc = new tencentcloud.Vpc("vpc", {cidrBlock: "10.0.0.0/16"});
    // create vpc subnet
    const subnet = new tencentcloud.Subnet("subnet", {
        vpcId: vpc.vpcId,
        availabilityZone: "ap-guangzhou-6",
        cidrBlock: "10.0.20.0/28",
        isMulticast: false,
    });
    // create rocketmq instance
    const example = new tencentcloud.TrocketRocketmqInstance("example", {
        instanceType: "PRO",
        skuCode: "pro_4k",
        remark: "remark",
        vpcId: vpc.vpcId,
        subnetId: subnet.subnetId,
        enablePublic: true,
        bandwidth: 10,
        tags: {
            tag_key: "rocketmq",
            tag_value: "5.x",
        },
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    # create vpc
    vpc = tencentcloud.Vpc("vpc", cidr_block="10.0.0.0/16")
    # create vpc subnet
    subnet = tencentcloud.Subnet("subnet",
        vpc_id=vpc.vpc_id,
        availability_zone="ap-guangzhou-6",
        cidr_block="10.0.20.0/28",
        is_multicast=False)
    # create rocketmq instance
    example = tencentcloud.TrocketRocketmqInstance("example",
        instance_type="PRO",
        sku_code="pro_4k",
        remark="remark",
        vpc_id=vpc.vpc_id,
        subnet_id=subnet.subnet_id,
        enable_public=True,
        bandwidth=10,
        tags={
            "tag_key": "rocketmq",
            "tag_value": "5.x",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// create vpc
    		vpc, err := tencentcloud.NewVpc(ctx, "vpc", &tencentcloud.VpcArgs{
    			CidrBlock: pulumi.String("10.0.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		// create vpc subnet
    		subnet, err := tencentcloud.NewSubnet(ctx, "subnet", &tencentcloud.SubnetArgs{
    			VpcId:            vpc.VpcId,
    			AvailabilityZone: pulumi.String("ap-guangzhou-6"),
    			CidrBlock:        pulumi.String("10.0.20.0/28"),
    			IsMulticast:      pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		// create rocketmq instance
    		_, err = tencentcloud.NewTrocketRocketmqInstance(ctx, "example", &tencentcloud.TrocketRocketmqInstanceArgs{
    			InstanceType: pulumi.String("PRO"),
    			SkuCode:      pulumi.String("pro_4k"),
    			Remark:       pulumi.String("remark"),
    			VpcId:        vpc.VpcId,
    			SubnetId:     subnet.SubnetId,
    			EnablePublic: pulumi.Bool(true),
    			Bandwidth:    pulumi.Float64(10),
    			Tags: pulumi.StringMap{
    				"tag_key":   pulumi.String("rocketmq"),
    				"tag_value": pulumi.String("5.x"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        // create vpc
        var vpc = new Tencentcloud.Vpc("vpc", new()
        {
            CidrBlock = "10.0.0.0/16",
        });
    
        // create vpc subnet
        var subnet = new Tencentcloud.Subnet("subnet", new()
        {
            VpcId = vpc.VpcId,
            AvailabilityZone = "ap-guangzhou-6",
            CidrBlock = "10.0.20.0/28",
            IsMulticast = false,
        });
    
        // create rocketmq instance
        var example = new Tencentcloud.TrocketRocketmqInstance("example", new()
        {
            InstanceType = "PRO",
            SkuCode = "pro_4k",
            Remark = "remark",
            VpcId = vpc.VpcId,
            SubnetId = subnet.SubnetId,
            EnablePublic = true,
            Bandwidth = 10,
            Tags = 
            {
                { "tag_key", "rocketmq" },
                { "tag_value", "5.x" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.Vpc;
    import com.pulumi.tencentcloud.VpcArgs;
    import com.pulumi.tencentcloud.Subnet;
    import com.pulumi.tencentcloud.SubnetArgs;
    import com.pulumi.tencentcloud.TrocketRocketmqInstance;
    import com.pulumi.tencentcloud.TrocketRocketmqInstanceArgs;
    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) {
            // create vpc
            var vpc = new Vpc("vpc", VpcArgs.builder()
                .cidrBlock("10.0.0.0/16")
                .build());
    
            // create vpc subnet
            var subnet = new Subnet("subnet", SubnetArgs.builder()
                .vpcId(vpc.vpcId())
                .availabilityZone("ap-guangzhou-6")
                .cidrBlock("10.0.20.0/28")
                .isMulticast(false)
                .build());
    
            // create rocketmq instance
            var example = new TrocketRocketmqInstance("example", TrocketRocketmqInstanceArgs.builder()
                .instanceType("PRO")
                .skuCode("pro_4k")
                .remark("remark")
                .vpcId(vpc.vpcId())
                .subnetId(subnet.subnetId())
                .enablePublic(true)
                .bandwidth(10)
                .tags(Map.ofEntries(
                    Map.entry("tag_key", "rocketmq"),
                    Map.entry("tag_value", "5.x")
                ))
                .build());
    
        }
    }
    
    resources:
      # create vpc
      vpc:
        type: tencentcloud:Vpc
        properties:
          cidrBlock: 10.0.0.0/16
      # create vpc subnet
      subnet:
        type: tencentcloud:Subnet
        properties:
          vpcId: ${vpc.vpcId}
          availabilityZone: ap-guangzhou-6
          cidrBlock: 10.0.20.0/28
          isMulticast: false
      # create rocketmq instance
      example:
        type: tencentcloud:TrocketRocketmqInstance
        properties:
          instanceType: PRO
          skuCode: pro_4k
          remark: remark
          vpcId: ${vpc.vpcId}
          subnetId: ${subnet.subnetId}
          enablePublic: true
          bandwidth: 10
          tags:
            tag_key: rocketmq
            tag_value: 5.x
    

    Create TrocketRocketmqInstance Resource

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

    Constructor syntax

    new TrocketRocketmqInstance(name: string, args: TrocketRocketmqInstanceArgs, opts?: CustomResourceOptions);
    @overload
    def TrocketRocketmqInstance(resource_name: str,
                                args: TrocketRocketmqInstanceArgs,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def TrocketRocketmqInstance(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                instance_type: Optional[str] = None,
                                sku_code: Optional[str] = None,
                                subnet_id: Optional[str] = None,
                                vpc_id: Optional[str] = None,
                                bandwidth: Optional[float] = None,
                                enable_public: Optional[bool] = None,
                                ip_rules: Optional[Sequence[TrocketRocketmqInstanceIpRuleArgs]] = None,
                                message_retention: Optional[float] = None,
                                name: Optional[str] = None,
                                remark: Optional[str] = None,
                                tags: Optional[Mapping[str, str]] = None,
                                trocket_rocketmq_instance_id: Optional[str] = None)
    func NewTrocketRocketmqInstance(ctx *Context, name string, args TrocketRocketmqInstanceArgs, opts ...ResourceOption) (*TrocketRocketmqInstance, error)
    public TrocketRocketmqInstance(string name, TrocketRocketmqInstanceArgs args, CustomResourceOptions? opts = null)
    public TrocketRocketmqInstance(String name, TrocketRocketmqInstanceArgs args)
    public TrocketRocketmqInstance(String name, TrocketRocketmqInstanceArgs args, CustomResourceOptions options)
    
    type: tencentcloud:TrocketRocketmqInstance
    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 TrocketRocketmqInstanceArgs
    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 TrocketRocketmqInstanceArgs
    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 TrocketRocketmqInstanceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TrocketRocketmqInstanceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TrocketRocketmqInstanceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    InstanceType string
    Instance type. Valid values: EXPERIMENT, BASIC, PRO, PLATINUM.
    SkuCode string
    SKU code. Available specifications are as follows: experiment_500, basic_1k, basic_2k, basic_3k, basic_4k, basic_5k, basic_6k, basic_7k, basic_8k, basic_9k, basic_10k, pro_4k, pro_6k, pro_8k, pro_1w, pro_15k, pro_2w, pro_25k, pro_3w, pro_35k, pro_4w, pro_45k, pro_5w, pro_55k, pro_60k, pro_65k, pro_70k, pro_75k, pro_80k, pro_85k, pro_90k, pro_95k, pro_100k, platinum_1w, platinum_2w, platinum_3w, platinum_4w, platinum_5w, platinum_6w, platinum_7w, platinum_8w, platinum_9w, platinum_10w, platinum_12w, platinum_14w, platinum_16w, platinum_18w, platinum_20w, platinum_25w, platinum_30w, platinum_35w, platinum_40w, platinum_45w, platinum_50w, platinum_60w, platinum_70w, platinum_80w, platinum_90w, platinum_100w.
    SubnetId string
    Subnet id.
    VpcId string
    VPC id.
    Bandwidth double
    Public network bandwidth. bandwidth must be greater than zero when enable_public equal true.
    EnablePublic bool
    Whether to enable the public network. Must set bandwidth when enable_public equal true.
    IpRules List<TrocketRocketmqInstanceIpRule>
    Public network access whitelist.
    MessageRetention double
    Message retention time in hours.
    Name string
    Instance name.
    Remark string
    Remark.
    Tags Dictionary<string, string>
    Tag description list.
    TrocketRocketmqInstanceId string
    ID of the resource.
    InstanceType string
    Instance type. Valid values: EXPERIMENT, BASIC, PRO, PLATINUM.
    SkuCode string
    SKU code. Available specifications are as follows: experiment_500, basic_1k, basic_2k, basic_3k, basic_4k, basic_5k, basic_6k, basic_7k, basic_8k, basic_9k, basic_10k, pro_4k, pro_6k, pro_8k, pro_1w, pro_15k, pro_2w, pro_25k, pro_3w, pro_35k, pro_4w, pro_45k, pro_5w, pro_55k, pro_60k, pro_65k, pro_70k, pro_75k, pro_80k, pro_85k, pro_90k, pro_95k, pro_100k, platinum_1w, platinum_2w, platinum_3w, platinum_4w, platinum_5w, platinum_6w, platinum_7w, platinum_8w, platinum_9w, platinum_10w, platinum_12w, platinum_14w, platinum_16w, platinum_18w, platinum_20w, platinum_25w, platinum_30w, platinum_35w, platinum_40w, platinum_45w, platinum_50w, platinum_60w, platinum_70w, platinum_80w, platinum_90w, platinum_100w.
    SubnetId string
    Subnet id.
    VpcId string
    VPC id.
    Bandwidth float64
    Public network bandwidth. bandwidth must be greater than zero when enable_public equal true.
    EnablePublic bool
    Whether to enable the public network. Must set bandwidth when enable_public equal true.
    IpRules []TrocketRocketmqInstanceIpRuleArgs
    Public network access whitelist.
    MessageRetention float64
    Message retention time in hours.
    Name string
    Instance name.
    Remark string
    Remark.
    Tags map[string]string
    Tag description list.
    TrocketRocketmqInstanceId string
    ID of the resource.
    instanceType String
    Instance type. Valid values: EXPERIMENT, BASIC, PRO, PLATINUM.
    skuCode String
    SKU code. Available specifications are as follows: experiment_500, basic_1k, basic_2k, basic_3k, basic_4k, basic_5k, basic_6k, basic_7k, basic_8k, basic_9k, basic_10k, pro_4k, pro_6k, pro_8k, pro_1w, pro_15k, pro_2w, pro_25k, pro_3w, pro_35k, pro_4w, pro_45k, pro_5w, pro_55k, pro_60k, pro_65k, pro_70k, pro_75k, pro_80k, pro_85k, pro_90k, pro_95k, pro_100k, platinum_1w, platinum_2w, platinum_3w, platinum_4w, platinum_5w, platinum_6w, platinum_7w, platinum_8w, platinum_9w, platinum_10w, platinum_12w, platinum_14w, platinum_16w, platinum_18w, platinum_20w, platinum_25w, platinum_30w, platinum_35w, platinum_40w, platinum_45w, platinum_50w, platinum_60w, platinum_70w, platinum_80w, platinum_90w, platinum_100w.
    subnetId String
    Subnet id.
    vpcId String
    VPC id.
    bandwidth Double
    Public network bandwidth. bandwidth must be greater than zero when enable_public equal true.
    enablePublic Boolean
    Whether to enable the public network. Must set bandwidth when enable_public equal true.
    ipRules List<TrocketRocketmqInstanceIpRule>
    Public network access whitelist.
    messageRetention Double
    Message retention time in hours.
    name String
    Instance name.
    remark String
    Remark.
    tags Map<String,String>
    Tag description list.
    trocketRocketmqInstanceId String
    ID of the resource.
    instanceType string
    Instance type. Valid values: EXPERIMENT, BASIC, PRO, PLATINUM.
    skuCode string
    SKU code. Available specifications are as follows: experiment_500, basic_1k, basic_2k, basic_3k, basic_4k, basic_5k, basic_6k, basic_7k, basic_8k, basic_9k, basic_10k, pro_4k, pro_6k, pro_8k, pro_1w, pro_15k, pro_2w, pro_25k, pro_3w, pro_35k, pro_4w, pro_45k, pro_5w, pro_55k, pro_60k, pro_65k, pro_70k, pro_75k, pro_80k, pro_85k, pro_90k, pro_95k, pro_100k, platinum_1w, platinum_2w, platinum_3w, platinum_4w, platinum_5w, platinum_6w, platinum_7w, platinum_8w, platinum_9w, platinum_10w, platinum_12w, platinum_14w, platinum_16w, platinum_18w, platinum_20w, platinum_25w, platinum_30w, platinum_35w, platinum_40w, platinum_45w, platinum_50w, platinum_60w, platinum_70w, platinum_80w, platinum_90w, platinum_100w.
    subnetId string
    Subnet id.
    vpcId string
    VPC id.
    bandwidth number
    Public network bandwidth. bandwidth must be greater than zero when enable_public equal true.
    enablePublic boolean
    Whether to enable the public network. Must set bandwidth when enable_public equal true.
    ipRules TrocketRocketmqInstanceIpRule[]
    Public network access whitelist.
    messageRetention number
    Message retention time in hours.
    name string
    Instance name.
    remark string
    Remark.
    tags {[key: string]: string}
    Tag description list.
    trocketRocketmqInstanceId string
    ID of the resource.
    instance_type str
    Instance type. Valid values: EXPERIMENT, BASIC, PRO, PLATINUM.
    sku_code str
    SKU code. Available specifications are as follows: experiment_500, basic_1k, basic_2k, basic_3k, basic_4k, basic_5k, basic_6k, basic_7k, basic_8k, basic_9k, basic_10k, pro_4k, pro_6k, pro_8k, pro_1w, pro_15k, pro_2w, pro_25k, pro_3w, pro_35k, pro_4w, pro_45k, pro_5w, pro_55k, pro_60k, pro_65k, pro_70k, pro_75k, pro_80k, pro_85k, pro_90k, pro_95k, pro_100k, platinum_1w, platinum_2w, platinum_3w, platinum_4w, platinum_5w, platinum_6w, platinum_7w, platinum_8w, platinum_9w, platinum_10w, platinum_12w, platinum_14w, platinum_16w, platinum_18w, platinum_20w, platinum_25w, platinum_30w, platinum_35w, platinum_40w, platinum_45w, platinum_50w, platinum_60w, platinum_70w, platinum_80w, platinum_90w, platinum_100w.
    subnet_id str
    Subnet id.
    vpc_id str
    VPC id.
    bandwidth float
    Public network bandwidth. bandwidth must be greater than zero when enable_public equal true.
    enable_public bool
    Whether to enable the public network. Must set bandwidth when enable_public equal true.
    ip_rules Sequence[TrocketRocketmqInstanceIpRuleArgs]
    Public network access whitelist.
    message_retention float
    Message retention time in hours.
    name str
    Instance name.
    remark str
    Remark.
    tags Mapping[str, str]
    Tag description list.
    trocket_rocketmq_instance_id str
    ID of the resource.
    instanceType String
    Instance type. Valid values: EXPERIMENT, BASIC, PRO, PLATINUM.
    skuCode String
    SKU code. Available specifications are as follows: experiment_500, basic_1k, basic_2k, basic_3k, basic_4k, basic_5k, basic_6k, basic_7k, basic_8k, basic_9k, basic_10k, pro_4k, pro_6k, pro_8k, pro_1w, pro_15k, pro_2w, pro_25k, pro_3w, pro_35k, pro_4w, pro_45k, pro_5w, pro_55k, pro_60k, pro_65k, pro_70k, pro_75k, pro_80k, pro_85k, pro_90k, pro_95k, pro_100k, platinum_1w, platinum_2w, platinum_3w, platinum_4w, platinum_5w, platinum_6w, platinum_7w, platinum_8w, platinum_9w, platinum_10w, platinum_12w, platinum_14w, platinum_16w, platinum_18w, platinum_20w, platinum_25w, platinum_30w, platinum_35w, platinum_40w, platinum_45w, platinum_50w, platinum_60w, platinum_70w, platinum_80w, platinum_90w, platinum_100w.
    subnetId String
    Subnet id.
    vpcId String
    VPC id.
    bandwidth Number
    Public network bandwidth. bandwidth must be greater than zero when enable_public equal true.
    enablePublic Boolean
    Whether to enable the public network. Must set bandwidth when enable_public equal true.
    ipRules List<Property Map>
    Public network access whitelist.
    messageRetention Number
    Message retention time in hours.
    name String
    Instance name.
    remark String
    Remark.
    tags Map<String>
    Tag description list.
    trocketRocketmqInstanceId String
    ID of the resource.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    PublicEndPoint string
    Public network access address.
    VpcEndPoint string
    VPC access address.
    Id string
    The provider-assigned unique ID for this managed resource.
    PublicEndPoint string
    Public network access address.
    VpcEndPoint string
    VPC access address.
    id String
    The provider-assigned unique ID for this managed resource.
    publicEndPoint String
    Public network access address.
    vpcEndPoint String
    VPC access address.
    id string
    The provider-assigned unique ID for this managed resource.
    publicEndPoint string
    Public network access address.
    vpcEndPoint string
    VPC access address.
    id str
    The provider-assigned unique ID for this managed resource.
    public_end_point str
    Public network access address.
    vpc_end_point str
    VPC access address.
    id String
    The provider-assigned unique ID for this managed resource.
    publicEndPoint String
    Public network access address.
    vpcEndPoint String
    VPC access address.

    Look up Existing TrocketRocketmqInstance Resource

    Get an existing TrocketRocketmqInstance 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?: TrocketRocketmqInstanceState, opts?: CustomResourceOptions): TrocketRocketmqInstance
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            bandwidth: Optional[float] = None,
            enable_public: Optional[bool] = None,
            instance_type: Optional[str] = None,
            ip_rules: Optional[Sequence[TrocketRocketmqInstanceIpRuleArgs]] = None,
            message_retention: Optional[float] = None,
            name: Optional[str] = None,
            public_end_point: Optional[str] = None,
            remark: Optional[str] = None,
            sku_code: Optional[str] = None,
            subnet_id: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            trocket_rocketmq_instance_id: Optional[str] = None,
            vpc_end_point: Optional[str] = None,
            vpc_id: Optional[str] = None) -> TrocketRocketmqInstance
    func GetTrocketRocketmqInstance(ctx *Context, name string, id IDInput, state *TrocketRocketmqInstanceState, opts ...ResourceOption) (*TrocketRocketmqInstance, error)
    public static TrocketRocketmqInstance Get(string name, Input<string> id, TrocketRocketmqInstanceState? state, CustomResourceOptions? opts = null)
    public static TrocketRocketmqInstance get(String name, Output<String> id, TrocketRocketmqInstanceState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:TrocketRocketmqInstance    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:
    Bandwidth double
    Public network bandwidth. bandwidth must be greater than zero when enable_public equal true.
    EnablePublic bool
    Whether to enable the public network. Must set bandwidth when enable_public equal true.
    InstanceType string
    Instance type. Valid values: EXPERIMENT, BASIC, PRO, PLATINUM.
    IpRules List<TrocketRocketmqInstanceIpRule>
    Public network access whitelist.
    MessageRetention double
    Message retention time in hours.
    Name string
    Instance name.
    PublicEndPoint string
    Public network access address.
    Remark string
    Remark.
    SkuCode string
    SKU code. Available specifications are as follows: experiment_500, basic_1k, basic_2k, basic_3k, basic_4k, basic_5k, basic_6k, basic_7k, basic_8k, basic_9k, basic_10k, pro_4k, pro_6k, pro_8k, pro_1w, pro_15k, pro_2w, pro_25k, pro_3w, pro_35k, pro_4w, pro_45k, pro_5w, pro_55k, pro_60k, pro_65k, pro_70k, pro_75k, pro_80k, pro_85k, pro_90k, pro_95k, pro_100k, platinum_1w, platinum_2w, platinum_3w, platinum_4w, platinum_5w, platinum_6w, platinum_7w, platinum_8w, platinum_9w, platinum_10w, platinum_12w, platinum_14w, platinum_16w, platinum_18w, platinum_20w, platinum_25w, platinum_30w, platinum_35w, platinum_40w, platinum_45w, platinum_50w, platinum_60w, platinum_70w, platinum_80w, platinum_90w, platinum_100w.
    SubnetId string
    Subnet id.
    Tags Dictionary<string, string>
    Tag description list.
    TrocketRocketmqInstanceId string
    ID of the resource.
    VpcEndPoint string
    VPC access address.
    VpcId string
    VPC id.
    Bandwidth float64
    Public network bandwidth. bandwidth must be greater than zero when enable_public equal true.
    EnablePublic bool
    Whether to enable the public network. Must set bandwidth when enable_public equal true.
    InstanceType string
    Instance type. Valid values: EXPERIMENT, BASIC, PRO, PLATINUM.
    IpRules []TrocketRocketmqInstanceIpRuleArgs
    Public network access whitelist.
    MessageRetention float64
    Message retention time in hours.
    Name string
    Instance name.
    PublicEndPoint string
    Public network access address.
    Remark string
    Remark.
    SkuCode string
    SKU code. Available specifications are as follows: experiment_500, basic_1k, basic_2k, basic_3k, basic_4k, basic_5k, basic_6k, basic_7k, basic_8k, basic_9k, basic_10k, pro_4k, pro_6k, pro_8k, pro_1w, pro_15k, pro_2w, pro_25k, pro_3w, pro_35k, pro_4w, pro_45k, pro_5w, pro_55k, pro_60k, pro_65k, pro_70k, pro_75k, pro_80k, pro_85k, pro_90k, pro_95k, pro_100k, platinum_1w, platinum_2w, platinum_3w, platinum_4w, platinum_5w, platinum_6w, platinum_7w, platinum_8w, platinum_9w, platinum_10w, platinum_12w, platinum_14w, platinum_16w, platinum_18w, platinum_20w, platinum_25w, platinum_30w, platinum_35w, platinum_40w, platinum_45w, platinum_50w, platinum_60w, platinum_70w, platinum_80w, platinum_90w, platinum_100w.
    SubnetId string
    Subnet id.
    Tags map[string]string
    Tag description list.
    TrocketRocketmqInstanceId string
    ID of the resource.
    VpcEndPoint string
    VPC access address.
    VpcId string
    VPC id.
    bandwidth Double
    Public network bandwidth. bandwidth must be greater than zero when enable_public equal true.
    enablePublic Boolean
    Whether to enable the public network. Must set bandwidth when enable_public equal true.
    instanceType String
    Instance type. Valid values: EXPERIMENT, BASIC, PRO, PLATINUM.
    ipRules List<TrocketRocketmqInstanceIpRule>
    Public network access whitelist.
    messageRetention Double
    Message retention time in hours.
    name String
    Instance name.
    publicEndPoint String
    Public network access address.
    remark String
    Remark.
    skuCode String
    SKU code. Available specifications are as follows: experiment_500, basic_1k, basic_2k, basic_3k, basic_4k, basic_5k, basic_6k, basic_7k, basic_8k, basic_9k, basic_10k, pro_4k, pro_6k, pro_8k, pro_1w, pro_15k, pro_2w, pro_25k, pro_3w, pro_35k, pro_4w, pro_45k, pro_5w, pro_55k, pro_60k, pro_65k, pro_70k, pro_75k, pro_80k, pro_85k, pro_90k, pro_95k, pro_100k, platinum_1w, platinum_2w, platinum_3w, platinum_4w, platinum_5w, platinum_6w, platinum_7w, platinum_8w, platinum_9w, platinum_10w, platinum_12w, platinum_14w, platinum_16w, platinum_18w, platinum_20w, platinum_25w, platinum_30w, platinum_35w, platinum_40w, platinum_45w, platinum_50w, platinum_60w, platinum_70w, platinum_80w, platinum_90w, platinum_100w.
    subnetId String
    Subnet id.
    tags Map<String,String>
    Tag description list.
    trocketRocketmqInstanceId String
    ID of the resource.
    vpcEndPoint String
    VPC access address.
    vpcId String
    VPC id.
    bandwidth number
    Public network bandwidth. bandwidth must be greater than zero when enable_public equal true.
    enablePublic boolean
    Whether to enable the public network. Must set bandwidth when enable_public equal true.
    instanceType string
    Instance type. Valid values: EXPERIMENT, BASIC, PRO, PLATINUM.
    ipRules TrocketRocketmqInstanceIpRule[]
    Public network access whitelist.
    messageRetention number
    Message retention time in hours.
    name string
    Instance name.
    publicEndPoint string
    Public network access address.
    remark string
    Remark.
    skuCode string
    SKU code. Available specifications are as follows: experiment_500, basic_1k, basic_2k, basic_3k, basic_4k, basic_5k, basic_6k, basic_7k, basic_8k, basic_9k, basic_10k, pro_4k, pro_6k, pro_8k, pro_1w, pro_15k, pro_2w, pro_25k, pro_3w, pro_35k, pro_4w, pro_45k, pro_5w, pro_55k, pro_60k, pro_65k, pro_70k, pro_75k, pro_80k, pro_85k, pro_90k, pro_95k, pro_100k, platinum_1w, platinum_2w, platinum_3w, platinum_4w, platinum_5w, platinum_6w, platinum_7w, platinum_8w, platinum_9w, platinum_10w, platinum_12w, platinum_14w, platinum_16w, platinum_18w, platinum_20w, platinum_25w, platinum_30w, platinum_35w, platinum_40w, platinum_45w, platinum_50w, platinum_60w, platinum_70w, platinum_80w, platinum_90w, platinum_100w.
    subnetId string
    Subnet id.
    tags {[key: string]: string}
    Tag description list.
    trocketRocketmqInstanceId string
    ID of the resource.
    vpcEndPoint string
    VPC access address.
    vpcId string
    VPC id.
    bandwidth float
    Public network bandwidth. bandwidth must be greater than zero when enable_public equal true.
    enable_public bool
    Whether to enable the public network. Must set bandwidth when enable_public equal true.
    instance_type str
    Instance type. Valid values: EXPERIMENT, BASIC, PRO, PLATINUM.
    ip_rules Sequence[TrocketRocketmqInstanceIpRuleArgs]
    Public network access whitelist.
    message_retention float
    Message retention time in hours.
    name str
    Instance name.
    public_end_point str
    Public network access address.
    remark str
    Remark.
    sku_code str
    SKU code. Available specifications are as follows: experiment_500, basic_1k, basic_2k, basic_3k, basic_4k, basic_5k, basic_6k, basic_7k, basic_8k, basic_9k, basic_10k, pro_4k, pro_6k, pro_8k, pro_1w, pro_15k, pro_2w, pro_25k, pro_3w, pro_35k, pro_4w, pro_45k, pro_5w, pro_55k, pro_60k, pro_65k, pro_70k, pro_75k, pro_80k, pro_85k, pro_90k, pro_95k, pro_100k, platinum_1w, platinum_2w, platinum_3w, platinum_4w, platinum_5w, platinum_6w, platinum_7w, platinum_8w, platinum_9w, platinum_10w, platinum_12w, platinum_14w, platinum_16w, platinum_18w, platinum_20w, platinum_25w, platinum_30w, platinum_35w, platinum_40w, platinum_45w, platinum_50w, platinum_60w, platinum_70w, platinum_80w, platinum_90w, platinum_100w.
    subnet_id str
    Subnet id.
    tags Mapping[str, str]
    Tag description list.
    trocket_rocketmq_instance_id str
    ID of the resource.
    vpc_end_point str
    VPC access address.
    vpc_id str
    VPC id.
    bandwidth Number
    Public network bandwidth. bandwidth must be greater than zero when enable_public equal true.
    enablePublic Boolean
    Whether to enable the public network. Must set bandwidth when enable_public equal true.
    instanceType String
    Instance type. Valid values: EXPERIMENT, BASIC, PRO, PLATINUM.
    ipRules List<Property Map>
    Public network access whitelist.
    messageRetention Number
    Message retention time in hours.
    name String
    Instance name.
    publicEndPoint String
    Public network access address.
    remark String
    Remark.
    skuCode String
    SKU code. Available specifications are as follows: experiment_500, basic_1k, basic_2k, basic_3k, basic_4k, basic_5k, basic_6k, basic_7k, basic_8k, basic_9k, basic_10k, pro_4k, pro_6k, pro_8k, pro_1w, pro_15k, pro_2w, pro_25k, pro_3w, pro_35k, pro_4w, pro_45k, pro_5w, pro_55k, pro_60k, pro_65k, pro_70k, pro_75k, pro_80k, pro_85k, pro_90k, pro_95k, pro_100k, platinum_1w, platinum_2w, platinum_3w, platinum_4w, platinum_5w, platinum_6w, platinum_7w, platinum_8w, platinum_9w, platinum_10w, platinum_12w, platinum_14w, platinum_16w, platinum_18w, platinum_20w, platinum_25w, platinum_30w, platinum_35w, platinum_40w, platinum_45w, platinum_50w, platinum_60w, platinum_70w, platinum_80w, platinum_90w, platinum_100w.
    subnetId String
    Subnet id.
    tags Map<String>
    Tag description list.
    trocketRocketmqInstanceId String
    ID of the resource.
    vpcEndPoint String
    VPC access address.
    vpcId String
    VPC id.

    Supporting Types

    TrocketRocketmqInstanceIpRule, TrocketRocketmqInstanceIpRuleArgs

    Allow bool
    Whether to allow release or not.
    Ip string
    IP.
    Remark string
    Remark.
    Allow bool
    Whether to allow release or not.
    Ip string
    IP.
    Remark string
    Remark.
    allow Boolean
    Whether to allow release or not.
    ip String
    IP.
    remark String
    Remark.
    allow boolean
    Whether to allow release or not.
    ip string
    IP.
    remark string
    Remark.
    allow bool
    Whether to allow release or not.
    ip str
    IP.
    remark str
    Remark.
    allow Boolean
    Whether to allow release or not.
    ip String
    IP.
    remark String
    Remark.

    Import

    trocket rocketmq_instance can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/trocketRocketmqInstance:TrocketRocketmqInstance rocketmq_instance rmq-n5qado7m
    

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

    Package Details

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