1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. ClsKafkaRecharge
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack

tencentcloud.ClsKafkaRecharge

Explore with Pulumi AI

Provides a resource to create a cls kafka_recharge

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";

const logset = new tencentcloud.ClsLogset("logset", {
    logsetName: "tf-example-logset",
    tags: {
        createdBy: "terraform",
    },
});
const topic = new tencentcloud.ClsTopic("topic", {
    topicName: "tf-example-topic",
    logsetId: logset.clsLogsetId,
    autoSplit: false,
    maxSplitPartitions: 20,
    partitionCount: 1,
    period: 10,
    storageType: "hot",
    tags: {
        test: "test",
    },
});
const kafkaRecharge = new tencentcloud.ClsKafkaRecharge("kafkaRecharge", {
    topicId: topic.clsTopicId,
    kafkaType: 0,
    offset: -2,
    isEncryptionAddr: true,
    userKafkaTopics: "recharge",
    kafkaInstance: "ckafka-qzoeaqx8",
    logRechargeRule: {
        rechargeType: "json_log",
        encodingFormat: 0,
        defaultTimeSwitch: true,
    },
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

logset = tencentcloud.ClsLogset("logset",
    logset_name="tf-example-logset",
    tags={
        "createdBy": "terraform",
    })
topic = tencentcloud.ClsTopic("topic",
    topic_name="tf-example-topic",
    logset_id=logset.cls_logset_id,
    auto_split=False,
    max_split_partitions=20,
    partition_count=1,
    period=10,
    storage_type="hot",
    tags={
        "test": "test",
    })
kafka_recharge = tencentcloud.ClsKafkaRecharge("kafkaRecharge",
    topic_id=topic.cls_topic_id,
    kafka_type=0,
    offset=-2,
    is_encryption_addr=True,
    user_kafka_topics="recharge",
    kafka_instance="ckafka-qzoeaqx8",
    log_recharge_rule={
        "recharge_type": "json_log",
        "encoding_format": 0,
        "default_time_switch": True,
    })
Copy
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 {
		logset, err := tencentcloud.NewClsLogset(ctx, "logset", &tencentcloud.ClsLogsetArgs{
			LogsetName: pulumi.String("tf-example-logset"),
			Tags: pulumi.StringMap{
				"createdBy": pulumi.String("terraform"),
			},
		})
		if err != nil {
			return err
		}
		topic, err := tencentcloud.NewClsTopic(ctx, "topic", &tencentcloud.ClsTopicArgs{
			TopicName:          pulumi.String("tf-example-topic"),
			LogsetId:           logset.ClsLogsetId,
			AutoSplit:          pulumi.Bool(false),
			MaxSplitPartitions: pulumi.Float64(20),
			PartitionCount:     pulumi.Float64(1),
			Period:             pulumi.Float64(10),
			StorageType:        pulumi.String("hot"),
			Tags: pulumi.StringMap{
				"test": pulumi.String("test"),
			},
		})
		if err != nil {
			return err
		}
		_, err = tencentcloud.NewClsKafkaRecharge(ctx, "kafkaRecharge", &tencentcloud.ClsKafkaRechargeArgs{
			TopicId:          topic.ClsTopicId,
			KafkaType:        pulumi.Float64(0),
			Offset:           pulumi.Float64(-2),
			IsEncryptionAddr: pulumi.Bool(true),
			UserKafkaTopics:  pulumi.String("recharge"),
			KafkaInstance:    pulumi.String("ckafka-qzoeaqx8"),
			LogRechargeRule: &tencentcloud.ClsKafkaRechargeLogRechargeRuleArgs{
				RechargeType:      pulumi.String("json_log"),
				EncodingFormat:    pulumi.Float64(0),
				DefaultTimeSwitch: pulumi.Bool(true),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;

return await Deployment.RunAsync(() => 
{
    var logset = new Tencentcloud.ClsLogset("logset", new()
    {
        LogsetName = "tf-example-logset",
        Tags = 
        {
            { "createdBy", "terraform" },
        },
    });

    var topic = new Tencentcloud.ClsTopic("topic", new()
    {
        TopicName = "tf-example-topic",
        LogsetId = logset.ClsLogsetId,
        AutoSplit = false,
        MaxSplitPartitions = 20,
        PartitionCount = 1,
        Period = 10,
        StorageType = "hot",
        Tags = 
        {
            { "test", "test" },
        },
    });

    var kafkaRecharge = new Tencentcloud.ClsKafkaRecharge("kafkaRecharge", new()
    {
        TopicId = topic.ClsTopicId,
        KafkaType = 0,
        Offset = -2,
        IsEncryptionAddr = true,
        UserKafkaTopics = "recharge",
        KafkaInstance = "ckafka-qzoeaqx8",
        LogRechargeRule = new Tencentcloud.Inputs.ClsKafkaRechargeLogRechargeRuleArgs
        {
            RechargeType = "json_log",
            EncodingFormat = 0,
            DefaultTimeSwitch = true,
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.ClsLogset;
import com.pulumi.tencentcloud.ClsLogsetArgs;
import com.pulumi.tencentcloud.ClsTopic;
import com.pulumi.tencentcloud.ClsTopicArgs;
import com.pulumi.tencentcloud.ClsKafkaRecharge;
import com.pulumi.tencentcloud.ClsKafkaRechargeArgs;
import com.pulumi.tencentcloud.inputs.ClsKafkaRechargeLogRechargeRuleArgs;
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 logset = new ClsLogset("logset", ClsLogsetArgs.builder()
            .logsetName("tf-example-logset")
            .tags(Map.of("createdBy", "terraform"))
            .build());

        var topic = new ClsTopic("topic", ClsTopicArgs.builder()
            .topicName("tf-example-topic")
            .logsetId(logset.clsLogsetId())
            .autoSplit(false)
            .maxSplitPartitions(20)
            .partitionCount(1)
            .period(10)
            .storageType("hot")
            .tags(Map.of("test", "test"))
            .build());

        var kafkaRecharge = new ClsKafkaRecharge("kafkaRecharge", ClsKafkaRechargeArgs.builder()
            .topicId(topic.clsTopicId())
            .kafkaType(0)
            .offset(-2)
            .isEncryptionAddr(true)
            .userKafkaTopics("recharge")
            .kafkaInstance("ckafka-qzoeaqx8")
            .logRechargeRule(ClsKafkaRechargeLogRechargeRuleArgs.builder()
                .rechargeType("json_log")
                .encodingFormat(0)
                .defaultTimeSwitch(true)
                .build())
            .build());

    }
}
Copy
resources:
  logset:
    type: tencentcloud:ClsLogset
    properties:
      logsetName: tf-example-logset
      tags:
        createdBy: terraform
  topic:
    type: tencentcloud:ClsTopic
    properties:
      topicName: tf-example-topic
      logsetId: ${logset.clsLogsetId}
      autoSplit: false
      maxSplitPartitions: 20
      partitionCount: 1
      period: 10
      storageType: hot
      tags:
        test: test
  kafkaRecharge:
    type: tencentcloud:ClsKafkaRecharge
    properties:
      topicId: ${topic.clsTopicId}
      kafkaType: 0
      offset: -2
      isEncryptionAddr: true
      userKafkaTopics: recharge
      kafkaInstance: ckafka-qzoeaqx8
      logRechargeRule:
        rechargeType: json_log
        encodingFormat: 0
        defaultTimeSwitch: true
Copy

Create ClsKafkaRecharge Resource

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

Constructor syntax

new ClsKafkaRecharge(name: string, args: ClsKafkaRechargeArgs, opts?: CustomResourceOptions);
@overload
def ClsKafkaRecharge(resource_name: str,
                     args: ClsKafkaRechargeArgs,
                     opts: Optional[ResourceOptions] = None)

@overload
def ClsKafkaRecharge(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     kafka_type: Optional[float] = None,
                     offset: Optional[float] = None,
                     topic_id: Optional[str] = None,
                     user_kafka_topics: Optional[str] = None,
                     cls_kafka_recharge_id: Optional[str] = None,
                     consumer_group_name: Optional[str] = None,
                     is_encryption_addr: Optional[bool] = None,
                     kafka_instance: Optional[str] = None,
                     log_recharge_rule: Optional[ClsKafkaRechargeLogRechargeRuleArgs] = None,
                     name: Optional[str] = None,
                     protocol: Optional[ClsKafkaRechargeProtocolArgs] = None,
                     server_addr: Optional[str] = None)
func NewClsKafkaRecharge(ctx *Context, name string, args ClsKafkaRechargeArgs, opts ...ResourceOption) (*ClsKafkaRecharge, error)
public ClsKafkaRecharge(string name, ClsKafkaRechargeArgs args, CustomResourceOptions? opts = null)
public ClsKafkaRecharge(String name, ClsKafkaRechargeArgs args)
public ClsKafkaRecharge(String name, ClsKafkaRechargeArgs args, CustomResourceOptions options)
type: tencentcloud:ClsKafkaRecharge
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ClsKafkaRechargeArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ClsKafkaRechargeArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ClsKafkaRechargeArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ClsKafkaRechargeArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ClsKafkaRechargeArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

KafkaType This property is required. double
kafka recharge type, 0 for CKafka, 1 fro user define Kafka.
Offset This property is required. double
The translation is: -2: Earliest (default) -1: Latest.
TopicId This property is required. string
recharge for cls TopicId.
UserKafkaTopics This property is required. string
user need recharge kafka topic list.
ClsKafkaRechargeId string
ID of the resource.
ConsumerGroupName string
user consumer group name.
IsEncryptionAddr bool
ServerAddr is encryption addr.
KafkaInstance string
CKafka Instance id.
LogRechargeRule ClsKafkaRechargeLogRechargeRule
log recharge rule.
Name string
kafka recharge name.
Protocol ClsKafkaRechargeProtocol
encryption protocol.
ServerAddr string
Server addr.
KafkaType This property is required. float64
kafka recharge type, 0 for CKafka, 1 fro user define Kafka.
Offset This property is required. float64
The translation is: -2: Earliest (default) -1: Latest.
TopicId This property is required. string
recharge for cls TopicId.
UserKafkaTopics This property is required. string
user need recharge kafka topic list.
ClsKafkaRechargeId string
ID of the resource.
ConsumerGroupName string
user consumer group name.
IsEncryptionAddr bool
ServerAddr is encryption addr.
KafkaInstance string
CKafka Instance id.
LogRechargeRule ClsKafkaRechargeLogRechargeRuleArgs
log recharge rule.
Name string
kafka recharge name.
Protocol ClsKafkaRechargeProtocolArgs
encryption protocol.
ServerAddr string
Server addr.
kafkaType This property is required. Double
kafka recharge type, 0 for CKafka, 1 fro user define Kafka.
offset This property is required. Double
The translation is: -2: Earliest (default) -1: Latest.
topicId This property is required. String
recharge for cls TopicId.
userKafkaTopics This property is required. String
user need recharge kafka topic list.
clsKafkaRechargeId String
ID of the resource.
consumerGroupName String
user consumer group name.
isEncryptionAddr Boolean
ServerAddr is encryption addr.
kafkaInstance String
CKafka Instance id.
logRechargeRule ClsKafkaRechargeLogRechargeRule
log recharge rule.
name String
kafka recharge name.
protocol ClsKafkaRechargeProtocol
encryption protocol.
serverAddr String
Server addr.
kafkaType This property is required. number
kafka recharge type, 0 for CKafka, 1 fro user define Kafka.
offset This property is required. number
The translation is: -2: Earliest (default) -1: Latest.
topicId This property is required. string
recharge for cls TopicId.
userKafkaTopics This property is required. string
user need recharge kafka topic list.
clsKafkaRechargeId string
ID of the resource.
consumerGroupName string
user consumer group name.
isEncryptionAddr boolean
ServerAddr is encryption addr.
kafkaInstance string
CKafka Instance id.
logRechargeRule ClsKafkaRechargeLogRechargeRule
log recharge rule.
name string
kafka recharge name.
protocol ClsKafkaRechargeProtocol
encryption protocol.
serverAddr string
Server addr.
kafka_type This property is required. float
kafka recharge type, 0 for CKafka, 1 fro user define Kafka.
offset This property is required. float
The translation is: -2: Earliest (default) -1: Latest.
topic_id This property is required. str
recharge for cls TopicId.
user_kafka_topics This property is required. str
user need recharge kafka topic list.
cls_kafka_recharge_id str
ID of the resource.
consumer_group_name str
user consumer group name.
is_encryption_addr bool
ServerAddr is encryption addr.
kafka_instance str
CKafka Instance id.
log_recharge_rule ClsKafkaRechargeLogRechargeRuleArgs
log recharge rule.
name str
kafka recharge name.
protocol ClsKafkaRechargeProtocolArgs
encryption protocol.
server_addr str
Server addr.
kafkaType This property is required. Number
kafka recharge type, 0 for CKafka, 1 fro user define Kafka.
offset This property is required. Number
The translation is: -2: Earliest (default) -1: Latest.
topicId This property is required. String
recharge for cls TopicId.
userKafkaTopics This property is required. String
user need recharge kafka topic list.
clsKafkaRechargeId String
ID of the resource.
consumerGroupName String
user consumer group name.
isEncryptionAddr Boolean
ServerAddr is encryption addr.
kafkaInstance String
CKafka Instance id.
logRechargeRule Property Map
log recharge rule.
name String
kafka recharge name.
protocol Property Map
encryption protocol.
serverAddr String
Server addr.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing ClsKafkaRecharge Resource

Get an existing ClsKafkaRecharge 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?: ClsKafkaRechargeState, opts?: CustomResourceOptions): ClsKafkaRecharge
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cls_kafka_recharge_id: Optional[str] = None,
        consumer_group_name: Optional[str] = None,
        is_encryption_addr: Optional[bool] = None,
        kafka_instance: Optional[str] = None,
        kafka_type: Optional[float] = None,
        log_recharge_rule: Optional[ClsKafkaRechargeLogRechargeRuleArgs] = None,
        name: Optional[str] = None,
        offset: Optional[float] = None,
        protocol: Optional[ClsKafkaRechargeProtocolArgs] = None,
        server_addr: Optional[str] = None,
        topic_id: Optional[str] = None,
        user_kafka_topics: Optional[str] = None) -> ClsKafkaRecharge
func GetClsKafkaRecharge(ctx *Context, name string, id IDInput, state *ClsKafkaRechargeState, opts ...ResourceOption) (*ClsKafkaRecharge, error)
public static ClsKafkaRecharge Get(string name, Input<string> id, ClsKafkaRechargeState? state, CustomResourceOptions? opts = null)
public static ClsKafkaRecharge get(String name, Output<String> id, ClsKafkaRechargeState state, CustomResourceOptions options)
resources:  _:    type: tencentcloud:ClsKafkaRecharge    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
ClsKafkaRechargeId string
ID of the resource.
ConsumerGroupName string
user consumer group name.
IsEncryptionAddr bool
ServerAddr is encryption addr.
KafkaInstance string
CKafka Instance id.
KafkaType double
kafka recharge type, 0 for CKafka, 1 fro user define Kafka.
LogRechargeRule ClsKafkaRechargeLogRechargeRule
log recharge rule.
Name string
kafka recharge name.
Offset double
The translation is: -2: Earliest (default) -1: Latest.
Protocol ClsKafkaRechargeProtocol
encryption protocol.
ServerAddr string
Server addr.
TopicId string
recharge for cls TopicId.
UserKafkaTopics string
user need recharge kafka topic list.
ClsKafkaRechargeId string
ID of the resource.
ConsumerGroupName string
user consumer group name.
IsEncryptionAddr bool
ServerAddr is encryption addr.
KafkaInstance string
CKafka Instance id.
KafkaType float64
kafka recharge type, 0 for CKafka, 1 fro user define Kafka.
LogRechargeRule ClsKafkaRechargeLogRechargeRuleArgs
log recharge rule.
Name string
kafka recharge name.
Offset float64
The translation is: -2: Earliest (default) -1: Latest.
Protocol ClsKafkaRechargeProtocolArgs
encryption protocol.
ServerAddr string
Server addr.
TopicId string
recharge for cls TopicId.
UserKafkaTopics string
user need recharge kafka topic list.
clsKafkaRechargeId String
ID of the resource.
consumerGroupName String
user consumer group name.
isEncryptionAddr Boolean
ServerAddr is encryption addr.
kafkaInstance String
CKafka Instance id.
kafkaType Double
kafka recharge type, 0 for CKafka, 1 fro user define Kafka.
logRechargeRule ClsKafkaRechargeLogRechargeRule
log recharge rule.
name String
kafka recharge name.
offset Double
The translation is: -2: Earliest (default) -1: Latest.
protocol ClsKafkaRechargeProtocol
encryption protocol.
serverAddr String
Server addr.
topicId String
recharge for cls TopicId.
userKafkaTopics String
user need recharge kafka topic list.
clsKafkaRechargeId string
ID of the resource.
consumerGroupName string
user consumer group name.
isEncryptionAddr boolean
ServerAddr is encryption addr.
kafkaInstance string
CKafka Instance id.
kafkaType number
kafka recharge type, 0 for CKafka, 1 fro user define Kafka.
logRechargeRule ClsKafkaRechargeLogRechargeRule
log recharge rule.
name string
kafka recharge name.
offset number
The translation is: -2: Earliest (default) -1: Latest.
protocol ClsKafkaRechargeProtocol
encryption protocol.
serverAddr string
Server addr.
topicId string
recharge for cls TopicId.
userKafkaTopics string
user need recharge kafka topic list.
cls_kafka_recharge_id str
ID of the resource.
consumer_group_name str
user consumer group name.
is_encryption_addr bool
ServerAddr is encryption addr.
kafka_instance str
CKafka Instance id.
kafka_type float
kafka recharge type, 0 for CKafka, 1 fro user define Kafka.
log_recharge_rule ClsKafkaRechargeLogRechargeRuleArgs
log recharge rule.
name str
kafka recharge name.
offset float
The translation is: -2: Earliest (default) -1: Latest.
protocol ClsKafkaRechargeProtocolArgs
encryption protocol.
server_addr str
Server addr.
topic_id str
recharge for cls TopicId.
user_kafka_topics str
user need recharge kafka topic list.
clsKafkaRechargeId String
ID of the resource.
consumerGroupName String
user consumer group name.
isEncryptionAddr Boolean
ServerAddr is encryption addr.
kafkaInstance String
CKafka Instance id.
kafkaType Number
kafka recharge type, 0 for CKafka, 1 fro user define Kafka.
logRechargeRule Property Map
log recharge rule.
name String
kafka recharge name.
offset Number
The translation is: -2: Earliest (default) -1: Latest.
protocol Property Map
encryption protocol.
serverAddr String
Server addr.
topicId String
recharge for cls TopicId.
userKafkaTopics String
user need recharge kafka topic list.

Supporting Types

ClsKafkaRechargeLogRechargeRule
, ClsKafkaRechargeLogRechargeRuleArgs

DefaultTimeSwitch This property is required. bool
user default time.
EncodingFormat This property is required. double
encoding format.
RechargeType This property is required. string
recharge type.
DefaultTimeSrc double
default time from.
Keys List<string>
log key list.
LogRegex string
log regex.
Metadatas List<string>
metadata.
TimeFormat string
time format.
TimeKey string
time key.
TimeRegex string
time regex.
TimeZone string
time zone.
UnMatchLogKey string
parse failed log key.
UnMatchLogSwitch bool
is push parse failed log.
UnMatchLogTimeSrc double
parse failed log time from.
DefaultTimeSwitch This property is required. bool
user default time.
EncodingFormat This property is required. float64
encoding format.
RechargeType This property is required. string
recharge type.
DefaultTimeSrc float64
default time from.
Keys []string
log key list.
LogRegex string
log regex.
Metadatas []string
metadata.
TimeFormat string
time format.
TimeKey string
time key.
TimeRegex string
time regex.
TimeZone string
time zone.
UnMatchLogKey string
parse failed log key.
UnMatchLogSwitch bool
is push parse failed log.
UnMatchLogTimeSrc float64
parse failed log time from.
defaultTimeSwitch This property is required. Boolean
user default time.
encodingFormat This property is required. Double
encoding format.
rechargeType This property is required. String
recharge type.
defaultTimeSrc Double
default time from.
keys List<String>
log key list.
logRegex String
log regex.
metadatas List<String>
metadata.
timeFormat String
time format.
timeKey String
time key.
timeRegex String
time regex.
timeZone String
time zone.
unMatchLogKey String
parse failed log key.
unMatchLogSwitch Boolean
is push parse failed log.
unMatchLogTimeSrc Double
parse failed log time from.
defaultTimeSwitch This property is required. boolean
user default time.
encodingFormat This property is required. number
encoding format.
rechargeType This property is required. string
recharge type.
defaultTimeSrc number
default time from.
keys string[]
log key list.
logRegex string
log regex.
metadatas string[]
metadata.
timeFormat string
time format.
timeKey string
time key.
timeRegex string
time regex.
timeZone string
time zone.
unMatchLogKey string
parse failed log key.
unMatchLogSwitch boolean
is push parse failed log.
unMatchLogTimeSrc number
parse failed log time from.
default_time_switch This property is required. bool
user default time.
encoding_format This property is required. float
encoding format.
recharge_type This property is required. str
recharge type.
default_time_src float
default time from.
keys Sequence[str]
log key list.
log_regex str
log regex.
metadatas Sequence[str]
metadata.
time_format str
time format.
time_key str
time key.
time_regex str
time regex.
time_zone str
time zone.
un_match_log_key str
parse failed log key.
un_match_log_switch bool
is push parse failed log.
un_match_log_time_src float
parse failed log time from.
defaultTimeSwitch This property is required. Boolean
user default time.
encodingFormat This property is required. Number
encoding format.
rechargeType This property is required. String
recharge type.
defaultTimeSrc Number
default time from.
keys List<String>
log key list.
logRegex String
log regex.
metadatas List<String>
metadata.
timeFormat String
time format.
timeKey String
time key.
timeRegex String
time regex.
timeZone String
time zone.
unMatchLogKey String
parse failed log key.
unMatchLogSwitch Boolean
is push parse failed log.
unMatchLogTimeSrc Number
parse failed log time from.

ClsKafkaRechargeProtocol
, ClsKafkaRechargeProtocolArgs

Mechanism string
encryption type.
Password string
user password.
Protocol string
protocol type.
UserName string
username.
Mechanism string
encryption type.
Password string
user password.
Protocol string
protocol type.
UserName string
username.
mechanism String
encryption type.
password String
user password.
protocol String
protocol type.
userName String
username.
mechanism string
encryption type.
password string
user password.
protocol string
protocol type.
userName string
username.
mechanism str
encryption type.
password str
user password.
protocol str
protocol type.
user_name str
username.
mechanism String
encryption type.
password String
user password.
protocol String
protocol type.
userName String
username.

Import

cls kafka_recharge can be imported using the id, e.g.

$ pulumi import tencentcloud:index/clsKafkaRecharge:ClsKafkaRecharge kafka_recharge kafka_recharge_id
Copy

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.