tencentcloud.CkafkaInstance
Explore with Pulumi AI
Use this resource to create ckafka instance.
Example Usage
Basic Instance
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const config = new pulumi.Config();
const vpcId = config.get("vpcId") || "vpc-68vi2d3h";
const subnetId = config.get("subnetId") || "subnet-ob6clqwk";
const gz = tencentcloud.getAvailabilityZonesByProduct({
name: "ap-guangzhou-3",
product: "ckafka",
});
const kafkaInstancePrepaid = new tencentcloud.CkafkaInstance("kafkaInstancePrepaid", {
instanceName: "ckafka-instance-prepaid",
zoneId: gz.then(gz => gz.zones?.[0]?.id),
period: 1,
vpcId: vpcId,
subnetId: subnetId,
msgRetentionTime: 1300,
renewFlag: 0,
kafkaVersion: "2.4.1",
diskSize: 200,
diskType: "CLOUD_BASIC",
bandWidth: 20,
partition: 400,
specificationsType: "standard",
instanceType: 2,
config: {
autoCreateTopicEnable: true,
defaultNumPartitions: 3,
defaultReplicationFactor: 3,
},
dynamicRetentionConfig: {
enable: 1,
},
});
const kafkaInstancePostpaid = new tencentcloud.CkafkaInstance("kafkaInstancePostpaid", {
instanceName: "ckafka-instance-postpaid",
zoneId: gz.then(gz => gz.zones?.[0]?.id),
vpcId: vpcId,
subnetId: subnetId,
msgRetentionTime: 1300,
kafkaVersion: "1.1.1",
diskSize: 200,
bandWidth: 20,
diskType: "CLOUD_BASIC",
partition: 400,
chargeType: "POSTPAID_BY_HOUR",
config: {
autoCreateTopicEnable: true,
defaultNumPartitions: 3,
defaultReplicationFactor: 3,
},
dynamicRetentionConfig: {
enable: 1,
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
config = pulumi.Config()
vpc_id = config.get("vpcId")
if vpc_id is None:
vpc_id = "vpc-68vi2d3h"
subnet_id = config.get("subnetId")
if subnet_id is None:
subnet_id = "subnet-ob6clqwk"
gz = tencentcloud.get_availability_zones_by_product(name="ap-guangzhou-3",
product="ckafka")
kafka_instance_prepaid = tencentcloud.CkafkaInstance("kafkaInstancePrepaid",
instance_name="ckafka-instance-prepaid",
zone_id=gz.zones[0].id,
period=1,
vpc_id=vpc_id,
subnet_id=subnet_id,
msg_retention_time=1300,
renew_flag=0,
kafka_version="2.4.1",
disk_size=200,
disk_type="CLOUD_BASIC",
band_width=20,
partition=400,
specifications_type="standard",
instance_type=2,
config={
"auto_create_topic_enable": True,
"default_num_partitions": 3,
"default_replication_factor": 3,
},
dynamic_retention_config={
"enable": 1,
})
kafka_instance_postpaid = tencentcloud.CkafkaInstance("kafkaInstancePostpaid",
instance_name="ckafka-instance-postpaid",
zone_id=gz.zones[0].id,
vpc_id=vpc_id,
subnet_id=subnet_id,
msg_retention_time=1300,
kafka_version="1.1.1",
disk_size=200,
band_width=20,
disk_type="CLOUD_BASIC",
partition=400,
charge_type="POSTPAID_BY_HOUR",
config={
"auto_create_topic_enable": True,
"default_num_partitions": 3,
"default_replication_factor": 3,
},
dynamic_retention_config={
"enable": 1,
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"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, "")
vpcId := "vpc-68vi2d3h"
if param := cfg.Get("vpcId"); param != "" {
vpcId = param
}
subnetId := "subnet-ob6clqwk"
if param := cfg.Get("subnetId"); param != "" {
subnetId = param
}
gz, err := tencentcloud.GetAvailabilityZonesByProduct(ctx, &tencentcloud.GetAvailabilityZonesByProductArgs{
Name: pulumi.StringRef("ap-guangzhou-3"),
Product: "ckafka",
}, nil)
if err != nil {
return err
}
_, err = tencentcloud.NewCkafkaInstance(ctx, "kafkaInstancePrepaid", &tencentcloud.CkafkaInstanceArgs{
InstanceName: pulumi.String("ckafka-instance-prepaid"),
ZoneId: pulumi.String(gz.Zones[0].Id),
Period: pulumi.Float64(1),
VpcId: pulumi.String(vpcId),
SubnetId: pulumi.String(subnetId),
MsgRetentionTime: pulumi.Float64(1300),
RenewFlag: pulumi.Float64(0),
KafkaVersion: pulumi.String("2.4.1"),
DiskSize: pulumi.Float64(200),
DiskType: pulumi.String("CLOUD_BASIC"),
BandWidth: pulumi.Float64(20),
Partition: pulumi.Float64(400),
SpecificationsType: pulumi.String("standard"),
InstanceType: pulumi.Float64(2),
Config: &tencentcloud.CkafkaInstanceConfigArgs{
AutoCreateTopicEnable: pulumi.Bool(true),
DefaultNumPartitions: pulumi.Float64(3),
DefaultReplicationFactor: pulumi.Float64(3),
},
DynamicRetentionConfig: &tencentcloud.CkafkaInstanceDynamicRetentionConfigArgs{
Enable: pulumi.Float64(1),
},
})
if err != nil {
return err
}
_, err = tencentcloud.NewCkafkaInstance(ctx, "kafkaInstancePostpaid", &tencentcloud.CkafkaInstanceArgs{
InstanceName: pulumi.String("ckafka-instance-postpaid"),
ZoneId: pulumi.String(gz.Zones[0].Id),
VpcId: pulumi.String(vpcId),
SubnetId: pulumi.String(subnetId),
MsgRetentionTime: pulumi.Float64(1300),
KafkaVersion: pulumi.String("1.1.1"),
DiskSize: pulumi.Float64(200),
BandWidth: pulumi.Float64(20),
DiskType: pulumi.String("CLOUD_BASIC"),
Partition: pulumi.Float64(400),
ChargeType: pulumi.String("POSTPAID_BY_HOUR"),
Config: &tencentcloud.CkafkaInstanceConfigArgs{
AutoCreateTopicEnable: pulumi.Bool(true),
DefaultNumPartitions: pulumi.Float64(3),
DefaultReplicationFactor: pulumi.Float64(3),
},
DynamicRetentionConfig: &tencentcloud.CkafkaInstanceDynamicRetentionConfigArgs{
Enable: pulumi.Float64(1),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var vpcId = config.Get("vpcId") ?? "vpc-68vi2d3h";
var subnetId = config.Get("subnetId") ?? "subnet-ob6clqwk";
var gz = Tencentcloud.GetAvailabilityZonesByProduct.Invoke(new()
{
Name = "ap-guangzhou-3",
Product = "ckafka",
});
var kafkaInstancePrepaid = new Tencentcloud.CkafkaInstance("kafkaInstancePrepaid", new()
{
InstanceName = "ckafka-instance-prepaid",
ZoneId = gz.Apply(getAvailabilityZonesByProductResult => getAvailabilityZonesByProductResult.Zones[0]?.Id),
Period = 1,
VpcId = vpcId,
SubnetId = subnetId,
MsgRetentionTime = 1300,
RenewFlag = 0,
KafkaVersion = "2.4.1",
DiskSize = 200,
DiskType = "CLOUD_BASIC",
BandWidth = 20,
Partition = 400,
SpecificationsType = "standard",
InstanceType = 2,
Config = new Tencentcloud.Inputs.CkafkaInstanceConfigArgs
{
AutoCreateTopicEnable = true,
DefaultNumPartitions = 3,
DefaultReplicationFactor = 3,
},
DynamicRetentionConfig = new Tencentcloud.Inputs.CkafkaInstanceDynamicRetentionConfigArgs
{
Enable = 1,
},
});
var kafkaInstancePostpaid = new Tencentcloud.CkafkaInstance("kafkaInstancePostpaid", new()
{
InstanceName = "ckafka-instance-postpaid",
ZoneId = gz.Apply(getAvailabilityZonesByProductResult => getAvailabilityZonesByProductResult.Zones[0]?.Id),
VpcId = vpcId,
SubnetId = subnetId,
MsgRetentionTime = 1300,
KafkaVersion = "1.1.1",
DiskSize = 200,
BandWidth = 20,
DiskType = "CLOUD_BASIC",
Partition = 400,
ChargeType = "POSTPAID_BY_HOUR",
Config = new Tencentcloud.Inputs.CkafkaInstanceConfigArgs
{
AutoCreateTopicEnable = true,
DefaultNumPartitions = 3,
DefaultReplicationFactor = 3,
},
DynamicRetentionConfig = new Tencentcloud.Inputs.CkafkaInstanceDynamicRetentionConfigArgs
{
Enable = 1,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetAvailabilityZonesByProductArgs;
import com.pulumi.tencentcloud.CkafkaInstance;
import com.pulumi.tencentcloud.CkafkaInstanceArgs;
import com.pulumi.tencentcloud.inputs.CkafkaInstanceConfigArgs;
import com.pulumi.tencentcloud.inputs.CkafkaInstanceDynamicRetentionConfigArgs;
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 vpcId = config.get("vpcId").orElse("vpc-68vi2d3h");
final var subnetId = config.get("subnetId").orElse("subnet-ob6clqwk");
final var gz = TencentcloudFunctions.getAvailabilityZonesByProduct(GetAvailabilityZonesByProductArgs.builder()
.name("ap-guangzhou-3")
.product("ckafka")
.build());
var kafkaInstancePrepaid = new CkafkaInstance("kafkaInstancePrepaid", CkafkaInstanceArgs.builder()
.instanceName("ckafka-instance-prepaid")
.zoneId(gz.applyValue(getAvailabilityZonesByProductResult -> getAvailabilityZonesByProductResult.zones()[0].id()))
.period(1)
.vpcId(vpcId)
.subnetId(subnetId)
.msgRetentionTime(1300)
.renewFlag(0)
.kafkaVersion("2.4.1")
.diskSize(200)
.diskType("CLOUD_BASIC")
.bandWidth(20)
.partition(400)
.specificationsType("standard")
.instanceType(2)
.config(CkafkaInstanceConfigArgs.builder()
.autoCreateTopicEnable(true)
.defaultNumPartitions(3)
.defaultReplicationFactor(3)
.build())
.dynamicRetentionConfig(CkafkaInstanceDynamicRetentionConfigArgs.builder()
.enable(1)
.build())
.build());
var kafkaInstancePostpaid = new CkafkaInstance("kafkaInstancePostpaid", CkafkaInstanceArgs.builder()
.instanceName("ckafka-instance-postpaid")
.zoneId(gz.applyValue(getAvailabilityZonesByProductResult -> getAvailabilityZonesByProductResult.zones()[0].id()))
.vpcId(vpcId)
.subnetId(subnetId)
.msgRetentionTime(1300)
.kafkaVersion("1.1.1")
.diskSize(200)
.bandWidth(20)
.diskType("CLOUD_BASIC")
.partition(400)
.chargeType("POSTPAID_BY_HOUR")
.config(CkafkaInstanceConfigArgs.builder()
.autoCreateTopicEnable(true)
.defaultNumPartitions(3)
.defaultReplicationFactor(3)
.build())
.dynamicRetentionConfig(CkafkaInstanceDynamicRetentionConfigArgs.builder()
.enable(1)
.build())
.build());
}
}
configuration:
vpcId:
type: string
default: vpc-68vi2d3h
subnetId:
type: string
default: subnet-ob6clqwk
resources:
kafkaInstancePrepaid:
type: tencentcloud:CkafkaInstance
properties:
instanceName: ckafka-instance-prepaid
zoneId: ${gz.zones[0].id}
period: 1
vpcId: ${vpcId}
subnetId: ${subnetId}
msgRetentionTime: 1300
renewFlag: 0
kafkaVersion: 2.4.1
diskSize: 200
diskType: CLOUD_BASIC
bandWidth: 20
partition: 400
specificationsType: standard
instanceType: 2
config:
autoCreateTopicEnable: true
defaultNumPartitions: 3
defaultReplicationFactor: 3
dynamicRetentionConfig:
enable: 1
kafkaInstancePostpaid:
type: tencentcloud:CkafkaInstance
properties:
instanceName: ckafka-instance-postpaid
zoneId: ${gz.zones[0].id}
vpcId: ${vpcId}
subnetId: ${subnetId}
msgRetentionTime: 1300
kafkaVersion: 1.1.1
diskSize: 200
bandWidth: 20
diskType: CLOUD_BASIC
partition: 400
chargeType: POSTPAID_BY_HOUR
config:
autoCreateTopicEnable: true
defaultNumPartitions: 3
defaultReplicationFactor: 3
dynamicRetentionConfig:
enable: 1
variables:
gz:
fn::invoke:
function: tencentcloud:getAvailabilityZonesByProduct
arguments:
name: ap-guangzhou-3
product: ckafka
Multi zone Instance
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const config = new pulumi.Config();
const vpcId = config.get("vpcId") || "vpc-68vi2d3h";
const subnetId = config.get("subnetId") || "subnet-ob6clqwk";
const gz3 = tencentcloud.getAvailabilityZonesByProduct({
name: "ap-guangzhou-3",
product: "ckafka",
});
const gz6 = tencentcloud.getAvailabilityZonesByProduct({
name: "ap-guangzhou-6",
product: "ckafka",
});
const kafkaInstance = new tencentcloud.CkafkaInstance("kafkaInstance", {
instanceName: "ckafka-instance-maz-tf-test",
zoneId: gz3.then(gz3 => gz3.zones?.[0]?.id),
multiZoneFlag: true,
zoneIds: [
gz3.then(gz3 => gz3.zones?.[0]?.id),
gz6.then(gz6 => gz6.zones?.[0]?.id),
],
period: 1,
vpcId: vpcId,
subnetId: subnetId,
msgRetentionTime: 1300,
renewFlag: 0,
kafkaVersion: "1.1.1",
diskSize: 500,
diskType: "CLOUD_BASIC",
config: {
autoCreateTopicEnable: true,
defaultNumPartitions: 3,
defaultReplicationFactor: 3,
},
dynamicRetentionConfig: {
enable: 1,
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
config = pulumi.Config()
vpc_id = config.get("vpcId")
if vpc_id is None:
vpc_id = "vpc-68vi2d3h"
subnet_id = config.get("subnetId")
if subnet_id is None:
subnet_id = "subnet-ob6clqwk"
gz3 = tencentcloud.get_availability_zones_by_product(name="ap-guangzhou-3",
product="ckafka")
gz6 = tencentcloud.get_availability_zones_by_product(name="ap-guangzhou-6",
product="ckafka")
kafka_instance = tencentcloud.CkafkaInstance("kafkaInstance",
instance_name="ckafka-instance-maz-tf-test",
zone_id=gz3.zones[0].id,
multi_zone_flag=True,
zone_ids=[
gz3.zones[0].id,
gz6.zones[0].id,
],
period=1,
vpc_id=vpc_id,
subnet_id=subnet_id,
msg_retention_time=1300,
renew_flag=0,
kafka_version="1.1.1",
disk_size=500,
disk_type="CLOUD_BASIC",
config={
"auto_create_topic_enable": True,
"default_num_partitions": 3,
"default_replication_factor": 3,
},
dynamic_retention_config={
"enable": 1,
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"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, "")
vpcId := "vpc-68vi2d3h"
if param := cfg.Get("vpcId"); param != "" {
vpcId = param
}
subnetId := "subnet-ob6clqwk"
if param := cfg.Get("subnetId"); param != "" {
subnetId = param
}
gz3, err := tencentcloud.GetAvailabilityZonesByProduct(ctx, &tencentcloud.GetAvailabilityZonesByProductArgs{
Name: pulumi.StringRef("ap-guangzhou-3"),
Product: "ckafka",
}, nil)
if err != nil {
return err
}
gz6, err := tencentcloud.GetAvailabilityZonesByProduct(ctx, &tencentcloud.GetAvailabilityZonesByProductArgs{
Name: pulumi.StringRef("ap-guangzhou-6"),
Product: "ckafka",
}, nil)
if err != nil {
return err
}
_, err = tencentcloud.NewCkafkaInstance(ctx, "kafkaInstance", &tencentcloud.CkafkaInstanceArgs{
InstanceName: pulumi.String("ckafka-instance-maz-tf-test"),
ZoneId: pulumi.String(gz3.Zones[0].Id),
MultiZoneFlag: pulumi.Bool(true),
ZoneIds: pulumi.Float64Array{
pulumi.String(gz3.Zones[0].Id),
pulumi.String(gz6.Zones[0].Id),
},
Period: pulumi.Float64(1),
VpcId: pulumi.String(vpcId),
SubnetId: pulumi.String(subnetId),
MsgRetentionTime: pulumi.Float64(1300),
RenewFlag: pulumi.Float64(0),
KafkaVersion: pulumi.String("1.1.1"),
DiskSize: pulumi.Float64(500),
DiskType: pulumi.String("CLOUD_BASIC"),
Config: &tencentcloud.CkafkaInstanceConfigArgs{
AutoCreateTopicEnable: pulumi.Bool(true),
DefaultNumPartitions: pulumi.Float64(3),
DefaultReplicationFactor: pulumi.Float64(3),
},
DynamicRetentionConfig: &tencentcloud.CkafkaInstanceDynamicRetentionConfigArgs{
Enable: pulumi.Float64(1),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var vpcId = config.Get("vpcId") ?? "vpc-68vi2d3h";
var subnetId = config.Get("subnetId") ?? "subnet-ob6clqwk";
var gz3 = Tencentcloud.GetAvailabilityZonesByProduct.Invoke(new()
{
Name = "ap-guangzhou-3",
Product = "ckafka",
});
var gz6 = Tencentcloud.GetAvailabilityZonesByProduct.Invoke(new()
{
Name = "ap-guangzhou-6",
Product = "ckafka",
});
var kafkaInstance = new Tencentcloud.CkafkaInstance("kafkaInstance", new()
{
InstanceName = "ckafka-instance-maz-tf-test",
ZoneId = gz3.Apply(getAvailabilityZonesByProductResult => getAvailabilityZonesByProductResult.Zones[0]?.Id),
MultiZoneFlag = true,
ZoneIds = new[]
{
gz3.Apply(getAvailabilityZonesByProductResult => getAvailabilityZonesByProductResult.Zones[0]?.Id),
gz6.Apply(getAvailabilityZonesByProductResult => getAvailabilityZonesByProductResult.Zones[0]?.Id),
},
Period = 1,
VpcId = vpcId,
SubnetId = subnetId,
MsgRetentionTime = 1300,
RenewFlag = 0,
KafkaVersion = "1.1.1",
DiskSize = 500,
DiskType = "CLOUD_BASIC",
Config = new Tencentcloud.Inputs.CkafkaInstanceConfigArgs
{
AutoCreateTopicEnable = true,
DefaultNumPartitions = 3,
DefaultReplicationFactor = 3,
},
DynamicRetentionConfig = new Tencentcloud.Inputs.CkafkaInstanceDynamicRetentionConfigArgs
{
Enable = 1,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetAvailabilityZonesByProductArgs;
import com.pulumi.tencentcloud.CkafkaInstance;
import com.pulumi.tencentcloud.CkafkaInstanceArgs;
import com.pulumi.tencentcloud.inputs.CkafkaInstanceConfigArgs;
import com.pulumi.tencentcloud.inputs.CkafkaInstanceDynamicRetentionConfigArgs;
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 vpcId = config.get("vpcId").orElse("vpc-68vi2d3h");
final var subnetId = config.get("subnetId").orElse("subnet-ob6clqwk");
final var gz3 = TencentcloudFunctions.getAvailabilityZonesByProduct(GetAvailabilityZonesByProductArgs.builder()
.name("ap-guangzhou-3")
.product("ckafka")
.build());
final var gz6 = TencentcloudFunctions.getAvailabilityZonesByProduct(GetAvailabilityZonesByProductArgs.builder()
.name("ap-guangzhou-6")
.product("ckafka")
.build());
var kafkaInstance = new CkafkaInstance("kafkaInstance", CkafkaInstanceArgs.builder()
.instanceName("ckafka-instance-maz-tf-test")
.zoneId(gz3.applyValue(getAvailabilityZonesByProductResult -> getAvailabilityZonesByProductResult.zones()[0].id()))
.multiZoneFlag(true)
.zoneIds(
gz3.applyValue(getAvailabilityZonesByProductResult -> getAvailabilityZonesByProductResult.zones()[0].id()),
gz6.applyValue(getAvailabilityZonesByProductResult -> getAvailabilityZonesByProductResult.zones()[0].id()))
.period(1)
.vpcId(vpcId)
.subnetId(subnetId)
.msgRetentionTime(1300)
.renewFlag(0)
.kafkaVersion("1.1.1")
.diskSize(500)
.diskType("CLOUD_BASIC")
.config(CkafkaInstanceConfigArgs.builder()
.autoCreateTopicEnable(true)
.defaultNumPartitions(3)
.defaultReplicationFactor(3)
.build())
.dynamicRetentionConfig(CkafkaInstanceDynamicRetentionConfigArgs.builder()
.enable(1)
.build())
.build());
}
}
configuration:
vpcId:
type: string
default: vpc-68vi2d3h
subnetId:
type: string
default: subnet-ob6clqwk
resources:
kafkaInstance:
type: tencentcloud:CkafkaInstance
properties:
instanceName: ckafka-instance-maz-tf-test
zoneId: ${gz3.zones[0].id}
multiZoneFlag: true
zoneIds:
- ${gz3.zones[0].id}
- ${gz6.zones[0].id}
period: 1
vpcId: ${vpcId}
subnetId: ${subnetId}
msgRetentionTime: 1300
renewFlag: 0
kafkaVersion: 1.1.1
diskSize: 500
diskType: CLOUD_BASIC
config:
autoCreateTopicEnable: true
defaultNumPartitions: 3
defaultReplicationFactor: 3
dynamicRetentionConfig:
enable: 1
variables:
gz3:
fn::invoke:
function: tencentcloud:getAvailabilityZonesByProduct
arguments:
name: ap-guangzhou-3
product: ckafka
gz6:
fn::invoke:
function: tencentcloud:getAvailabilityZonesByProduct
arguments:
name: ap-guangzhou-6
product: ckafka
Create CkafkaInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CkafkaInstance(name: string, args: CkafkaInstanceArgs, opts?: CustomResourceOptions);
@overload
def CkafkaInstance(resource_name: str,
args: CkafkaInstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CkafkaInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_name: Optional[str] = None,
zone_id: Optional[float] = None,
msg_retention_time: Optional[float] = None,
upgrade_strategy: Optional[float] = None,
disk_size: Optional[float] = None,
disk_type: Optional[str] = None,
dynamic_retention_config: Optional[CkafkaInstanceDynamicRetentionConfigArgs] = None,
elastic_bandwidth_switch: Optional[float] = None,
ckafka_instance_id: Optional[str] = None,
instance_type: Optional[float] = None,
kafka_version: Optional[str] = None,
max_message_byte: Optional[float] = None,
band_width: Optional[float] = None,
multi_zone_flag: Optional[bool] = None,
config: Optional[CkafkaInstanceConfigArgs] = None,
public_network: Optional[float] = None,
partition: Optional[float] = None,
rebalance_time: Optional[float] = None,
renew_flag: Optional[float] = None,
specifications_type: Optional[str] = None,
subnet_id: Optional[str] = None,
tag_set: Optional[Mapping[str, str]] = None,
tags: Optional[Sequence[CkafkaInstanceTagArgs]] = None,
period: Optional[float] = None,
vpc_id: Optional[str] = None,
charge_type: Optional[str] = None,
zone_ids: Optional[Sequence[float]] = None)
func NewCkafkaInstance(ctx *Context, name string, args CkafkaInstanceArgs, opts ...ResourceOption) (*CkafkaInstance, error)
public CkafkaInstance(string name, CkafkaInstanceArgs args, CustomResourceOptions? opts = null)
public CkafkaInstance(String name, CkafkaInstanceArgs args)
public CkafkaInstance(String name, CkafkaInstanceArgs args, CustomResourceOptions options)
type: tencentcloud:CkafkaInstance
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 CkafkaInstanceArgs
- 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 CkafkaInstanceArgs
- 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 CkafkaInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CkafkaInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CkafkaInstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CkafkaInstance 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 CkafkaInstance resource accepts the following input properties:
- Instance
Name string - Instance name.
- Zone
Id double - Available zone id.
- Band
Width double - Instance bandwidth in MBps.
- Charge
Type string - The charge type of instance. Valid values are
PREPAID
andPOSTPAID_BY_HOUR
. Default value isPREPAID
. - Ckafka
Instance stringId - ID of the resource.
- Config
Ckafka
Instance Config - Instance configuration.
- Disk
Size double - Disk Size. Its interval varies with bandwidth, and the input must be within the interval, which can be viewed through the control. If it is not within the interval, the plan will cause a change when first created.
- Disk
Type string - Type of disk.
- Dynamic
Retention CkafkaConfig Instance Dynamic Retention Config - Dynamic message retention policy configuration.
- Elastic
Bandwidth doubleSwitch - Elastic bandwidth switch 0 not turned on 1 turned on (0 default). This takes effect only when the instance is created.
- Instance
Type double - Description of instance type.
profession
: 1,standard
: 1(general), 2(standard), 3(advanced), 4(capacity), 5(specialized-1), 6(specialized-2), 7(specialized-3), 8(specialized-4), 9(exclusive). - Kafka
Version string - Kafka version (0.10.2/1.1.1/2.4.1).
- Max
Message doubleByte - The size of a single message in bytes at the instance level. Value range: `1024 - 1210241024 bytes (i.e., 1KB-12MB).
- Msg
Retention doubleTime - The maximum retention time of instance logs, in minutes. the default is 10080 (7 days), the maximum is 30 days, and the default 0 is not filled, which means that the log retention time recovery policy is not enabled.
- Multi
Zone boolFlag - Indicates whether the instance is multi zones. NOTE: if set to
true
,zone_ids
must set together. - Partition double
- Partition Size. Its interval varies with bandwidth, and the input must be within the interval, which can be viewed through the control. If it is not within the interval, the plan will cause a change when first created.
- Period double
- Prepaid purchase time, such as 1, is one month.
- Public
Network double - Bandwidth of the public network.
- Rebalance
Time double - Modification of the rebalancing time after upgrade.
- Renew
Flag double - Prepaid automatic renewal mark, 0 means the default state, the initial state, 1 means automatic renewal, 2 means clear no automatic renewal (user setting).
- Specifications
Type string - Specifications type of instance. Allowed values are
standard
,profession
. Default isprofession
. - Subnet
Id string - Subnet id, it will be basic network if not set.
- Dictionary<string, string>
- Tag set of instance.
- List<Ckafka
Instance Tag> - It has been deprecated from version 1.78.5, because it do not support change. Use
tag_set
instead. Tags of instance. Partition size, the professional version does not need tag. - Upgrade
Strategy double - POSTPAID_BY_HOUR scale-down mode
- 1: stable transformation;
- 2: High-speed transformer.
- Vpc
Id string - Vpc id, it will be basic network if not set.
- Zone
Ids List<double> - List of available zone id. NOTE: this argument must set together with
multi_zone_flag
.
- Instance
Name string - Instance name.
- Zone
Id float64 - Available zone id.
- Band
Width float64 - Instance bandwidth in MBps.
- Charge
Type string - The charge type of instance. Valid values are
PREPAID
andPOSTPAID_BY_HOUR
. Default value isPREPAID
. - Ckafka
Instance stringId - ID of the resource.
- Config
Ckafka
Instance Config Args - Instance configuration.
- Disk
Size float64 - Disk Size. Its interval varies with bandwidth, and the input must be within the interval, which can be viewed through the control. If it is not within the interval, the plan will cause a change when first created.
- Disk
Type string - Type of disk.
- Dynamic
Retention CkafkaConfig Instance Dynamic Retention Config Args - Dynamic message retention policy configuration.
- Elastic
Bandwidth float64Switch - Elastic bandwidth switch 0 not turned on 1 turned on (0 default). This takes effect only when the instance is created.
- Instance
Type float64 - Description of instance type.
profession
: 1,standard
: 1(general), 2(standard), 3(advanced), 4(capacity), 5(specialized-1), 6(specialized-2), 7(specialized-3), 8(specialized-4), 9(exclusive). - Kafka
Version string - Kafka version (0.10.2/1.1.1/2.4.1).
- Max
Message float64Byte - The size of a single message in bytes at the instance level. Value range: `1024 - 1210241024 bytes (i.e., 1KB-12MB).
- Msg
Retention float64Time - The maximum retention time of instance logs, in minutes. the default is 10080 (7 days), the maximum is 30 days, and the default 0 is not filled, which means that the log retention time recovery policy is not enabled.
- Multi
Zone boolFlag - Indicates whether the instance is multi zones. NOTE: if set to
true
,zone_ids
must set together. - Partition float64
- Partition Size. Its interval varies with bandwidth, and the input must be within the interval, which can be viewed through the control. If it is not within the interval, the plan will cause a change when first created.
- Period float64
- Prepaid purchase time, such as 1, is one month.
- Public
Network float64 - Bandwidth of the public network.
- Rebalance
Time float64 - Modification of the rebalancing time after upgrade.
- Renew
Flag float64 - Prepaid automatic renewal mark, 0 means the default state, the initial state, 1 means automatic renewal, 2 means clear no automatic renewal (user setting).
- Specifications
Type string - Specifications type of instance. Allowed values are
standard
,profession
. Default isprofession
. - Subnet
Id string - Subnet id, it will be basic network if not set.
- map[string]string
- Tag set of instance.
- []Ckafka
Instance Tag Args - It has been deprecated from version 1.78.5, because it do not support change. Use
tag_set
instead. Tags of instance. Partition size, the professional version does not need tag. - Upgrade
Strategy float64 - POSTPAID_BY_HOUR scale-down mode
- 1: stable transformation;
- 2: High-speed transformer.
- Vpc
Id string - Vpc id, it will be basic network if not set.
- Zone
Ids []float64 - List of available zone id. NOTE: this argument must set together with
multi_zone_flag
.
- instance
Name String - Instance name.
- zone
Id Double - Available zone id.
- band
Width Double - Instance bandwidth in MBps.
- charge
Type String - The charge type of instance. Valid values are
PREPAID
andPOSTPAID_BY_HOUR
. Default value isPREPAID
. - ckafka
Instance StringId - ID of the resource.
- config
Ckafka
Instance Config - Instance configuration.
- disk
Size Double - Disk Size. Its interval varies with bandwidth, and the input must be within the interval, which can be viewed through the control. If it is not within the interval, the plan will cause a change when first created.
- disk
Type String - Type of disk.
- dynamic
Retention CkafkaConfig Instance Dynamic Retention Config - Dynamic message retention policy configuration.
- elastic
Bandwidth DoubleSwitch - Elastic bandwidth switch 0 not turned on 1 turned on (0 default). This takes effect only when the instance is created.
- instance
Type Double - Description of instance type.
profession
: 1,standard
: 1(general), 2(standard), 3(advanced), 4(capacity), 5(specialized-1), 6(specialized-2), 7(specialized-3), 8(specialized-4), 9(exclusive). - kafka
Version String - Kafka version (0.10.2/1.1.1/2.4.1).
- max
Message DoubleByte - The size of a single message in bytes at the instance level. Value range: `1024 - 1210241024 bytes (i.e., 1KB-12MB).
- msg
Retention DoubleTime - The maximum retention time of instance logs, in minutes. the default is 10080 (7 days), the maximum is 30 days, and the default 0 is not filled, which means that the log retention time recovery policy is not enabled.
- multi
Zone BooleanFlag - Indicates whether the instance is multi zones. NOTE: if set to
true
,zone_ids
must set together. - partition Double
- Partition Size. Its interval varies with bandwidth, and the input must be within the interval, which can be viewed through the control. If it is not within the interval, the plan will cause a change when first created.
- period Double
- Prepaid purchase time, such as 1, is one month.
- public
Network Double - Bandwidth of the public network.
- rebalance
Time Double - Modification of the rebalancing time after upgrade.
- renew
Flag Double - Prepaid automatic renewal mark, 0 means the default state, the initial state, 1 means automatic renewal, 2 means clear no automatic renewal (user setting).
- specifications
Type String - Specifications type of instance. Allowed values are
standard
,profession
. Default isprofession
. - subnet
Id String - Subnet id, it will be basic network if not set.
- Map<String,String>
- Tag set of instance.
- List<Ckafka
Instance Tag> - It has been deprecated from version 1.78.5, because it do not support change. Use
tag_set
instead. Tags of instance. Partition size, the professional version does not need tag. - upgrade
Strategy Double - POSTPAID_BY_HOUR scale-down mode
- 1: stable transformation;
- 2: High-speed transformer.
- vpc
Id String - Vpc id, it will be basic network if not set.
- zone
Ids List<Double> - List of available zone id. NOTE: this argument must set together with
multi_zone_flag
.
- instance
Name string - Instance name.
- zone
Id number - Available zone id.
- band
Width number - Instance bandwidth in MBps.
- charge
Type string - The charge type of instance. Valid values are
PREPAID
andPOSTPAID_BY_HOUR
. Default value isPREPAID
. - ckafka
Instance stringId - ID of the resource.
- config
Ckafka
Instance Config - Instance configuration.
- disk
Size number - Disk Size. Its interval varies with bandwidth, and the input must be within the interval, which can be viewed through the control. If it is not within the interval, the plan will cause a change when first created.
- disk
Type string - Type of disk.
- dynamic
Retention CkafkaConfig Instance Dynamic Retention Config - Dynamic message retention policy configuration.
- elastic
Bandwidth numberSwitch - Elastic bandwidth switch 0 not turned on 1 turned on (0 default). This takes effect only when the instance is created.
- instance
Type number - Description of instance type.
profession
: 1,standard
: 1(general), 2(standard), 3(advanced), 4(capacity), 5(specialized-1), 6(specialized-2), 7(specialized-3), 8(specialized-4), 9(exclusive). - kafka
Version string - Kafka version (0.10.2/1.1.1/2.4.1).
- max
Message numberByte - The size of a single message in bytes at the instance level. Value range: `1024 - 1210241024 bytes (i.e., 1KB-12MB).
- msg
Retention numberTime - The maximum retention time of instance logs, in minutes. the default is 10080 (7 days), the maximum is 30 days, and the default 0 is not filled, which means that the log retention time recovery policy is not enabled.
- multi
Zone booleanFlag - Indicates whether the instance is multi zones. NOTE: if set to
true
,zone_ids
must set together. - partition number
- Partition Size. Its interval varies with bandwidth, and the input must be within the interval, which can be viewed through the control. If it is not within the interval, the plan will cause a change when first created.
- period number
- Prepaid purchase time, such as 1, is one month.
- public
Network number - Bandwidth of the public network.
- rebalance
Time number - Modification of the rebalancing time after upgrade.
- renew
Flag number - Prepaid automatic renewal mark, 0 means the default state, the initial state, 1 means automatic renewal, 2 means clear no automatic renewal (user setting).
- specifications
Type string - Specifications type of instance. Allowed values are
standard
,profession
. Default isprofession
. - subnet
Id string - Subnet id, it will be basic network if not set.
- {[key: string]: string}
- Tag set of instance.
- Ckafka
Instance Tag[] - It has been deprecated from version 1.78.5, because it do not support change. Use
tag_set
instead. Tags of instance. Partition size, the professional version does not need tag. - upgrade
Strategy number - POSTPAID_BY_HOUR scale-down mode
- 1: stable transformation;
- 2: High-speed transformer.
- vpc
Id string - Vpc id, it will be basic network if not set.
- zone
Ids number[] - List of available zone id. NOTE: this argument must set together with
multi_zone_flag
.
- instance_
name str - Instance name.
- zone_
id float - Available zone id.
- band_
width float - Instance bandwidth in MBps.
- charge_
type str - The charge type of instance. Valid values are
PREPAID
andPOSTPAID_BY_HOUR
. Default value isPREPAID
. - ckafka_
instance_ strid - ID of the resource.
- config
Ckafka
Instance Config Args - Instance configuration.
- disk_
size float - Disk Size. Its interval varies with bandwidth, and the input must be within the interval, which can be viewed through the control. If it is not within the interval, the plan will cause a change when first created.
- disk_
type str - Type of disk.
- dynamic_
retention_ Ckafkaconfig Instance Dynamic Retention Config Args - Dynamic message retention policy configuration.
- elastic_
bandwidth_ floatswitch - Elastic bandwidth switch 0 not turned on 1 turned on (0 default). This takes effect only when the instance is created.
- instance_
type float - Description of instance type.
profession
: 1,standard
: 1(general), 2(standard), 3(advanced), 4(capacity), 5(specialized-1), 6(specialized-2), 7(specialized-3), 8(specialized-4), 9(exclusive). - kafka_
version str - Kafka version (0.10.2/1.1.1/2.4.1).
- max_
message_ floatbyte - The size of a single message in bytes at the instance level. Value range: `1024 - 1210241024 bytes (i.e., 1KB-12MB).
- msg_
retention_ floattime - The maximum retention time of instance logs, in minutes. the default is 10080 (7 days), the maximum is 30 days, and the default 0 is not filled, which means that the log retention time recovery policy is not enabled.
- multi_
zone_ boolflag - Indicates whether the instance is multi zones. NOTE: if set to
true
,zone_ids
must set together. - partition float
- Partition Size. Its interval varies with bandwidth, and the input must be within the interval, which can be viewed through the control. If it is not within the interval, the plan will cause a change when first created.
- period float
- Prepaid purchase time, such as 1, is one month.
- public_
network float - Bandwidth of the public network.
- rebalance_
time float - Modification of the rebalancing time after upgrade.
- renew_
flag float - Prepaid automatic renewal mark, 0 means the default state, the initial state, 1 means automatic renewal, 2 means clear no automatic renewal (user setting).
- specifications_
type str - Specifications type of instance. Allowed values are
standard
,profession
. Default isprofession
. - subnet_
id str - Subnet id, it will be basic network if not set.
- tag_
set Mapping[str, str] - Tag set of instance.
- Sequence[Ckafka
Instance Tag Args] - It has been deprecated from version 1.78.5, because it do not support change. Use
tag_set
instead. Tags of instance. Partition size, the professional version does not need tag. - upgrade_
strategy float - POSTPAID_BY_HOUR scale-down mode
- 1: stable transformation;
- 2: High-speed transformer.
- vpc_
id str - Vpc id, it will be basic network if not set.
- zone_
ids Sequence[float] - List of available zone id. NOTE: this argument must set together with
multi_zone_flag
.
- instance
Name String - Instance name.
- zone
Id Number - Available zone id.
- band
Width Number - Instance bandwidth in MBps.
- charge
Type String - The charge type of instance. Valid values are
PREPAID
andPOSTPAID_BY_HOUR
. Default value isPREPAID
. - ckafka
Instance StringId - ID of the resource.
- config Property Map
- Instance configuration.
- disk
Size Number - Disk Size. Its interval varies with bandwidth, and the input must be within the interval, which can be viewed through the control. If it is not within the interval, the plan will cause a change when first created.
- disk
Type String - Type of disk.
- dynamic
Retention Property MapConfig - Dynamic message retention policy configuration.
- elastic
Bandwidth NumberSwitch - Elastic bandwidth switch 0 not turned on 1 turned on (0 default). This takes effect only when the instance is created.
- instance
Type Number - Description of instance type.
profession
: 1,standard
: 1(general), 2(standard), 3(advanced), 4(capacity), 5(specialized-1), 6(specialized-2), 7(specialized-3), 8(specialized-4), 9(exclusive). - kafka
Version String - Kafka version (0.10.2/1.1.1/2.4.1).
- max
Message NumberByte - The size of a single message in bytes at the instance level. Value range: `1024 - 1210241024 bytes (i.e., 1KB-12MB).
- msg
Retention NumberTime - The maximum retention time of instance logs, in minutes. the default is 10080 (7 days), the maximum is 30 days, and the default 0 is not filled, which means that the log retention time recovery policy is not enabled.
- multi
Zone BooleanFlag - Indicates whether the instance is multi zones. NOTE: if set to
true
,zone_ids
must set together. - partition Number
- Partition Size. Its interval varies with bandwidth, and the input must be within the interval, which can be viewed through the control. If it is not within the interval, the plan will cause a change when first created.
- period Number
- Prepaid purchase time, such as 1, is one month.
- public
Network Number - Bandwidth of the public network.
- rebalance
Time Number - Modification of the rebalancing time after upgrade.
- renew
Flag Number - Prepaid automatic renewal mark, 0 means the default state, the initial state, 1 means automatic renewal, 2 means clear no automatic renewal (user setting).
- specifications
Type String - Specifications type of instance. Allowed values are
standard
,profession
. Default isprofession
. - subnet
Id String - Subnet id, it will be basic network if not set.
- Map<String>
- Tag set of instance.
- List<Property Map>
- It has been deprecated from version 1.78.5, because it do not support change. Use
tag_set
instead. Tags of instance. Partition size, the professional version does not need tag. - upgrade
Strategy Number - POSTPAID_BY_HOUR scale-down mode
- 1: stable transformation;
- 2: High-speed transformer.
- vpc
Id String - Vpc id, it will be basic network if not set.
- zone
Ids List<Number> - List of available zone id. NOTE: this argument must set together with
multi_zone_flag
.
Outputs
All input properties are implicitly available as output properties. Additionally, the CkafkaInstance resource produces the following output properties:
Look up Existing CkafkaInstance Resource
Get an existing CkafkaInstance 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?: CkafkaInstanceState, opts?: CustomResourceOptions): CkafkaInstance
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
band_width: Optional[float] = None,
charge_type: Optional[str] = None,
ckafka_instance_id: Optional[str] = None,
config: Optional[CkafkaInstanceConfigArgs] = None,
disk_size: Optional[float] = None,
disk_type: Optional[str] = None,
dynamic_retention_config: Optional[CkafkaInstanceDynamicRetentionConfigArgs] = None,
elastic_bandwidth_switch: Optional[float] = None,
instance_name: Optional[str] = None,
instance_type: Optional[float] = None,
kafka_version: Optional[str] = None,
max_message_byte: Optional[float] = None,
msg_retention_time: Optional[float] = None,
multi_zone_flag: Optional[bool] = None,
partition: Optional[float] = None,
period: Optional[float] = None,
public_network: Optional[float] = None,
rebalance_time: Optional[float] = None,
renew_flag: Optional[float] = None,
specifications_type: Optional[str] = None,
subnet_id: Optional[str] = None,
tag_set: Optional[Mapping[str, str]] = None,
tags: Optional[Sequence[CkafkaInstanceTagArgs]] = None,
upgrade_strategy: Optional[float] = None,
vip: Optional[str] = None,
vpc_id: Optional[str] = None,
vport: Optional[str] = None,
zone_id: Optional[float] = None,
zone_ids: Optional[Sequence[float]] = None) -> CkafkaInstance
func GetCkafkaInstance(ctx *Context, name string, id IDInput, state *CkafkaInstanceState, opts ...ResourceOption) (*CkafkaInstance, error)
public static CkafkaInstance Get(string name, Input<string> id, CkafkaInstanceState? state, CustomResourceOptions? opts = null)
public static CkafkaInstance get(String name, Output<String> id, CkafkaInstanceState state, CustomResourceOptions options)
resources: _: type: tencentcloud:CkafkaInstance 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.
- Band
Width double - Instance bandwidth in MBps.
- Charge
Type string - The charge type of instance. Valid values are
PREPAID
andPOSTPAID_BY_HOUR
. Default value isPREPAID
. - Ckafka
Instance stringId - ID of the resource.
- Config
Ckafka
Instance Config - Instance configuration.
- Disk
Size double - Disk Size. Its interval varies with bandwidth, and the input must be within the interval, which can be viewed through the control. If it is not within the interval, the plan will cause a change when first created.
- Disk
Type string - Type of disk.
- Dynamic
Retention CkafkaConfig Instance Dynamic Retention Config - Dynamic message retention policy configuration.
- Elastic
Bandwidth doubleSwitch - Elastic bandwidth switch 0 not turned on 1 turned on (0 default). This takes effect only when the instance is created.
- Instance
Name string - Instance name.
- Instance
Type double - Description of instance type.
profession
: 1,standard
: 1(general), 2(standard), 3(advanced), 4(capacity), 5(specialized-1), 6(specialized-2), 7(specialized-3), 8(specialized-4), 9(exclusive). - Kafka
Version string - Kafka version (0.10.2/1.1.1/2.4.1).
- Max
Message doubleByte - The size of a single message in bytes at the instance level. Value range: `1024 - 1210241024 bytes (i.e., 1KB-12MB).
- Msg
Retention doubleTime - The maximum retention time of instance logs, in minutes. the default is 10080 (7 days), the maximum is 30 days, and the default 0 is not filled, which means that the log retention time recovery policy is not enabled.
- Multi
Zone boolFlag - Indicates whether the instance is multi zones. NOTE: if set to
true
,zone_ids
must set together. - Partition double
- Partition Size. Its interval varies with bandwidth, and the input must be within the interval, which can be viewed through the control. If it is not within the interval, the plan will cause a change when first created.
- Period double
- Prepaid purchase time, such as 1, is one month.
- Public
Network double - Bandwidth of the public network.
- Rebalance
Time double - Modification of the rebalancing time after upgrade.
- Renew
Flag double - Prepaid automatic renewal mark, 0 means the default state, the initial state, 1 means automatic renewal, 2 means clear no automatic renewal (user setting).
- Specifications
Type string - Specifications type of instance. Allowed values are
standard
,profession
. Default isprofession
. - Subnet
Id string - Subnet id, it will be basic network if not set.
- Dictionary<string, string>
- Tag set of instance.
- List<Ckafka
Instance Tag> - It has been deprecated from version 1.78.5, because it do not support change. Use
tag_set
instead. Tags of instance. Partition size, the professional version does not need tag. - Upgrade
Strategy double - POSTPAID_BY_HOUR scale-down mode
- 1: stable transformation;
- 2: High-speed transformer.
- Vip string
- Vip of instance.
- Vpc
Id string - Vpc id, it will be basic network if not set.
- Vport string
- Type of instance.
- Zone
Id double - Available zone id.
- Zone
Ids List<double> - List of available zone id. NOTE: this argument must set together with
multi_zone_flag
.
- Band
Width float64 - Instance bandwidth in MBps.
- Charge
Type string - The charge type of instance. Valid values are
PREPAID
andPOSTPAID_BY_HOUR
. Default value isPREPAID
. - Ckafka
Instance stringId - ID of the resource.
- Config
Ckafka
Instance Config Args - Instance configuration.
- Disk
Size float64 - Disk Size. Its interval varies with bandwidth, and the input must be within the interval, which can be viewed through the control. If it is not within the interval, the plan will cause a change when first created.
- Disk
Type string - Type of disk.
- Dynamic
Retention CkafkaConfig Instance Dynamic Retention Config Args - Dynamic message retention policy configuration.
- Elastic
Bandwidth float64Switch - Elastic bandwidth switch 0 not turned on 1 turned on (0 default). This takes effect only when the instance is created.
- Instance
Name string - Instance name.
- Instance
Type float64 - Description of instance type.
profession
: 1,standard
: 1(general), 2(standard), 3(advanced), 4(capacity), 5(specialized-1), 6(specialized-2), 7(specialized-3), 8(specialized-4), 9(exclusive). - Kafka
Version string - Kafka version (0.10.2/1.1.1/2.4.1).
- Max
Message float64Byte - The size of a single message in bytes at the instance level. Value range: `1024 - 1210241024 bytes (i.e., 1KB-12MB).
- Msg
Retention float64Time - The maximum retention time of instance logs, in minutes. the default is 10080 (7 days), the maximum is 30 days, and the default 0 is not filled, which means that the log retention time recovery policy is not enabled.
- Multi
Zone boolFlag - Indicates whether the instance is multi zones. NOTE: if set to
true
,zone_ids
must set together. - Partition float64
- Partition Size. Its interval varies with bandwidth, and the input must be within the interval, which can be viewed through the control. If it is not within the interval, the plan will cause a change when first created.
- Period float64
- Prepaid purchase time, such as 1, is one month.
- Public
Network float64 - Bandwidth of the public network.
- Rebalance
Time float64 - Modification of the rebalancing time after upgrade.
- Renew
Flag float64 - Prepaid automatic renewal mark, 0 means the default state, the initial state, 1 means automatic renewal, 2 means clear no automatic renewal (user setting).
- Specifications
Type string - Specifications type of instance. Allowed values are
standard
,profession
. Default isprofession
. - Subnet
Id string - Subnet id, it will be basic network if not set.
- map[string]string
- Tag set of instance.
- []Ckafka
Instance Tag Args - It has been deprecated from version 1.78.5, because it do not support change. Use
tag_set
instead. Tags of instance. Partition size, the professional version does not need tag. - Upgrade
Strategy float64 - POSTPAID_BY_HOUR scale-down mode
- 1: stable transformation;
- 2: High-speed transformer.
- Vip string
- Vip of instance.
- Vpc
Id string - Vpc id, it will be basic network if not set.
- Vport string
- Type of instance.
- Zone
Id float64 - Available zone id.
- Zone
Ids []float64 - List of available zone id. NOTE: this argument must set together with
multi_zone_flag
.
- band
Width Double - Instance bandwidth in MBps.
- charge
Type String - The charge type of instance. Valid values are
PREPAID
andPOSTPAID_BY_HOUR
. Default value isPREPAID
. - ckafka
Instance StringId - ID of the resource.
- config
Ckafka
Instance Config - Instance configuration.
- disk
Size Double - Disk Size. Its interval varies with bandwidth, and the input must be within the interval, which can be viewed through the control. If it is not within the interval, the plan will cause a change when first created.
- disk
Type String - Type of disk.
- dynamic
Retention CkafkaConfig Instance Dynamic Retention Config - Dynamic message retention policy configuration.
- elastic
Bandwidth DoubleSwitch - Elastic bandwidth switch 0 not turned on 1 turned on (0 default). This takes effect only when the instance is created.
- instance
Name String - Instance name.
- instance
Type Double - Description of instance type.
profession
: 1,standard
: 1(general), 2(standard), 3(advanced), 4(capacity), 5(specialized-1), 6(specialized-2), 7(specialized-3), 8(specialized-4), 9(exclusive). - kafka
Version String - Kafka version (0.10.2/1.1.1/2.4.1).
- max
Message DoubleByte - The size of a single message in bytes at the instance level. Value range: `1024 - 1210241024 bytes (i.e., 1KB-12MB).
- msg
Retention DoubleTime - The maximum retention time of instance logs, in minutes. the default is 10080 (7 days), the maximum is 30 days, and the default 0 is not filled, which means that the log retention time recovery policy is not enabled.
- multi
Zone BooleanFlag - Indicates whether the instance is multi zones. NOTE: if set to
true
,zone_ids
must set together. - partition Double
- Partition Size. Its interval varies with bandwidth, and the input must be within the interval, which can be viewed through the control. If it is not within the interval, the plan will cause a change when first created.
- period Double
- Prepaid purchase time, such as 1, is one month.
- public
Network Double - Bandwidth of the public network.
- rebalance
Time Double - Modification of the rebalancing time after upgrade.
- renew
Flag Double - Prepaid automatic renewal mark, 0 means the default state, the initial state, 1 means automatic renewal, 2 means clear no automatic renewal (user setting).
- specifications
Type String - Specifications type of instance. Allowed values are
standard
,profession
. Default isprofession
. - subnet
Id String - Subnet id, it will be basic network if not set.
- Map<String,String>
- Tag set of instance.
- List<Ckafka
Instance Tag> - It has been deprecated from version 1.78.5, because it do not support change. Use
tag_set
instead. Tags of instance. Partition size, the professional version does not need tag. - upgrade
Strategy Double - POSTPAID_BY_HOUR scale-down mode
- 1: stable transformation;
- 2: High-speed transformer.
- vip String
- Vip of instance.
- vpc
Id String - Vpc id, it will be basic network if not set.
- vport String
- Type of instance.
- zone
Id Double - Available zone id.
- zone
Ids List<Double> - List of available zone id. NOTE: this argument must set together with
multi_zone_flag
.
- band
Width number - Instance bandwidth in MBps.
- charge
Type string - The charge type of instance. Valid values are
PREPAID
andPOSTPAID_BY_HOUR
. Default value isPREPAID
. - ckafka
Instance stringId - ID of the resource.
- config
Ckafka
Instance Config - Instance configuration.
- disk
Size number - Disk Size. Its interval varies with bandwidth, and the input must be within the interval, which can be viewed through the control. If it is not within the interval, the plan will cause a change when first created.
- disk
Type string - Type of disk.
- dynamic
Retention CkafkaConfig Instance Dynamic Retention Config - Dynamic message retention policy configuration.
- elastic
Bandwidth numberSwitch - Elastic bandwidth switch 0 not turned on 1 turned on (0 default). This takes effect only when the instance is created.
- instance
Name string - Instance name.
- instance
Type number - Description of instance type.
profession
: 1,standard
: 1(general), 2(standard), 3(advanced), 4(capacity), 5(specialized-1), 6(specialized-2), 7(specialized-3), 8(specialized-4), 9(exclusive). - kafka
Version string - Kafka version (0.10.2/1.1.1/2.4.1).
- max
Message numberByte - The size of a single message in bytes at the instance level. Value range: `1024 - 1210241024 bytes (i.e., 1KB-12MB).
- msg
Retention numberTime - The maximum retention time of instance logs, in minutes. the default is 10080 (7 days), the maximum is 30 days, and the default 0 is not filled, which means that the log retention time recovery policy is not enabled.
- multi
Zone booleanFlag - Indicates whether the instance is multi zones. NOTE: if set to
true
,zone_ids
must set together. - partition number
- Partition Size. Its interval varies with bandwidth, and the input must be within the interval, which can be viewed through the control. If it is not within the interval, the plan will cause a change when first created.
- period number
- Prepaid purchase time, such as 1, is one month.
- public
Network number - Bandwidth of the public network.
- rebalance
Time number - Modification of the rebalancing time after upgrade.
- renew
Flag number - Prepaid automatic renewal mark, 0 means the default state, the initial state, 1 means automatic renewal, 2 means clear no automatic renewal (user setting).
- specifications
Type string - Specifications type of instance. Allowed values are
standard
,profession
. Default isprofession
. - subnet
Id string - Subnet id, it will be basic network if not set.
- {[key: string]: string}
- Tag set of instance.
- Ckafka
Instance Tag[] - It has been deprecated from version 1.78.5, because it do not support change. Use
tag_set
instead. Tags of instance. Partition size, the professional version does not need tag. - upgrade
Strategy number - POSTPAID_BY_HOUR scale-down mode
- 1: stable transformation;
- 2: High-speed transformer.
- vip string
- Vip of instance.
- vpc
Id string - Vpc id, it will be basic network if not set.
- vport string
- Type of instance.
- zone
Id number - Available zone id.
- zone
Ids number[] - List of available zone id. NOTE: this argument must set together with
multi_zone_flag
.
- band_
width float - Instance bandwidth in MBps.
- charge_
type str - The charge type of instance. Valid values are
PREPAID
andPOSTPAID_BY_HOUR
. Default value isPREPAID
. - ckafka_
instance_ strid - ID of the resource.
- config
Ckafka
Instance Config Args - Instance configuration.
- disk_
size float - Disk Size. Its interval varies with bandwidth, and the input must be within the interval, which can be viewed through the control. If it is not within the interval, the plan will cause a change when first created.
- disk_
type str - Type of disk.
- dynamic_
retention_ Ckafkaconfig Instance Dynamic Retention Config Args - Dynamic message retention policy configuration.
- elastic_
bandwidth_ floatswitch - Elastic bandwidth switch 0 not turned on 1 turned on (0 default). This takes effect only when the instance is created.
- instance_
name str - Instance name.
- instance_
type float - Description of instance type.
profession
: 1,standard
: 1(general), 2(standard), 3(advanced), 4(capacity), 5(specialized-1), 6(specialized-2), 7(specialized-3), 8(specialized-4), 9(exclusive). - kafka_
version str - Kafka version (0.10.2/1.1.1/2.4.1).
- max_
message_ floatbyte - The size of a single message in bytes at the instance level. Value range: `1024 - 1210241024 bytes (i.e., 1KB-12MB).
- msg_
retention_ floattime - The maximum retention time of instance logs, in minutes. the default is 10080 (7 days), the maximum is 30 days, and the default 0 is not filled, which means that the log retention time recovery policy is not enabled.
- multi_
zone_ boolflag - Indicates whether the instance is multi zones. NOTE: if set to
true
,zone_ids
must set together. - partition float
- Partition Size. Its interval varies with bandwidth, and the input must be within the interval, which can be viewed through the control. If it is not within the interval, the plan will cause a change when first created.
- period float
- Prepaid purchase time, such as 1, is one month.
- public_
network float - Bandwidth of the public network.
- rebalance_
time float - Modification of the rebalancing time after upgrade.
- renew_
flag float - Prepaid automatic renewal mark, 0 means the default state, the initial state, 1 means automatic renewal, 2 means clear no automatic renewal (user setting).
- specifications_
type str - Specifications type of instance. Allowed values are
standard
,profession
. Default isprofession
. - subnet_
id str - Subnet id, it will be basic network if not set.
- tag_
set Mapping[str, str] - Tag set of instance.
- Sequence[Ckafka
Instance Tag Args] - It has been deprecated from version 1.78.5, because it do not support change. Use
tag_set
instead. Tags of instance. Partition size, the professional version does not need tag. - upgrade_
strategy float - POSTPAID_BY_HOUR scale-down mode
- 1: stable transformation;
- 2: High-speed transformer.
- vip str
- Vip of instance.
- vpc_
id str - Vpc id, it will be basic network if not set.
- vport str
- Type of instance.
- zone_
id float - Available zone id.
- zone_
ids Sequence[float] - List of available zone id. NOTE: this argument must set together with
multi_zone_flag
.
- band
Width Number - Instance bandwidth in MBps.
- charge
Type String - The charge type of instance. Valid values are
PREPAID
andPOSTPAID_BY_HOUR
. Default value isPREPAID
. - ckafka
Instance StringId - ID of the resource.
- config Property Map
- Instance configuration.
- disk
Size Number - Disk Size. Its interval varies with bandwidth, and the input must be within the interval, which can be viewed through the control. If it is not within the interval, the plan will cause a change when first created.
- disk
Type String - Type of disk.
- dynamic
Retention Property MapConfig - Dynamic message retention policy configuration.
- elastic
Bandwidth NumberSwitch - Elastic bandwidth switch 0 not turned on 1 turned on (0 default). This takes effect only when the instance is created.
- instance
Name String - Instance name.
- instance
Type Number - Description of instance type.
profession
: 1,standard
: 1(general), 2(standard), 3(advanced), 4(capacity), 5(specialized-1), 6(specialized-2), 7(specialized-3), 8(specialized-4), 9(exclusive). - kafka
Version String - Kafka version (0.10.2/1.1.1/2.4.1).
- max
Message NumberByte - The size of a single message in bytes at the instance level. Value range: `1024 - 1210241024 bytes (i.e., 1KB-12MB).
- msg
Retention NumberTime - The maximum retention time of instance logs, in minutes. the default is 10080 (7 days), the maximum is 30 days, and the default 0 is not filled, which means that the log retention time recovery policy is not enabled.
- multi
Zone BooleanFlag - Indicates whether the instance is multi zones. NOTE: if set to
true
,zone_ids
must set together. - partition Number
- Partition Size. Its interval varies with bandwidth, and the input must be within the interval, which can be viewed through the control. If it is not within the interval, the plan will cause a change when first created.
- period Number
- Prepaid purchase time, such as 1, is one month.
- public
Network Number - Bandwidth of the public network.
- rebalance
Time Number - Modification of the rebalancing time after upgrade.
- renew
Flag Number - Prepaid automatic renewal mark, 0 means the default state, the initial state, 1 means automatic renewal, 2 means clear no automatic renewal (user setting).
- specifications
Type String - Specifications type of instance. Allowed values are
standard
,profession
. Default isprofession
. - subnet
Id String - Subnet id, it will be basic network if not set.
- Map<String>
- Tag set of instance.
- List<Property Map>
- It has been deprecated from version 1.78.5, because it do not support change. Use
tag_set
instead. Tags of instance. Partition size, the professional version does not need tag. - upgrade
Strategy Number - POSTPAID_BY_HOUR scale-down mode
- 1: stable transformation;
- 2: High-speed transformer.
- vip String
- Vip of instance.
- vpc
Id String - Vpc id, it will be basic network if not set.
- vport String
- Type of instance.
- zone
Id Number - Available zone id.
- zone
Ids List<Number> - List of available zone id. NOTE: this argument must set together with
multi_zone_flag
.
Supporting Types
CkafkaInstanceConfig, CkafkaInstanceConfigArgs
- Auto
Create boolTopic Enable - Automatic creation. true: enabled, false: not enabled.
- Default
Num doublePartitions - If auto.create.topic.enable is set to true and this value is not set, 3 will be used by default.
- Default
Replication doubleFactor - If auto.create.topic.enable is set to true but this value is not set, 2 will be used by default.
- Auto
Create boolTopic Enable - Automatic creation. true: enabled, false: not enabled.
- Default
Num float64Partitions - If auto.create.topic.enable is set to true and this value is not set, 3 will be used by default.
- Default
Replication float64Factor - If auto.create.topic.enable is set to true but this value is not set, 2 will be used by default.
- auto
Create BooleanTopic Enable - Automatic creation. true: enabled, false: not enabled.
- default
Num DoublePartitions - If auto.create.topic.enable is set to true and this value is not set, 3 will be used by default.
- default
Replication DoubleFactor - If auto.create.topic.enable is set to true but this value is not set, 2 will be used by default.
- auto
Create booleanTopic Enable - Automatic creation. true: enabled, false: not enabled.
- default
Num numberPartitions - If auto.create.topic.enable is set to true and this value is not set, 3 will be used by default.
- default
Replication numberFactor - If auto.create.topic.enable is set to true but this value is not set, 2 will be used by default.
- auto_
create_ booltopic_ enable - Automatic creation. true: enabled, false: not enabled.
- default_
num_ floatpartitions - If auto.create.topic.enable is set to true and this value is not set, 3 will be used by default.
- default_
replication_ floatfactor - If auto.create.topic.enable is set to true but this value is not set, 2 will be used by default.
- auto
Create BooleanTopic Enable - Automatic creation. true: enabled, false: not enabled.
- default
Num NumberPartitions - If auto.create.topic.enable is set to true and this value is not set, 3 will be used by default.
- default
Replication NumberFactor - If auto.create.topic.enable is set to true but this value is not set, 2 will be used by default.
CkafkaInstanceDynamicRetentionConfig, CkafkaInstanceDynamicRetentionConfigArgs
- Bottom
Retention double - Minimum retention time, in minutes.
- Disk
Quota doublePercentage - Disk quota threshold (in percentage) for triggering the message retention time change event.
- Enable double
- Whether the dynamic message retention time configuration is enabled. 0: disabled; 1: enabled.
- Step
Forward doublePercentage - Percentage by which the message retention time is shortened each time.
- Bottom
Retention float64 - Minimum retention time, in minutes.
- Disk
Quota float64Percentage - Disk quota threshold (in percentage) for triggering the message retention time change event.
- Enable float64
- Whether the dynamic message retention time configuration is enabled. 0: disabled; 1: enabled.
- Step
Forward float64Percentage - Percentage by which the message retention time is shortened each time.
- bottom
Retention Double - Minimum retention time, in minutes.
- disk
Quota DoublePercentage - Disk quota threshold (in percentage) for triggering the message retention time change event.
- enable Double
- Whether the dynamic message retention time configuration is enabled. 0: disabled; 1: enabled.
- step
Forward DoublePercentage - Percentage by which the message retention time is shortened each time.
- bottom
Retention number - Minimum retention time, in minutes.
- disk
Quota numberPercentage - Disk quota threshold (in percentage) for triggering the message retention time change event.
- enable number
- Whether the dynamic message retention time configuration is enabled. 0: disabled; 1: enabled.
- step
Forward numberPercentage - Percentage by which the message retention time is shortened each time.
- bottom_
retention float - Minimum retention time, in minutes.
- disk_
quota_ floatpercentage - Disk quota threshold (in percentage) for triggering the message retention time change event.
- enable float
- Whether the dynamic message retention time configuration is enabled. 0: disabled; 1: enabled.
- step_
forward_ floatpercentage - Percentage by which the message retention time is shortened each time.
- bottom
Retention Number - Minimum retention time, in minutes.
- disk
Quota NumberPercentage - Disk quota threshold (in percentage) for triggering the message retention time change event.
- enable Number
- Whether the dynamic message retention time configuration is enabled. 0: disabled; 1: enabled.
- step
Forward NumberPercentage - Percentage by which the message retention time is shortened each time.
CkafkaInstanceTag, CkafkaInstanceTagArgs
Import
ckafka instance can be imported using the instance_id, e.g.
$ pulumi import tencentcloud:index/ckafkaInstance:CkafkaInstance foo ckafka-f9ife4zz
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.