tencentcloud.CkafkaTopic
Explore with Pulumi AI
Use this resource to create ckafka topic.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.CkafkaTopic("example", {
cleanUpPolicy: "delete",
enableWhiteList: true,
instanceId: "ckafka-bzmjpavn",
ipWhiteLists: [
"1.1.1.1",
"2.2.2.2",
],
maxMessageBytes: 4096,
note: "topic note",
partitionNum: 2,
replicaNum: 4,
retention: 60000,
segment: 86400000,
syncReplicaMinNum: 2,
topicName: "tf-example",
uncleanLeaderElectionEnable: false,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.CkafkaTopic("example",
clean_up_policy="delete",
enable_white_list=True,
instance_id="ckafka-bzmjpavn",
ip_white_lists=[
"1.1.1.1",
"2.2.2.2",
],
max_message_bytes=4096,
note="topic note",
partition_num=2,
replica_num=4,
retention=60000,
segment=86400000,
sync_replica_min_num=2,
topic_name="tf-example",
unclean_leader_election_enable=False)
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 {
_, err := tencentcloud.NewCkafkaTopic(ctx, "example", &tencentcloud.CkafkaTopicArgs{
CleanUpPolicy: pulumi.String("delete"),
EnableWhiteList: pulumi.Bool(true),
InstanceId: pulumi.String("ckafka-bzmjpavn"),
IpWhiteLists: pulumi.StringArray{
pulumi.String("1.1.1.1"),
pulumi.String("2.2.2.2"),
},
MaxMessageBytes: pulumi.Float64(4096),
Note: pulumi.String("topic note"),
PartitionNum: pulumi.Float64(2),
ReplicaNum: pulumi.Float64(4),
Retention: pulumi.Float64(60000),
Segment: pulumi.Float64(86400000),
SyncReplicaMinNum: pulumi.Float64(2),
TopicName: pulumi.String("tf-example"),
UncleanLeaderElectionEnable: pulumi.Bool(false),
})
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 example = new Tencentcloud.CkafkaTopic("example", new()
{
CleanUpPolicy = "delete",
EnableWhiteList = true,
InstanceId = "ckafka-bzmjpavn",
IpWhiteLists = new[]
{
"1.1.1.1",
"2.2.2.2",
},
MaxMessageBytes = 4096,
Note = "topic note",
PartitionNum = 2,
ReplicaNum = 4,
Retention = 60000,
Segment = 86400000,
SyncReplicaMinNum = 2,
TopicName = "tf-example",
UncleanLeaderElectionEnable = false,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CkafkaTopic;
import com.pulumi.tencentcloud.CkafkaTopicArgs;
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) {
var example = new CkafkaTopic("example", CkafkaTopicArgs.builder()
.cleanUpPolicy("delete")
.enableWhiteList(true)
.instanceId("ckafka-bzmjpavn")
.ipWhiteLists(
"1.1.1.1",
"2.2.2.2")
.maxMessageBytes(4096)
.note("topic note")
.partitionNum(2)
.replicaNum(4)
.retention(60000)
.segment(86400000)
.syncReplicaMinNum(2)
.topicName("tf-example")
.uncleanLeaderElectionEnable(false)
.build());
}
}
resources:
example:
type: tencentcloud:CkafkaTopic
properties:
cleanUpPolicy: delete
enableWhiteList: true
instanceId: ckafka-bzmjpavn
ipWhiteLists:
- 1.1.1.1
- 2.2.2.2
maxMessageBytes: 4096
note: topic note
partitionNum: 2
replicaNum: 4
retention: 60000
segment: 8.64e+07
syncReplicaMinNum: 2
topicName: tf-example
uncleanLeaderElectionEnable: false
Create CkafkaTopic Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CkafkaTopic(name: string, args: CkafkaTopicArgs, opts?: CustomResourceOptions);
@overload
def CkafkaTopic(resource_name: str,
args: CkafkaTopicArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CkafkaTopic(resource_name: str,
opts: Optional[ResourceOptions] = None,
partition_num: Optional[float] = None,
topic_name: Optional[str] = None,
replica_num: Optional[float] = None,
instance_id: Optional[str] = None,
note: Optional[str] = None,
max_message_bytes: Optional[float] = None,
ckafka_topic_id: Optional[str] = None,
ip_white_lists: Optional[Sequence[str]] = None,
enable_white_list: Optional[bool] = None,
retention: Optional[float] = None,
segment: Optional[float] = None,
sync_replica_min_num: Optional[float] = None,
clean_up_policy: Optional[str] = None,
unclean_leader_election_enable: Optional[bool] = None)
func NewCkafkaTopic(ctx *Context, name string, args CkafkaTopicArgs, opts ...ResourceOption) (*CkafkaTopic, error)
public CkafkaTopic(string name, CkafkaTopicArgs args, CustomResourceOptions? opts = null)
public CkafkaTopic(String name, CkafkaTopicArgs args)
public CkafkaTopic(String name, CkafkaTopicArgs args, CustomResourceOptions options)
type: tencentcloud:CkafkaTopic
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 CkafkaTopicArgs
- 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 CkafkaTopicArgs
- 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 CkafkaTopicArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CkafkaTopicArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CkafkaTopicArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CkafkaTopic 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 CkafkaTopic resource accepts the following input properties:
- Instance
Id string - Ckafka instance ID.
- Partition
Num double - The number of partition.
- Replica
Num double - The number of replica.
- Topic
Name string - Name of the CKafka topic. It must start with a letter, the rest can contain letters, numbers and dashes(-).
- Ckafka
Topic stringId - ID of the resource.
- Clean
Up stringPolicy - Clear log policy, log clear mode, default is
delete
.delete
: logs are deleted according to the storage time.compact
: logs are compressed according to the key.compact, delete
: logs are compressed according to the key and will be deleted according to the storage time. - Enable
White boolList - Whether to open the ip whitelist,
true
: open,false
: close. - Ip
White List<string>Lists - Ip whitelist, quota limit, required when enableWhileList=true.
- Max
Message doubleBytes - Max message bytes. min: 1024 Byte(1KB), max: 8388608 Byte(8MB).
- Note string
- The subject note. It must start with a letter, and the remaining part can contain letters, numbers and dashes (-).
- Retention double
- Message can be selected. Retention time, unit is ms, the current minimum value is 60000ms.
- Segment double
- Segment scrolling time, in ms, the current minimum is 3600000ms.
- Sync
Replica doubleMin Num - Min number of sync replicas, Default is
1
. - Unclean
Leader boolElection Enable - Whether to allow unsynchronized replicas to be selected as leader, default is
false
,true:
allowed,false
: not allowed.
- Instance
Id string - Ckafka instance ID.
- Partition
Num float64 - The number of partition.
- Replica
Num float64 - The number of replica.
- Topic
Name string - Name of the CKafka topic. It must start with a letter, the rest can contain letters, numbers and dashes(-).
- Ckafka
Topic stringId - ID of the resource.
- Clean
Up stringPolicy - Clear log policy, log clear mode, default is
delete
.delete
: logs are deleted according to the storage time.compact
: logs are compressed according to the key.compact, delete
: logs are compressed according to the key and will be deleted according to the storage time. - Enable
White boolList - Whether to open the ip whitelist,
true
: open,false
: close. - Ip
White []stringLists - Ip whitelist, quota limit, required when enableWhileList=true.
- Max
Message float64Bytes - Max message bytes. min: 1024 Byte(1KB), max: 8388608 Byte(8MB).
- Note string
- The subject note. It must start with a letter, and the remaining part can contain letters, numbers and dashes (-).
- Retention float64
- Message can be selected. Retention time, unit is ms, the current minimum value is 60000ms.
- Segment float64
- Segment scrolling time, in ms, the current minimum is 3600000ms.
- Sync
Replica float64Min Num - Min number of sync replicas, Default is
1
. - Unclean
Leader boolElection Enable - Whether to allow unsynchronized replicas to be selected as leader, default is
false
,true:
allowed,false
: not allowed.
- instance
Id String - Ckafka instance ID.
- partition
Num Double - The number of partition.
- replica
Num Double - The number of replica.
- topic
Name String - Name of the CKafka topic. It must start with a letter, the rest can contain letters, numbers and dashes(-).
- ckafka
Topic StringId - ID of the resource.
- clean
Up StringPolicy - Clear log policy, log clear mode, default is
delete
.delete
: logs are deleted according to the storage time.compact
: logs are compressed according to the key.compact, delete
: logs are compressed according to the key and will be deleted according to the storage time. - enable
White BooleanList - Whether to open the ip whitelist,
true
: open,false
: close. - ip
White List<String>Lists - Ip whitelist, quota limit, required when enableWhileList=true.
- max
Message DoubleBytes - Max message bytes. min: 1024 Byte(1KB), max: 8388608 Byte(8MB).
- note String
- The subject note. It must start with a letter, and the remaining part can contain letters, numbers and dashes (-).
- retention Double
- Message can be selected. Retention time, unit is ms, the current minimum value is 60000ms.
- segment Double
- Segment scrolling time, in ms, the current minimum is 3600000ms.
- sync
Replica DoubleMin Num - Min number of sync replicas, Default is
1
. - unclean
Leader BooleanElection Enable - Whether to allow unsynchronized replicas to be selected as leader, default is
false
,true:
allowed,false
: not allowed.
- instance
Id string - Ckafka instance ID.
- partition
Num number - The number of partition.
- replica
Num number - The number of replica.
- topic
Name string - Name of the CKafka topic. It must start with a letter, the rest can contain letters, numbers and dashes(-).
- ckafka
Topic stringId - ID of the resource.
- clean
Up stringPolicy - Clear log policy, log clear mode, default is
delete
.delete
: logs are deleted according to the storage time.compact
: logs are compressed according to the key.compact, delete
: logs are compressed according to the key and will be deleted according to the storage time. - enable
White booleanList - Whether to open the ip whitelist,
true
: open,false
: close. - ip
White string[]Lists - Ip whitelist, quota limit, required when enableWhileList=true.
- max
Message numberBytes - Max message bytes. min: 1024 Byte(1KB), max: 8388608 Byte(8MB).
- note string
- The subject note. It must start with a letter, and the remaining part can contain letters, numbers and dashes (-).
- retention number
- Message can be selected. Retention time, unit is ms, the current minimum value is 60000ms.
- segment number
- Segment scrolling time, in ms, the current minimum is 3600000ms.
- sync
Replica numberMin Num - Min number of sync replicas, Default is
1
. - unclean
Leader booleanElection Enable - Whether to allow unsynchronized replicas to be selected as leader, default is
false
,true:
allowed,false
: not allowed.
- instance_
id str - Ckafka instance ID.
- partition_
num float - The number of partition.
- replica_
num float - The number of replica.
- topic_
name str - Name of the CKafka topic. It must start with a letter, the rest can contain letters, numbers and dashes(-).
- ckafka_
topic_ strid - ID of the resource.
- clean_
up_ strpolicy - Clear log policy, log clear mode, default is
delete
.delete
: logs are deleted according to the storage time.compact
: logs are compressed according to the key.compact, delete
: logs are compressed according to the key and will be deleted according to the storage time. - enable_
white_ boollist - Whether to open the ip whitelist,
true
: open,false
: close. - ip_
white_ Sequence[str]lists - Ip whitelist, quota limit, required when enableWhileList=true.
- max_
message_ floatbytes - Max message bytes. min: 1024 Byte(1KB), max: 8388608 Byte(8MB).
- note str
- The subject note. It must start with a letter, and the remaining part can contain letters, numbers and dashes (-).
- retention float
- Message can be selected. Retention time, unit is ms, the current minimum value is 60000ms.
- segment float
- Segment scrolling time, in ms, the current minimum is 3600000ms.
- sync_
replica_ floatmin_ num - Min number of sync replicas, Default is
1
. - unclean_
leader_ boolelection_ enable - Whether to allow unsynchronized replicas to be selected as leader, default is
false
,true:
allowed,false
: not allowed.
- instance
Id String - Ckafka instance ID.
- partition
Num Number - The number of partition.
- replica
Num Number - The number of replica.
- topic
Name String - Name of the CKafka topic. It must start with a letter, the rest can contain letters, numbers and dashes(-).
- ckafka
Topic StringId - ID of the resource.
- clean
Up StringPolicy - Clear log policy, log clear mode, default is
delete
.delete
: logs are deleted according to the storage time.compact
: logs are compressed according to the key.compact, delete
: logs are compressed according to the key and will be deleted according to the storage time. - enable
White BooleanList - Whether to open the ip whitelist,
true
: open,false
: close. - ip
White List<String>Lists - Ip whitelist, quota limit, required when enableWhileList=true.
- max
Message NumberBytes - Max message bytes. min: 1024 Byte(1KB), max: 8388608 Byte(8MB).
- note String
- The subject note. It must start with a letter, and the remaining part can contain letters, numbers and dashes (-).
- retention Number
- Message can be selected. Retention time, unit is ms, the current minimum value is 60000ms.
- segment Number
- Segment scrolling time, in ms, the current minimum is 3600000ms.
- sync
Replica NumberMin Num - Min number of sync replicas, Default is
1
. - unclean
Leader BooleanElection Enable - Whether to allow unsynchronized replicas to be selected as leader, default is
false
,true:
allowed,false
: not allowed.
Outputs
All input properties are implicitly available as output properties. Additionally, the CkafkaTopic resource produces the following output properties:
- Create
Time string - Create time of the CKafka topic.
- Forward
Cos stringBucket - Data backup cos bucket: the bucket address that is dumped to cos.
- Forward
Interval double - Periodic frequency of data backup to cos.
- Forward
Status double - Data backup cos status. Valid values:
0
,1
.1
: do not open data backup,0
: open data backup. - Id string
- The provider-assigned unique ID for this managed resource.
- Message
Storage stringLocation - Message storage location.
- Segment
Bytes double - Number of bytes rolled by shard.
- Create
Time string - Create time of the CKafka topic.
- Forward
Cos stringBucket - Data backup cos bucket: the bucket address that is dumped to cos.
- Forward
Interval float64 - Periodic frequency of data backup to cos.
- Forward
Status float64 - Data backup cos status. Valid values:
0
,1
.1
: do not open data backup,0
: open data backup. - Id string
- The provider-assigned unique ID for this managed resource.
- Message
Storage stringLocation - Message storage location.
- Segment
Bytes float64 - Number of bytes rolled by shard.
- create
Time String - Create time of the CKafka topic.
- forward
Cos StringBucket - Data backup cos bucket: the bucket address that is dumped to cos.
- forward
Interval Double - Periodic frequency of data backup to cos.
- forward
Status Double - Data backup cos status. Valid values:
0
,1
.1
: do not open data backup,0
: open data backup. - id String
- The provider-assigned unique ID for this managed resource.
- message
Storage StringLocation - Message storage location.
- segment
Bytes Double - Number of bytes rolled by shard.
- create
Time string - Create time of the CKafka topic.
- forward
Cos stringBucket - Data backup cos bucket: the bucket address that is dumped to cos.
- forward
Interval number - Periodic frequency of data backup to cos.
- forward
Status number - Data backup cos status. Valid values:
0
,1
.1
: do not open data backup,0
: open data backup. - id string
- The provider-assigned unique ID for this managed resource.
- message
Storage stringLocation - Message storage location.
- segment
Bytes number - Number of bytes rolled by shard.
- create_
time str - Create time of the CKafka topic.
- forward_
cos_ strbucket - Data backup cos bucket: the bucket address that is dumped to cos.
- forward_
interval float - Periodic frequency of data backup to cos.
- forward_
status float - Data backup cos status. Valid values:
0
,1
.1
: do not open data backup,0
: open data backup. - id str
- The provider-assigned unique ID for this managed resource.
- message_
storage_ strlocation - Message storage location.
- segment_
bytes float - Number of bytes rolled by shard.
- create
Time String - Create time of the CKafka topic.
- forward
Cos StringBucket - Data backup cos bucket: the bucket address that is dumped to cos.
- forward
Interval Number - Periodic frequency of data backup to cos.
- forward
Status Number - Data backup cos status. Valid values:
0
,1
.1
: do not open data backup,0
: open data backup. - id String
- The provider-assigned unique ID for this managed resource.
- message
Storage StringLocation - Message storage location.
- segment
Bytes Number - Number of bytes rolled by shard.
Look up Existing CkafkaTopic Resource
Get an existing CkafkaTopic 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?: CkafkaTopicState, opts?: CustomResourceOptions): CkafkaTopic
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
ckafka_topic_id: Optional[str] = None,
clean_up_policy: Optional[str] = None,
create_time: Optional[str] = None,
enable_white_list: Optional[bool] = None,
forward_cos_bucket: Optional[str] = None,
forward_interval: Optional[float] = None,
forward_status: Optional[float] = None,
instance_id: Optional[str] = None,
ip_white_lists: Optional[Sequence[str]] = None,
max_message_bytes: Optional[float] = None,
message_storage_location: Optional[str] = None,
note: Optional[str] = None,
partition_num: Optional[float] = None,
replica_num: Optional[float] = None,
retention: Optional[float] = None,
segment: Optional[float] = None,
segment_bytes: Optional[float] = None,
sync_replica_min_num: Optional[float] = None,
topic_name: Optional[str] = None,
unclean_leader_election_enable: Optional[bool] = None) -> CkafkaTopic
func GetCkafkaTopic(ctx *Context, name string, id IDInput, state *CkafkaTopicState, opts ...ResourceOption) (*CkafkaTopic, error)
public static CkafkaTopic Get(string name, Input<string> id, CkafkaTopicState? state, CustomResourceOptions? opts = null)
public static CkafkaTopic get(String name, Output<String> id, CkafkaTopicState state, CustomResourceOptions options)
resources: _: type: tencentcloud:CkafkaTopic 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.
- Ckafka
Topic stringId - ID of the resource.
- Clean
Up stringPolicy - Clear log policy, log clear mode, default is
delete
.delete
: logs are deleted according to the storage time.compact
: logs are compressed according to the key.compact, delete
: logs are compressed according to the key and will be deleted according to the storage time. - Create
Time string - Create time of the CKafka topic.
- Enable
White boolList - Whether to open the ip whitelist,
true
: open,false
: close. - Forward
Cos stringBucket - Data backup cos bucket: the bucket address that is dumped to cos.
- Forward
Interval double - Periodic frequency of data backup to cos.
- Forward
Status double - Data backup cos status. Valid values:
0
,1
.1
: do not open data backup,0
: open data backup. - Instance
Id string - Ckafka instance ID.
- Ip
White List<string>Lists - Ip whitelist, quota limit, required when enableWhileList=true.
- Max
Message doubleBytes - Max message bytes. min: 1024 Byte(1KB), max: 8388608 Byte(8MB).
- Message
Storage stringLocation - Message storage location.
- Note string
- The subject note. It must start with a letter, and the remaining part can contain letters, numbers and dashes (-).
- Partition
Num double - The number of partition.
- Replica
Num double - The number of replica.
- Retention double
- Message can be selected. Retention time, unit is ms, the current minimum value is 60000ms.
- Segment double
- Segment scrolling time, in ms, the current minimum is 3600000ms.
- Segment
Bytes double - Number of bytes rolled by shard.
- Sync
Replica doubleMin Num - Min number of sync replicas, Default is
1
. - Topic
Name string - Name of the CKafka topic. It must start with a letter, the rest can contain letters, numbers and dashes(-).
- Unclean
Leader boolElection Enable - Whether to allow unsynchronized replicas to be selected as leader, default is
false
,true:
allowed,false
: not allowed.
- Ckafka
Topic stringId - ID of the resource.
- Clean
Up stringPolicy - Clear log policy, log clear mode, default is
delete
.delete
: logs are deleted according to the storage time.compact
: logs are compressed according to the key.compact, delete
: logs are compressed according to the key and will be deleted according to the storage time. - Create
Time string - Create time of the CKafka topic.
- Enable
White boolList - Whether to open the ip whitelist,
true
: open,false
: close. - Forward
Cos stringBucket - Data backup cos bucket: the bucket address that is dumped to cos.
- Forward
Interval float64 - Periodic frequency of data backup to cos.
- Forward
Status float64 - Data backup cos status. Valid values:
0
,1
.1
: do not open data backup,0
: open data backup. - Instance
Id string - Ckafka instance ID.
- Ip
White []stringLists - Ip whitelist, quota limit, required when enableWhileList=true.
- Max
Message float64Bytes - Max message bytes. min: 1024 Byte(1KB), max: 8388608 Byte(8MB).
- Message
Storage stringLocation - Message storage location.
- Note string
- The subject note. It must start with a letter, and the remaining part can contain letters, numbers and dashes (-).
- Partition
Num float64 - The number of partition.
- Replica
Num float64 - The number of replica.
- Retention float64
- Message can be selected. Retention time, unit is ms, the current minimum value is 60000ms.
- Segment float64
- Segment scrolling time, in ms, the current minimum is 3600000ms.
- Segment
Bytes float64 - Number of bytes rolled by shard.
- Sync
Replica float64Min Num - Min number of sync replicas, Default is
1
. - Topic
Name string - Name of the CKafka topic. It must start with a letter, the rest can contain letters, numbers and dashes(-).
- Unclean
Leader boolElection Enable - Whether to allow unsynchronized replicas to be selected as leader, default is
false
,true:
allowed,false
: not allowed.
- ckafka
Topic StringId - ID of the resource.
- clean
Up StringPolicy - Clear log policy, log clear mode, default is
delete
.delete
: logs are deleted according to the storage time.compact
: logs are compressed according to the key.compact, delete
: logs are compressed according to the key and will be deleted according to the storage time. - create
Time String - Create time of the CKafka topic.
- enable
White BooleanList - Whether to open the ip whitelist,
true
: open,false
: close. - forward
Cos StringBucket - Data backup cos bucket: the bucket address that is dumped to cos.
- forward
Interval Double - Periodic frequency of data backup to cos.
- forward
Status Double - Data backup cos status. Valid values:
0
,1
.1
: do not open data backup,0
: open data backup. - instance
Id String - Ckafka instance ID.
- ip
White List<String>Lists - Ip whitelist, quota limit, required when enableWhileList=true.
- max
Message DoubleBytes - Max message bytes. min: 1024 Byte(1KB), max: 8388608 Byte(8MB).
- message
Storage StringLocation - Message storage location.
- note String
- The subject note. It must start with a letter, and the remaining part can contain letters, numbers and dashes (-).
- partition
Num Double - The number of partition.
- replica
Num Double - The number of replica.
- retention Double
- Message can be selected. Retention time, unit is ms, the current minimum value is 60000ms.
- segment Double
- Segment scrolling time, in ms, the current minimum is 3600000ms.
- segment
Bytes Double - Number of bytes rolled by shard.
- sync
Replica DoubleMin Num - Min number of sync replicas, Default is
1
. - topic
Name String - Name of the CKafka topic. It must start with a letter, the rest can contain letters, numbers and dashes(-).
- unclean
Leader BooleanElection Enable - Whether to allow unsynchronized replicas to be selected as leader, default is
false
,true:
allowed,false
: not allowed.
- ckafka
Topic stringId - ID of the resource.
- clean
Up stringPolicy - Clear log policy, log clear mode, default is
delete
.delete
: logs are deleted according to the storage time.compact
: logs are compressed according to the key.compact, delete
: logs are compressed according to the key and will be deleted according to the storage time. - create
Time string - Create time of the CKafka topic.
- enable
White booleanList - Whether to open the ip whitelist,
true
: open,false
: close. - forward
Cos stringBucket - Data backup cos bucket: the bucket address that is dumped to cos.
- forward
Interval number - Periodic frequency of data backup to cos.
- forward
Status number - Data backup cos status. Valid values:
0
,1
.1
: do not open data backup,0
: open data backup. - instance
Id string - Ckafka instance ID.
- ip
White string[]Lists - Ip whitelist, quota limit, required when enableWhileList=true.
- max
Message numberBytes - Max message bytes. min: 1024 Byte(1KB), max: 8388608 Byte(8MB).
- message
Storage stringLocation - Message storage location.
- note string
- The subject note. It must start with a letter, and the remaining part can contain letters, numbers and dashes (-).
- partition
Num number - The number of partition.
- replica
Num number - The number of replica.
- retention number
- Message can be selected. Retention time, unit is ms, the current minimum value is 60000ms.
- segment number
- Segment scrolling time, in ms, the current minimum is 3600000ms.
- segment
Bytes number - Number of bytes rolled by shard.
- sync
Replica numberMin Num - Min number of sync replicas, Default is
1
. - topic
Name string - Name of the CKafka topic. It must start with a letter, the rest can contain letters, numbers and dashes(-).
- unclean
Leader booleanElection Enable - Whether to allow unsynchronized replicas to be selected as leader, default is
false
,true:
allowed,false
: not allowed.
- ckafka_
topic_ strid - ID of the resource.
- clean_
up_ strpolicy - Clear log policy, log clear mode, default is
delete
.delete
: logs are deleted according to the storage time.compact
: logs are compressed according to the key.compact, delete
: logs are compressed according to the key and will be deleted according to the storage time. - create_
time str - Create time of the CKafka topic.
- enable_
white_ boollist - Whether to open the ip whitelist,
true
: open,false
: close. - forward_
cos_ strbucket - Data backup cos bucket: the bucket address that is dumped to cos.
- forward_
interval float - Periodic frequency of data backup to cos.
- forward_
status float - Data backup cos status. Valid values:
0
,1
.1
: do not open data backup,0
: open data backup. - instance_
id str - Ckafka instance ID.
- ip_
white_ Sequence[str]lists - Ip whitelist, quota limit, required when enableWhileList=true.
- max_
message_ floatbytes - Max message bytes. min: 1024 Byte(1KB), max: 8388608 Byte(8MB).
- message_
storage_ strlocation - Message storage location.
- note str
- The subject note. It must start with a letter, and the remaining part can contain letters, numbers and dashes (-).
- partition_
num float - The number of partition.
- replica_
num float - The number of replica.
- retention float
- Message can be selected. Retention time, unit is ms, the current minimum value is 60000ms.
- segment float
- Segment scrolling time, in ms, the current minimum is 3600000ms.
- segment_
bytes float - Number of bytes rolled by shard.
- sync_
replica_ floatmin_ num - Min number of sync replicas, Default is
1
. - topic_
name str - Name of the CKafka topic. It must start with a letter, the rest can contain letters, numbers and dashes(-).
- unclean_
leader_ boolelection_ enable - Whether to allow unsynchronized replicas to be selected as leader, default is
false
,true:
allowed,false
: not allowed.
- ckafka
Topic StringId - ID of the resource.
- clean
Up StringPolicy - Clear log policy, log clear mode, default is
delete
.delete
: logs are deleted according to the storage time.compact
: logs are compressed according to the key.compact, delete
: logs are compressed according to the key and will be deleted according to the storage time. - create
Time String - Create time of the CKafka topic.
- enable
White BooleanList - Whether to open the ip whitelist,
true
: open,false
: close. - forward
Cos StringBucket - Data backup cos bucket: the bucket address that is dumped to cos.
- forward
Interval Number - Periodic frequency of data backup to cos.
- forward
Status Number - Data backup cos status. Valid values:
0
,1
.1
: do not open data backup,0
: open data backup. - instance
Id String - Ckafka instance ID.
- ip
White List<String>Lists - Ip whitelist, quota limit, required when enableWhileList=true.
- max
Message NumberBytes - Max message bytes. min: 1024 Byte(1KB), max: 8388608 Byte(8MB).
- message
Storage StringLocation - Message storage location.
- note String
- The subject note. It must start with a letter, and the remaining part can contain letters, numbers and dashes (-).
- partition
Num Number - The number of partition.
- replica
Num Number - The number of replica.
- retention Number
- Message can be selected. Retention time, unit is ms, the current minimum value is 60000ms.
- segment Number
- Segment scrolling time, in ms, the current minimum is 3600000ms.
- segment
Bytes Number - Number of bytes rolled by shard.
- sync
Replica NumberMin Num - Min number of sync replicas, Default is
1
. - topic
Name String - Name of the CKafka topic. It must start with a letter, the rest can contain letters, numbers and dashes(-).
- unclean
Leader BooleanElection Enable - Whether to allow unsynchronized replicas to be selected as leader, default is
false
,true:
allowed,false
: not allowed.
Import
ckafka topic can be imported using the instance_id#topic_name, e.g.
$ pulumi import tencentcloud:index/ckafkaTopic:CkafkaTopic example ckafka-f9ife4zz#tf-example
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.