tencentcloud.TrocketRocketmqInstance
Explore with Pulumi AI
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:
- Instance
Type string - Instance type. Valid values:
EXPERIMENT
,BASIC
,PRO
,PLATINUM
. - Sku
Code 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.
- Subnet
Id string - Subnet id.
- Vpc
Id string - VPC id.
- Bandwidth double
- Public network bandwidth.
bandwidth
must be greater than zero whenenable_public
equal true. - Enable
Public bool - Whether to enable the public network. Must set
bandwidth
whenenable_public
equal true. - Ip
Rules List<TrocketRocketmq Instance Ip Rule> - Public network access whitelist.
- Message
Retention double - Message retention time in hours.
- Name string
- Instance name.
- Remark string
- Remark.
- Dictionary<string, string>
- Tag description list.
- Trocket
Rocketmq stringInstance Id - ID of the resource.
- Instance
Type string - Instance type. Valid values:
EXPERIMENT
,BASIC
,PRO
,PLATINUM
. - Sku
Code 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.
- Subnet
Id string - Subnet id.
- Vpc
Id string - VPC id.
- Bandwidth float64
- Public network bandwidth.
bandwidth
must be greater than zero whenenable_public
equal true. - Enable
Public bool - Whether to enable the public network. Must set
bandwidth
whenenable_public
equal true. - Ip
Rules []TrocketRocketmq Instance Ip Rule Args - Public network access whitelist.
- Message
Retention float64 - Message retention time in hours.
- Name string
- Instance name.
- Remark string
- Remark.
- map[string]string
- Tag description list.
- Trocket
Rocketmq stringInstance Id - ID of the resource.
- instance
Type String - Instance type. Valid values:
EXPERIMENT
,BASIC
,PRO
,PLATINUM
. - sku
Code 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.
- subnet
Id String - Subnet id.
- vpc
Id String - VPC id.
- bandwidth Double
- Public network bandwidth.
bandwidth
must be greater than zero whenenable_public
equal true. - enable
Public Boolean - Whether to enable the public network. Must set
bandwidth
whenenable_public
equal true. - ip
Rules List<TrocketRocketmq Instance Ip Rule> - Public network access whitelist.
- message
Retention Double - Message retention time in hours.
- name String
- Instance name.
- remark String
- Remark.
- Map<String,String>
- Tag description list.
- trocket
Rocketmq StringInstance Id - ID of the resource.
- instance
Type string - Instance type. Valid values:
EXPERIMENT
,BASIC
,PRO
,PLATINUM
. - sku
Code 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.
- subnet
Id string - Subnet id.
- vpc
Id string - VPC id.
- bandwidth number
- Public network bandwidth.
bandwidth
must be greater than zero whenenable_public
equal true. - enable
Public boolean - Whether to enable the public network. Must set
bandwidth
whenenable_public
equal true. - ip
Rules TrocketRocketmq Instance Ip Rule[] - Public network access whitelist.
- message
Retention number - Message retention time in hours.
- name string
- Instance name.
- remark string
- Remark.
- {[key: string]: string}
- Tag description list.
- trocket
Rocketmq stringInstance Id - 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 whenenable_public
equal true. - enable_
public bool - Whether to enable the public network. Must set
bandwidth
whenenable_public
equal true. - ip_
rules Sequence[TrocketRocketmq Instance Ip Rule Args] - Public network access whitelist.
- message_
retention float - Message retention time in hours.
- name str
- Instance name.
- remark str
- Remark.
- Mapping[str, str]
- Tag description list.
- trocket_
rocketmq_ strinstance_ id - ID of the resource.
- instance
Type String - Instance type. Valid values:
EXPERIMENT
,BASIC
,PRO
,PLATINUM
. - sku
Code 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.
- subnet
Id String - Subnet id.
- vpc
Id String - VPC id.
- bandwidth Number
- Public network bandwidth.
bandwidth
must be greater than zero whenenable_public
equal true. - enable
Public Boolean - Whether to enable the public network. Must set
bandwidth
whenenable_public
equal true. - ip
Rules List<Property Map> - Public network access whitelist.
- message
Retention Number - Message retention time in hours.
- name String
- Instance name.
- remark String
- Remark.
- Map<String>
- Tag description list.
- trocket
Rocketmq StringInstance Id - 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.
- Public
End stringPoint - Public network access address.
- Vpc
End stringPoint - VPC access address.
- Id string
- The provider-assigned unique ID for this managed resource.
- Public
End stringPoint - Public network access address.
- Vpc
End stringPoint - VPC access address.
- id String
- The provider-assigned unique ID for this managed resource.
- public
End StringPoint - Public network access address.
- vpc
End StringPoint - VPC access address.
- id string
- The provider-assigned unique ID for this managed resource.
- public
End stringPoint - Public network access address.
- vpc
End stringPoint - VPC access address.
- id str
- The provider-assigned unique ID for this managed resource.
- public_
end_ strpoint - Public network access address.
- vpc_
end_ strpoint - VPC access address.
- id String
- The provider-assigned unique ID for this managed resource.
- public
End StringPoint - Public network access address.
- vpc
End StringPoint - 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.
- Bandwidth double
- Public network bandwidth.
bandwidth
must be greater than zero whenenable_public
equal true. - Enable
Public bool - Whether to enable the public network. Must set
bandwidth
whenenable_public
equal true. - Instance
Type string - Instance type. Valid values:
EXPERIMENT
,BASIC
,PRO
,PLATINUM
. - Ip
Rules List<TrocketRocketmq Instance Ip Rule> - Public network access whitelist.
- Message
Retention double - Message retention time in hours.
- Name string
- Instance name.
- Public
End stringPoint - Public network access address.
- Remark string
- Remark.
- Sku
Code 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.
- Subnet
Id string - Subnet id.
- Dictionary<string, string>
- Tag description list.
- Trocket
Rocketmq stringInstance Id - ID of the resource.
- Vpc
End stringPoint - VPC access address.
- Vpc
Id string - VPC id.
- Bandwidth float64
- Public network bandwidth.
bandwidth
must be greater than zero whenenable_public
equal true. - Enable
Public bool - Whether to enable the public network. Must set
bandwidth
whenenable_public
equal true. - Instance
Type string - Instance type. Valid values:
EXPERIMENT
,BASIC
,PRO
,PLATINUM
. - Ip
Rules []TrocketRocketmq Instance Ip Rule Args - Public network access whitelist.
- Message
Retention float64 - Message retention time in hours.
- Name string
- Instance name.
- Public
End stringPoint - Public network access address.
- Remark string
- Remark.
- Sku
Code 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.
- Subnet
Id string - Subnet id.
- map[string]string
- Tag description list.
- Trocket
Rocketmq stringInstance Id - ID of the resource.
- Vpc
End stringPoint - VPC access address.
- Vpc
Id string - VPC id.
- bandwidth Double
- Public network bandwidth.
bandwidth
must be greater than zero whenenable_public
equal true. - enable
Public Boolean - Whether to enable the public network. Must set
bandwidth
whenenable_public
equal true. - instance
Type String - Instance type. Valid values:
EXPERIMENT
,BASIC
,PRO
,PLATINUM
. - ip
Rules List<TrocketRocketmq Instance Ip Rule> - Public network access whitelist.
- message
Retention Double - Message retention time in hours.
- name String
- Instance name.
- public
End StringPoint - Public network access address.
- remark String
- Remark.
- sku
Code 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.
- subnet
Id String - Subnet id.
- Map<String,String>
- Tag description list.
- trocket
Rocketmq StringInstance Id - ID of the resource.
- vpc
End StringPoint - VPC access address.
- vpc
Id String - VPC id.
- bandwidth number
- Public network bandwidth.
bandwidth
must be greater than zero whenenable_public
equal true. - enable
Public boolean - Whether to enable the public network. Must set
bandwidth
whenenable_public
equal true. - instance
Type string - Instance type. Valid values:
EXPERIMENT
,BASIC
,PRO
,PLATINUM
. - ip
Rules TrocketRocketmq Instance Ip Rule[] - Public network access whitelist.
- message
Retention number - Message retention time in hours.
- name string
- Instance name.
- public
End stringPoint - Public network access address.
- remark string
- Remark.
- sku
Code 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.
- subnet
Id string - Subnet id.
- {[key: string]: string}
- Tag description list.
- trocket
Rocketmq stringInstance Id - ID of the resource.
- vpc
End stringPoint - VPC access address.
- vpc
Id string - VPC id.
- bandwidth float
- Public network bandwidth.
bandwidth
must be greater than zero whenenable_public
equal true. - enable_
public bool - Whether to enable the public network. Must set
bandwidth
whenenable_public
equal true. - instance_
type str - Instance type. Valid values:
EXPERIMENT
,BASIC
,PRO
,PLATINUM
. - ip_
rules Sequence[TrocketRocketmq Instance Ip Rule Args] - Public network access whitelist.
- message_
retention float - Message retention time in hours.
- name str
- Instance name.
- public_
end_ strpoint - 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.
- Mapping[str, str]
- Tag description list.
- trocket_
rocketmq_ strinstance_ id - ID of the resource.
- vpc_
end_ strpoint - VPC access address.
- vpc_
id str - VPC id.
- bandwidth Number
- Public network bandwidth.
bandwidth
must be greater than zero whenenable_public
equal true. - enable
Public Boolean - Whether to enable the public network. Must set
bandwidth
whenenable_public
equal true. - instance
Type String - Instance type. Valid values:
EXPERIMENT
,BASIC
,PRO
,PLATINUM
. - ip
Rules List<Property Map> - Public network access whitelist.
- message
Retention Number - Message retention time in hours.
- name String
- Instance name.
- public
End StringPoint - Public network access address.
- remark String
- Remark.
- sku
Code 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.
- subnet
Id String - Subnet id.
- Map<String>
- Tag description list.
- trocket
Rocketmq StringInstance Id - ID of the resource.
- vpc
End StringPoint - VPC access address.
- vpc
Id String - VPC id.
Supporting Types
TrocketRocketmqInstanceIpRule, TrocketRocketmqInstanceIpRuleArgs
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.