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

tencentcloud.WafLogPostCkafkaFlow

Explore with Pulumi AI

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

    Provides a resource to create a WAF log post ckafka flow

    Example Usage

    If vip_type is 1

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.WafLogPostCkafkaFlow("example", {
        brokers: "ckafka-qzoeajkz.ap-guangzhou.ckafka.tencentcloudmq.com:50000",
        ckafkaId: "ckafka-qzoeajkz",
        ckafkaRegion: "ap-guangzhou",
        compression: "snappy",
        kafkaVersion: "2.8.1",
        logType: 2,
        saslEnable: 1,
        saslPassword: "Password@123",
        saslUser: "ckafka-qzoeajkz#root",
        topic: "tf-example",
        vipType: 1,
        writeConfig: {
            enableBody: 1,
            enableBot: 1,
            enableHeaders: 1,
        },
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.WafLogPostCkafkaFlow("example",
        brokers="ckafka-qzoeajkz.ap-guangzhou.ckafka.tencentcloudmq.com:50000",
        ckafka_id="ckafka-qzoeajkz",
        ckafka_region="ap-guangzhou",
        compression="snappy",
        kafka_version="2.8.1",
        log_type=2,
        sasl_enable=1,
        sasl_password="Password@123",
        sasl_user="ckafka-qzoeajkz#root",
        topic="tf-example",
        vip_type=1,
        write_config={
            "enable_body": 1,
            "enable_bot": 1,
            "enable_headers": 1,
        })
    
    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.NewWafLogPostCkafkaFlow(ctx, "example", &tencentcloud.WafLogPostCkafkaFlowArgs{
    			Brokers:      pulumi.String("ckafka-qzoeajkz.ap-guangzhou.ckafka.tencentcloudmq.com:50000"),
    			CkafkaId:     pulumi.String("ckafka-qzoeajkz"),
    			CkafkaRegion: pulumi.String("ap-guangzhou"),
    			Compression:  pulumi.String("snappy"),
    			KafkaVersion: pulumi.String("2.8.1"),
    			LogType:      pulumi.Float64(2),
    			SaslEnable:   pulumi.Float64(1),
    			SaslPassword: pulumi.String("Password@123"),
    			SaslUser:     pulumi.String("ckafka-qzoeajkz#root"),
    			Topic:        pulumi.String("tf-example"),
    			VipType:      pulumi.Float64(1),
    			WriteConfig: &tencentcloud.WafLogPostCkafkaFlowWriteConfigArgs{
    				EnableBody:    pulumi.Float64(1),
    				EnableBot:     pulumi.Float64(1),
    				EnableHeaders: 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 example = new Tencentcloud.WafLogPostCkafkaFlow("example", new()
        {
            Brokers = "ckafka-qzoeajkz.ap-guangzhou.ckafka.tencentcloudmq.com:50000",
            CkafkaId = "ckafka-qzoeajkz",
            CkafkaRegion = "ap-guangzhou",
            Compression = "snappy",
            KafkaVersion = "2.8.1",
            LogType = 2,
            SaslEnable = 1,
            SaslPassword = "Password@123",
            SaslUser = "ckafka-qzoeajkz#root",
            Topic = "tf-example",
            VipType = 1,
            WriteConfig = new Tencentcloud.Inputs.WafLogPostCkafkaFlowWriteConfigArgs
            {
                EnableBody = 1,
                EnableBot = 1,
                EnableHeaders = 1,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.WafLogPostCkafkaFlow;
    import com.pulumi.tencentcloud.WafLogPostCkafkaFlowArgs;
    import com.pulumi.tencentcloud.inputs.WafLogPostCkafkaFlowWriteConfigArgs;
    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 WafLogPostCkafkaFlow("example", WafLogPostCkafkaFlowArgs.builder()
                .brokers("ckafka-qzoeajkz.ap-guangzhou.ckafka.tencentcloudmq.com:50000")
                .ckafkaId("ckafka-qzoeajkz")
                .ckafkaRegion("ap-guangzhou")
                .compression("snappy")
                .kafkaVersion("2.8.1")
                .logType(2)
                .saslEnable(1)
                .saslPassword("Password@123")
                .saslUser("ckafka-qzoeajkz#root")
                .topic("tf-example")
                .vipType(1)
                .writeConfig(WafLogPostCkafkaFlowWriteConfigArgs.builder()
                    .enableBody(1)
                    .enableBot(1)
                    .enableHeaders(1)
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:WafLogPostCkafkaFlow
        properties:
          brokers: ckafka-qzoeajkz.ap-guangzhou.ckafka.tencentcloudmq.com:50000
          ckafkaId: ckafka-qzoeajkz
          ckafkaRegion: ap-guangzhou
          compression: snappy
          kafkaVersion: 2.8.1
          logType: 2
          saslEnable: 1
          saslPassword: Password@123
          saslUser: ckafka-qzoeajkz#root
          topic: tf-example
          vipType: 1
          writeConfig:
            enableBody: 1
            enableBot: 1
            enableHeaders: 1
    

    If vip_type is 2

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.WafLogPostCkafkaFlow("example", {
        brokers: "11.135.14.110:18737",
        ckafkaId: "ckafka-k9m5vwar",
        ckafkaRegion: "ap-guangzhou",
        compression: "snappy",
        kafkaVersion: "2.8.1",
        logType: 1,
        topic: "tf-example",
        vipType: 2,
        writeConfig: {
            enableBody: 0,
            enableBot: 1,
            enableHeaders: 0,
        },
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.WafLogPostCkafkaFlow("example",
        brokers="11.135.14.110:18737",
        ckafka_id="ckafka-k9m5vwar",
        ckafka_region="ap-guangzhou",
        compression="snappy",
        kafka_version="2.8.1",
        log_type=1,
        topic="tf-example",
        vip_type=2,
        write_config={
            "enable_body": 0,
            "enable_bot": 1,
            "enable_headers": 0,
        })
    
    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.NewWafLogPostCkafkaFlow(ctx, "example", &tencentcloud.WafLogPostCkafkaFlowArgs{
    			Brokers:      pulumi.String("11.135.14.110:18737"),
    			CkafkaId:     pulumi.String("ckafka-k9m5vwar"),
    			CkafkaRegion: pulumi.String("ap-guangzhou"),
    			Compression:  pulumi.String("snappy"),
    			KafkaVersion: pulumi.String("2.8.1"),
    			LogType:      pulumi.Float64(1),
    			Topic:        pulumi.String("tf-example"),
    			VipType:      pulumi.Float64(2),
    			WriteConfig: &tencentcloud.WafLogPostCkafkaFlowWriteConfigArgs{
    				EnableBody:    pulumi.Float64(0),
    				EnableBot:     pulumi.Float64(1),
    				EnableHeaders: pulumi.Float64(0),
    			},
    		})
    		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.WafLogPostCkafkaFlow("example", new()
        {
            Brokers = "11.135.14.110:18737",
            CkafkaId = "ckafka-k9m5vwar",
            CkafkaRegion = "ap-guangzhou",
            Compression = "snappy",
            KafkaVersion = "2.8.1",
            LogType = 1,
            Topic = "tf-example",
            VipType = 2,
            WriteConfig = new Tencentcloud.Inputs.WafLogPostCkafkaFlowWriteConfigArgs
            {
                EnableBody = 0,
                EnableBot = 1,
                EnableHeaders = 0,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.WafLogPostCkafkaFlow;
    import com.pulumi.tencentcloud.WafLogPostCkafkaFlowArgs;
    import com.pulumi.tencentcloud.inputs.WafLogPostCkafkaFlowWriteConfigArgs;
    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 WafLogPostCkafkaFlow("example", WafLogPostCkafkaFlowArgs.builder()
                .brokers("11.135.14.110:18737")
                .ckafkaId("ckafka-k9m5vwar")
                .ckafkaRegion("ap-guangzhou")
                .compression("snappy")
                .kafkaVersion("2.8.1")
                .logType(1)
                .topic("tf-example")
                .vipType(2)
                .writeConfig(WafLogPostCkafkaFlowWriteConfigArgs.builder()
                    .enableBody(0)
                    .enableBot(1)
                    .enableHeaders(0)
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:WafLogPostCkafkaFlow
        properties:
          brokers: 11.135.14.110:18737
          ckafkaId: ckafka-k9m5vwar
          ckafkaRegion: ap-guangzhou
          compression: snappy
          kafkaVersion: 2.8.1
          logType: 1
          topic: tf-example
          vipType: 2
          writeConfig:
            enableBody: 0
            enableBot: 1
            enableHeaders: 0
    

    Create WafLogPostCkafkaFlow Resource

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

    Constructor syntax

    new WafLogPostCkafkaFlow(name: string, args: WafLogPostCkafkaFlowArgs, opts?: CustomResourceOptions);
    @overload
    def WafLogPostCkafkaFlow(resource_name: str,
                             args: WafLogPostCkafkaFlowArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def WafLogPostCkafkaFlow(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             topic: Optional[str] = None,
                             ckafka_id: Optional[str] = None,
                             ckafka_region: Optional[str] = None,
                             compression: Optional[str] = None,
                             kafka_version: Optional[str] = None,
                             log_type: Optional[float] = None,
                             brokers: Optional[str] = None,
                             vip_type: Optional[float] = None,
                             sasl_enable: Optional[float] = None,
                             sasl_password: Optional[str] = None,
                             sasl_user: Optional[str] = None,
                             waf_log_post_ckafka_flow_id: Optional[str] = None,
                             write_config: Optional[WafLogPostCkafkaFlowWriteConfigArgs] = None)
    func NewWafLogPostCkafkaFlow(ctx *Context, name string, args WafLogPostCkafkaFlowArgs, opts ...ResourceOption) (*WafLogPostCkafkaFlow, error)
    public WafLogPostCkafkaFlow(string name, WafLogPostCkafkaFlowArgs args, CustomResourceOptions? opts = null)
    public WafLogPostCkafkaFlow(String name, WafLogPostCkafkaFlowArgs args)
    public WafLogPostCkafkaFlow(String name, WafLogPostCkafkaFlowArgs args, CustomResourceOptions options)
    
    type: tencentcloud:WafLogPostCkafkaFlow
    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 WafLogPostCkafkaFlowArgs
    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 WafLogPostCkafkaFlowArgs
    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 WafLogPostCkafkaFlowArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args WafLogPostCkafkaFlowArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args WafLogPostCkafkaFlowArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    Brokers string
    The supporting environment is IP:PORT, The external network environment is domain:PORT.
    CkafkaId string
    CKafka ID.
    CkafkaRegion string
    The region where CKafka is located for delivery.
    Compression string
    Default to none, supports snappy, gzip, and lz4 compression, recommended snappy.
    KafkaVersion string
    Version number of Kafka cluster.
    LogType double
    1- Access log, 2- Attack log, the default is access log.
    Topic string
    Theme name, default not to pass or pass empty string, default value is waf_post_access_log.
    VipType double
    1. External network TGW, 2. Supporting environment, default is supporting environment.
    SaslEnable double
    Whether to enable SASL verification, default not enabled, 0-off, 1-on.
    SaslPassword string
    SASL password.
    SaslUser string
    SASL username.
    WafLogPostCkafkaFlowId string
    ID of the resource.
    WriteConfig WafLogPostCkafkaFlowWriteConfig
    Enable access to certain fields of the log and check if they have been delivered.
    Brokers string
    The supporting environment is IP:PORT, The external network environment is domain:PORT.
    CkafkaId string
    CKafka ID.
    CkafkaRegion string
    The region where CKafka is located for delivery.
    Compression string
    Default to none, supports snappy, gzip, and lz4 compression, recommended snappy.
    KafkaVersion string
    Version number of Kafka cluster.
    LogType float64
    1- Access log, 2- Attack log, the default is access log.
    Topic string
    Theme name, default not to pass or pass empty string, default value is waf_post_access_log.
    VipType float64
    1. External network TGW, 2. Supporting environment, default is supporting environment.
    SaslEnable float64
    Whether to enable SASL verification, default not enabled, 0-off, 1-on.
    SaslPassword string
    SASL password.
    SaslUser string
    SASL username.
    WafLogPostCkafkaFlowId string
    ID of the resource.
    WriteConfig WafLogPostCkafkaFlowWriteConfigArgs
    Enable access to certain fields of the log and check if they have been delivered.
    brokers String
    The supporting environment is IP:PORT, The external network environment is domain:PORT.
    ckafkaId String
    CKafka ID.
    ckafkaRegion String
    The region where CKafka is located for delivery.
    compression String
    Default to none, supports snappy, gzip, and lz4 compression, recommended snappy.
    kafkaVersion String
    Version number of Kafka cluster.
    logType Double
    1- Access log, 2- Attack log, the default is access log.
    topic String
    Theme name, default not to pass or pass empty string, default value is waf_post_access_log.
    vipType Double
    1. External network TGW, 2. Supporting environment, default is supporting environment.
    saslEnable Double
    Whether to enable SASL verification, default not enabled, 0-off, 1-on.
    saslPassword String
    SASL password.
    saslUser String
    SASL username.
    wafLogPostCkafkaFlowId String
    ID of the resource.
    writeConfig WafLogPostCkafkaFlowWriteConfig
    Enable access to certain fields of the log and check if they have been delivered.
    brokers string
    The supporting environment is IP:PORT, The external network environment is domain:PORT.
    ckafkaId string
    CKafka ID.
    ckafkaRegion string
    The region where CKafka is located for delivery.
    compression string
    Default to none, supports snappy, gzip, and lz4 compression, recommended snappy.
    kafkaVersion string
    Version number of Kafka cluster.
    logType number
    1- Access log, 2- Attack log, the default is access log.
    topic string
    Theme name, default not to pass or pass empty string, default value is waf_post_access_log.
    vipType number
    1. External network TGW, 2. Supporting environment, default is supporting environment.
    saslEnable number
    Whether to enable SASL verification, default not enabled, 0-off, 1-on.
    saslPassword string
    SASL password.
    saslUser string
    SASL username.
    wafLogPostCkafkaFlowId string
    ID of the resource.
    writeConfig WafLogPostCkafkaFlowWriteConfig
    Enable access to certain fields of the log and check if they have been delivered.
    brokers str
    The supporting environment is IP:PORT, The external network environment is domain:PORT.
    ckafka_id str
    CKafka ID.
    ckafka_region str
    The region where CKafka is located for delivery.
    compression str
    Default to none, supports snappy, gzip, and lz4 compression, recommended snappy.
    kafka_version str
    Version number of Kafka cluster.
    log_type float
    1- Access log, 2- Attack log, the default is access log.
    topic str
    Theme name, default not to pass or pass empty string, default value is waf_post_access_log.
    vip_type float
    1. External network TGW, 2. Supporting environment, default is supporting environment.
    sasl_enable float
    Whether to enable SASL verification, default not enabled, 0-off, 1-on.
    sasl_password str
    SASL password.
    sasl_user str
    SASL username.
    waf_log_post_ckafka_flow_id str
    ID of the resource.
    write_config WafLogPostCkafkaFlowWriteConfigArgs
    Enable access to certain fields of the log and check if they have been delivered.
    brokers String
    The supporting environment is IP:PORT, The external network environment is domain:PORT.
    ckafkaId String
    CKafka ID.
    ckafkaRegion String
    The region where CKafka is located for delivery.
    compression String
    Default to none, supports snappy, gzip, and lz4 compression, recommended snappy.
    kafkaVersion String
    Version number of Kafka cluster.
    logType Number
    1- Access log, 2- Attack log, the default is access log.
    topic String
    Theme name, default not to pass or pass empty string, default value is waf_post_access_log.
    vipType Number
    1. External network TGW, 2. Supporting environment, default is supporting environment.
    saslEnable Number
    Whether to enable SASL verification, default not enabled, 0-off, 1-on.
    saslPassword String
    SASL password.
    saslUser String
    SASL username.
    wafLogPostCkafkaFlowId String
    ID of the resource.
    writeConfig Property Map
    Enable access to certain fields of the log and check if they have been delivered.

    Outputs

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

    FlowId double
    Unique ID for post cls flow.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status double
    Status 0- Off 1- On.
    FlowId float64
    Unique ID for post cls flow.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status float64
    Status 0- Off 1- On.
    flowId Double
    Unique ID for post cls flow.
    id String
    The provider-assigned unique ID for this managed resource.
    status Double
    Status 0- Off 1- On.
    flowId number
    Unique ID for post cls flow.
    id string
    The provider-assigned unique ID for this managed resource.
    status number
    Status 0- Off 1- On.
    flow_id float
    Unique ID for post cls flow.
    id str
    The provider-assigned unique ID for this managed resource.
    status float
    Status 0- Off 1- On.
    flowId Number
    Unique ID for post cls flow.
    id String
    The provider-assigned unique ID for this managed resource.
    status Number
    Status 0- Off 1- On.

    Look up Existing WafLogPostCkafkaFlow Resource

    Get an existing WafLogPostCkafkaFlow 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?: WafLogPostCkafkaFlowState, opts?: CustomResourceOptions): WafLogPostCkafkaFlow
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            brokers: Optional[str] = None,
            ckafka_id: Optional[str] = None,
            ckafka_region: Optional[str] = None,
            compression: Optional[str] = None,
            flow_id: Optional[float] = None,
            kafka_version: Optional[str] = None,
            log_type: Optional[float] = None,
            sasl_enable: Optional[float] = None,
            sasl_password: Optional[str] = None,
            sasl_user: Optional[str] = None,
            status: Optional[float] = None,
            topic: Optional[str] = None,
            vip_type: Optional[float] = None,
            waf_log_post_ckafka_flow_id: Optional[str] = None,
            write_config: Optional[WafLogPostCkafkaFlowWriteConfigArgs] = None) -> WafLogPostCkafkaFlow
    func GetWafLogPostCkafkaFlow(ctx *Context, name string, id IDInput, state *WafLogPostCkafkaFlowState, opts ...ResourceOption) (*WafLogPostCkafkaFlow, error)
    public static WafLogPostCkafkaFlow Get(string name, Input<string> id, WafLogPostCkafkaFlowState? state, CustomResourceOptions? opts = null)
    public static WafLogPostCkafkaFlow get(String name, Output<String> id, WafLogPostCkafkaFlowState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:WafLogPostCkafkaFlow    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Brokers string
    The supporting environment is IP:PORT, The external network environment is domain:PORT.
    CkafkaId string
    CKafka ID.
    CkafkaRegion string
    The region where CKafka is located for delivery.
    Compression string
    Default to none, supports snappy, gzip, and lz4 compression, recommended snappy.
    FlowId double
    Unique ID for post cls flow.
    KafkaVersion string
    Version number of Kafka cluster.
    LogType double
    1- Access log, 2- Attack log, the default is access log.
    SaslEnable double
    Whether to enable SASL verification, default not enabled, 0-off, 1-on.
    SaslPassword string
    SASL password.
    SaslUser string
    SASL username.
    Status double
    Status 0- Off 1- On.
    Topic string
    Theme name, default not to pass or pass empty string, default value is waf_post_access_log.
    VipType double
    1. External network TGW, 2. Supporting environment, default is supporting environment.
    WafLogPostCkafkaFlowId string
    ID of the resource.
    WriteConfig WafLogPostCkafkaFlowWriteConfig
    Enable access to certain fields of the log and check if they have been delivered.
    Brokers string
    The supporting environment is IP:PORT, The external network environment is domain:PORT.
    CkafkaId string
    CKafka ID.
    CkafkaRegion string
    The region where CKafka is located for delivery.
    Compression string
    Default to none, supports snappy, gzip, and lz4 compression, recommended snappy.
    FlowId float64
    Unique ID for post cls flow.
    KafkaVersion string
    Version number of Kafka cluster.
    LogType float64
    1- Access log, 2- Attack log, the default is access log.
    SaslEnable float64
    Whether to enable SASL verification, default not enabled, 0-off, 1-on.
    SaslPassword string
    SASL password.
    SaslUser string
    SASL username.
    Status float64
    Status 0- Off 1- On.
    Topic string
    Theme name, default not to pass or pass empty string, default value is waf_post_access_log.
    VipType float64
    1. External network TGW, 2. Supporting environment, default is supporting environment.
    WafLogPostCkafkaFlowId string
    ID of the resource.
    WriteConfig WafLogPostCkafkaFlowWriteConfigArgs
    Enable access to certain fields of the log and check if they have been delivered.
    brokers String
    The supporting environment is IP:PORT, The external network environment is domain:PORT.
    ckafkaId String
    CKafka ID.
    ckafkaRegion String
    The region where CKafka is located for delivery.
    compression String
    Default to none, supports snappy, gzip, and lz4 compression, recommended snappy.
    flowId Double
    Unique ID for post cls flow.
    kafkaVersion String
    Version number of Kafka cluster.
    logType Double
    1- Access log, 2- Attack log, the default is access log.
    saslEnable Double
    Whether to enable SASL verification, default not enabled, 0-off, 1-on.
    saslPassword String
    SASL password.
    saslUser String
    SASL username.
    status Double
    Status 0- Off 1- On.
    topic String
    Theme name, default not to pass or pass empty string, default value is waf_post_access_log.
    vipType Double
    1. External network TGW, 2. Supporting environment, default is supporting environment.
    wafLogPostCkafkaFlowId String
    ID of the resource.
    writeConfig WafLogPostCkafkaFlowWriteConfig
    Enable access to certain fields of the log and check if they have been delivered.
    brokers string
    The supporting environment is IP:PORT, The external network environment is domain:PORT.
    ckafkaId string
    CKafka ID.
    ckafkaRegion string
    The region where CKafka is located for delivery.
    compression string
    Default to none, supports snappy, gzip, and lz4 compression, recommended snappy.
    flowId number
    Unique ID for post cls flow.
    kafkaVersion string
    Version number of Kafka cluster.
    logType number
    1- Access log, 2- Attack log, the default is access log.
    saslEnable number
    Whether to enable SASL verification, default not enabled, 0-off, 1-on.
    saslPassword string
    SASL password.
    saslUser string
    SASL username.
    status number
    Status 0- Off 1- On.
    topic string
    Theme name, default not to pass or pass empty string, default value is waf_post_access_log.
    vipType number
    1. External network TGW, 2. Supporting environment, default is supporting environment.
    wafLogPostCkafkaFlowId string
    ID of the resource.
    writeConfig WafLogPostCkafkaFlowWriteConfig
    Enable access to certain fields of the log and check if they have been delivered.
    brokers str
    The supporting environment is IP:PORT, The external network environment is domain:PORT.
    ckafka_id str
    CKafka ID.
    ckafka_region str
    The region where CKafka is located for delivery.
    compression str
    Default to none, supports snappy, gzip, and lz4 compression, recommended snappy.
    flow_id float
    Unique ID for post cls flow.
    kafka_version str
    Version number of Kafka cluster.
    log_type float
    1- Access log, 2- Attack log, the default is access log.
    sasl_enable float
    Whether to enable SASL verification, default not enabled, 0-off, 1-on.
    sasl_password str
    SASL password.
    sasl_user str
    SASL username.
    status float
    Status 0- Off 1- On.
    topic str
    Theme name, default not to pass or pass empty string, default value is waf_post_access_log.
    vip_type float
    1. External network TGW, 2. Supporting environment, default is supporting environment.
    waf_log_post_ckafka_flow_id str
    ID of the resource.
    write_config WafLogPostCkafkaFlowWriteConfigArgs
    Enable access to certain fields of the log and check if they have been delivered.
    brokers String
    The supporting environment is IP:PORT, The external network environment is domain:PORT.
    ckafkaId String
    CKafka ID.
    ckafkaRegion String
    The region where CKafka is located for delivery.
    compression String
    Default to none, supports snappy, gzip, and lz4 compression, recommended snappy.
    flowId Number
    Unique ID for post cls flow.
    kafkaVersion String
    Version number of Kafka cluster.
    logType Number
    1- Access log, 2- Attack log, the default is access log.
    saslEnable Number
    Whether to enable SASL verification, default not enabled, 0-off, 1-on.
    saslPassword String
    SASL password.
    saslUser String
    SASL username.
    status Number
    Status 0- Off 1- On.
    topic String
    Theme name, default not to pass or pass empty string, default value is waf_post_access_log.
    vipType Number
    1. External network TGW, 2. Supporting environment, default is supporting environment.
    wafLogPostCkafkaFlowId String
    ID of the resource.
    writeConfig Property Map
    Enable access to certain fields of the log and check if they have been delivered.

    Supporting Types

    WafLogPostCkafkaFlowWriteConfig, WafLogPostCkafkaFlowWriteConfigArgs

    EnableBody double
    1: Enable 0: Do not enable.
    EnableBot double
    1: Enable 0: Do not enable.
    EnableHeaders double
    1: Enable 0: Do not enable.
    EnableBody float64
    1: Enable 0: Do not enable.
    EnableBot float64
    1: Enable 0: Do not enable.
    EnableHeaders float64
    1: Enable 0: Do not enable.
    enableBody Double
    1: Enable 0: Do not enable.
    enableBot Double
    1: Enable 0: Do not enable.
    enableHeaders Double
    1: Enable 0: Do not enable.
    enableBody number
    1: Enable 0: Do not enable.
    enableBot number
    1: Enable 0: Do not enable.
    enableHeaders number
    1: Enable 0: Do not enable.
    enable_body float
    1: Enable 0: Do not enable.
    enable_bot float
    1: Enable 0: Do not enable.
    enable_headers float
    1: Enable 0: Do not enable.
    enableBody Number
    1: Enable 0: Do not enable.
    enableBot Number
    1: Enable 0: Do not enable.
    enableHeaders Number
    1: Enable 0: Do not enable.

    Import

    WAF log post ckafka flow can be imported using the id, e.g.

    If log_type is 1

    $ pulumi import tencentcloud:index/wafLogPostCkafkaFlow:WafLogPostCkafkaFlow example 100536#1
    

    If log_type is 2

    $ pulumi import tencentcloud:index/wafLogPostCkafkaFlow:WafLogPostCkafkaFlow example 100541#2
    

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

    Package Details

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