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

tencentcloud.WafLogPostClsFlow

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 cls flow

    Example Usage

    If log_type is 1

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.WafLogPostClsFlow("example", {
        clsRegion: "ap-guangzhou",
        logTopicName: "waf_post_logtopic",
        logType: 1,
        logsetName: "waf_post_logset",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.WafLogPostClsFlow("example",
        cls_region="ap-guangzhou",
        log_topic_name="waf_post_logtopic",
        log_type=1,
        logset_name="waf_post_logset")
    
    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.NewWafLogPostClsFlow(ctx, "example", &tencentcloud.WafLogPostClsFlowArgs{
    			ClsRegion:    pulumi.String("ap-guangzhou"),
    			LogTopicName: pulumi.String("waf_post_logtopic"),
    			LogType:      pulumi.Float64(1),
    			LogsetName:   pulumi.String("waf_post_logset"),
    		})
    		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.WafLogPostClsFlow("example", new()
        {
            ClsRegion = "ap-guangzhou",
            LogTopicName = "waf_post_logtopic",
            LogType = 1,
            LogsetName = "waf_post_logset",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.WafLogPostClsFlow;
    import com.pulumi.tencentcloud.WafLogPostClsFlowArgs;
    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 WafLogPostClsFlow("example", WafLogPostClsFlowArgs.builder()
                .clsRegion("ap-guangzhou")
                .logTopicName("waf_post_logtopic")
                .logType(1)
                .logsetName("waf_post_logset")
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:WafLogPostClsFlow
        properties:
          clsRegion: ap-guangzhou
          logTopicName: waf_post_logtopic
          logType: 1
          logsetName: waf_post_logset
    

    If log_type is 2

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.WafLogPostClsFlow("example", {
        clsRegion: "ap-guangzhou",
        logTopicName: "waf_post_logtopic",
        logType: 2,
        logsetName: "waf_post_logset",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.WafLogPostClsFlow("example",
        cls_region="ap-guangzhou",
        log_topic_name="waf_post_logtopic",
        log_type=2,
        logset_name="waf_post_logset")
    
    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.NewWafLogPostClsFlow(ctx, "example", &tencentcloud.WafLogPostClsFlowArgs{
    			ClsRegion:    pulumi.String("ap-guangzhou"),
    			LogTopicName: pulumi.String("waf_post_logtopic"),
    			LogType:      pulumi.Float64(2),
    			LogsetName:   pulumi.String("waf_post_logset"),
    		})
    		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.WafLogPostClsFlow("example", new()
        {
            ClsRegion = "ap-guangzhou",
            LogTopicName = "waf_post_logtopic",
            LogType = 2,
            LogsetName = "waf_post_logset",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.WafLogPostClsFlow;
    import com.pulumi.tencentcloud.WafLogPostClsFlowArgs;
    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 WafLogPostClsFlow("example", WafLogPostClsFlowArgs.builder()
                .clsRegion("ap-guangzhou")
                .logTopicName("waf_post_logtopic")
                .logType(2)
                .logsetName("waf_post_logset")
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:WafLogPostClsFlow
        properties:
          clsRegion: ap-guangzhou
          logTopicName: waf_post_logtopic
          logType: 2
          logsetName: waf_post_logset
    

    Create WafLogPostClsFlow Resource

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

    Constructor syntax

    new WafLogPostClsFlow(name: string, args?: WafLogPostClsFlowArgs, opts?: CustomResourceOptions);
    @overload
    def WafLogPostClsFlow(resource_name: str,
                          args: Optional[WafLogPostClsFlowArgs] = None,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def WafLogPostClsFlow(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          cls_region: Optional[str] = None,
                          log_topic_name: Optional[str] = None,
                          log_type: Optional[float] = None,
                          logset_name: Optional[str] = None,
                          waf_log_post_cls_flow_id: Optional[str] = None)
    func NewWafLogPostClsFlow(ctx *Context, name string, args *WafLogPostClsFlowArgs, opts ...ResourceOption) (*WafLogPostClsFlow, error)
    public WafLogPostClsFlow(string name, WafLogPostClsFlowArgs? args = null, CustomResourceOptions? opts = null)
    public WafLogPostClsFlow(String name, WafLogPostClsFlowArgs args)
    public WafLogPostClsFlow(String name, WafLogPostClsFlowArgs args, CustomResourceOptions options)
    
    type: tencentcloud:WafLogPostClsFlow
    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 WafLogPostClsFlowArgs
    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 WafLogPostClsFlowArgs
    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 WafLogPostClsFlowArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args WafLogPostClsFlowArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args WafLogPostClsFlowArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    ClsRegion string
    The region where the CLS is delivered. The default value is ap-shanghai.
    LogTopicName string
    The name of the log subject where the submitted CLS is located. The default value is waf_post_logtopic.
    LogType double
    1- Access log, 2- Attack log, the default is access log.
    LogsetName string
    The name of the log set where the delivered CLS is located. The default value is waf_post_logset.
    WafLogPostClsFlowId string
    ID of the resource.
    ClsRegion string
    The region where the CLS is delivered. The default value is ap-shanghai.
    LogTopicName string
    The name of the log subject where the submitted CLS is located. The default value is waf_post_logtopic.
    LogType float64
    1- Access log, 2- Attack log, the default is access log.
    LogsetName string
    The name of the log set where the delivered CLS is located. The default value is waf_post_logset.
    WafLogPostClsFlowId string
    ID of the resource.
    clsRegion String
    The region where the CLS is delivered. The default value is ap-shanghai.
    logTopicName String
    The name of the log subject where the submitted CLS is located. The default value is waf_post_logtopic.
    logType Double
    1- Access log, 2- Attack log, the default is access log.
    logsetName String
    The name of the log set where the delivered CLS is located. The default value is waf_post_logset.
    wafLogPostClsFlowId String
    ID of the resource.
    clsRegion string
    The region where the CLS is delivered. The default value is ap-shanghai.
    logTopicName string
    The name of the log subject where the submitted CLS is located. The default value is waf_post_logtopic.
    logType number
    1- Access log, 2- Attack log, the default is access log.
    logsetName string
    The name of the log set where the delivered CLS is located. The default value is waf_post_logset.
    wafLogPostClsFlowId string
    ID of the resource.
    cls_region str
    The region where the CLS is delivered. The default value is ap-shanghai.
    log_topic_name str
    The name of the log subject where the submitted CLS is located. The default value is waf_post_logtopic.
    log_type float
    1- Access log, 2- Attack log, the default is access log.
    logset_name str
    The name of the log set where the delivered CLS is located. The default value is waf_post_logset.
    waf_log_post_cls_flow_id str
    ID of the resource.
    clsRegion String
    The region where the CLS is delivered. The default value is ap-shanghai.
    logTopicName String
    The name of the log subject where the submitted CLS is located. The default value is waf_post_logtopic.
    logType Number
    1- Access log, 2- Attack log, the default is access log.
    logsetName String
    The name of the log set where the delivered CLS is located. The default value is waf_post_logset.
    wafLogPostClsFlowId String
    ID of the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the WafLogPostClsFlow 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.
    LogTopicId string
    CLS log topic ID.
    LogsetId string
    CLS logset ID.
    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.
    LogTopicId string
    CLS log topic ID.
    LogsetId string
    CLS logset ID.
    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.
    logTopicId String
    CLS log topic ID.
    logsetId String
    CLS logset ID.
    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.
    logTopicId string
    CLS log topic ID.
    logsetId string
    CLS logset ID.
    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.
    log_topic_id str
    CLS log topic ID.
    logset_id str
    CLS logset ID.
    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.
    logTopicId String
    CLS log topic ID.
    logsetId String
    CLS logset ID.
    status Number
    Status 0- Off 1- On.

    Look up Existing WafLogPostClsFlow Resource

    Get an existing WafLogPostClsFlow 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?: WafLogPostClsFlowState, opts?: CustomResourceOptions): WafLogPostClsFlow
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cls_region: Optional[str] = None,
            flow_id: Optional[float] = None,
            log_topic_id: Optional[str] = None,
            log_topic_name: Optional[str] = None,
            log_type: Optional[float] = None,
            logset_id: Optional[str] = None,
            logset_name: Optional[str] = None,
            status: Optional[float] = None,
            waf_log_post_cls_flow_id: Optional[str] = None) -> WafLogPostClsFlow
    func GetWafLogPostClsFlow(ctx *Context, name string, id IDInput, state *WafLogPostClsFlowState, opts ...ResourceOption) (*WafLogPostClsFlow, error)
    public static WafLogPostClsFlow Get(string name, Input<string> id, WafLogPostClsFlowState? state, CustomResourceOptions? opts = null)
    public static WafLogPostClsFlow get(String name, Output<String> id, WafLogPostClsFlowState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:WafLogPostClsFlow    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:
    ClsRegion string
    The region where the CLS is delivered. The default value is ap-shanghai.
    FlowId double
    Unique ID for post cls flow.
    LogTopicId string
    CLS log topic ID.
    LogTopicName string
    The name of the log subject where the submitted CLS is located. The default value is waf_post_logtopic.
    LogType double
    1- Access log, 2- Attack log, the default is access log.
    LogsetId string
    CLS logset ID.
    LogsetName string
    The name of the log set where the delivered CLS is located. The default value is waf_post_logset.
    Status double
    Status 0- Off 1- On.
    WafLogPostClsFlowId string
    ID of the resource.
    ClsRegion string
    The region where the CLS is delivered. The default value is ap-shanghai.
    FlowId float64
    Unique ID for post cls flow.
    LogTopicId string
    CLS log topic ID.
    LogTopicName string
    The name of the log subject where the submitted CLS is located. The default value is waf_post_logtopic.
    LogType float64
    1- Access log, 2- Attack log, the default is access log.
    LogsetId string
    CLS logset ID.
    LogsetName string
    The name of the log set where the delivered CLS is located. The default value is waf_post_logset.
    Status float64
    Status 0- Off 1- On.
    WafLogPostClsFlowId string
    ID of the resource.
    clsRegion String
    The region where the CLS is delivered. The default value is ap-shanghai.
    flowId Double
    Unique ID for post cls flow.
    logTopicId String
    CLS log topic ID.
    logTopicName String
    The name of the log subject where the submitted CLS is located. The default value is waf_post_logtopic.
    logType Double
    1- Access log, 2- Attack log, the default is access log.
    logsetId String
    CLS logset ID.
    logsetName String
    The name of the log set where the delivered CLS is located. The default value is waf_post_logset.
    status Double
    Status 0- Off 1- On.
    wafLogPostClsFlowId String
    ID of the resource.
    clsRegion string
    The region where the CLS is delivered. The default value is ap-shanghai.
    flowId number
    Unique ID for post cls flow.
    logTopicId string
    CLS log topic ID.
    logTopicName string
    The name of the log subject where the submitted CLS is located. The default value is waf_post_logtopic.
    logType number
    1- Access log, 2- Attack log, the default is access log.
    logsetId string
    CLS logset ID.
    logsetName string
    The name of the log set where the delivered CLS is located. The default value is waf_post_logset.
    status number
    Status 0- Off 1- On.
    wafLogPostClsFlowId string
    ID of the resource.
    cls_region str
    The region where the CLS is delivered. The default value is ap-shanghai.
    flow_id float
    Unique ID for post cls flow.
    log_topic_id str
    CLS log topic ID.
    log_topic_name str
    The name of the log subject where the submitted CLS is located. The default value is waf_post_logtopic.
    log_type float
    1- Access log, 2- Attack log, the default is access log.
    logset_id str
    CLS logset ID.
    logset_name str
    The name of the log set where the delivered CLS is located. The default value is waf_post_logset.
    status float
    Status 0- Off 1- On.
    waf_log_post_cls_flow_id str
    ID of the resource.
    clsRegion String
    The region where the CLS is delivered. The default value is ap-shanghai.
    flowId Number
    Unique ID for post cls flow.
    logTopicId String
    CLS log topic ID.
    logTopicName String
    The name of the log subject where the submitted CLS is located. The default value is waf_post_logtopic.
    logType Number
    1- Access log, 2- Attack log, the default is access log.
    logsetId String
    CLS logset ID.
    logsetName String
    The name of the log set where the delivered CLS is located. The default value is waf_post_logset.
    status Number
    Status 0- Off 1- On.
    wafLogPostClsFlowId String
    ID of the resource.

    Import

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

    If log_type is 1

    $ pulumi import tencentcloud:index/wafLogPostClsFlow:WafLogPostClsFlow example 111462#1
    

    If log_type is 2

    $ pulumi import tencentcloud:index/wafLogPostClsFlow:WafLogPostClsFlow example 111467#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