tencentcloud.WafLogPostClsFlow
Explore with Pulumi AI
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:
- Cls
Region string - The region where the CLS is delivered. The default value is ap-shanghai.
- Log
Topic stringName - The name of the log subject where the submitted CLS is located. The default value is waf_post_logtopic.
- Log
Type double - 1- Access log, 2- Attack log, the default is access log.
- Logset
Name string - The name of the log set where the delivered CLS is located. The default value is waf_post_logset.
- Waf
Log stringPost Cls Flow Id - ID of the resource.
- Cls
Region string - The region where the CLS is delivered. The default value is ap-shanghai.
- Log
Topic stringName - The name of the log subject where the submitted CLS is located. The default value is waf_post_logtopic.
- Log
Type float64 - 1- Access log, 2- Attack log, the default is access log.
- Logset
Name string - The name of the log set where the delivered CLS is located. The default value is waf_post_logset.
- Waf
Log stringPost Cls Flow Id - ID of the resource.
- cls
Region String - The region where the CLS is delivered. The default value is ap-shanghai.
- log
Topic StringName - The name of the log subject where the submitted CLS is located. The default value is waf_post_logtopic.
- log
Type Double - 1- Access log, 2- Attack log, the default is access log.
- logset
Name String - The name of the log set where the delivered CLS is located. The default value is waf_post_logset.
- waf
Log StringPost Cls Flow Id - ID of the resource.
- cls
Region string - The region where the CLS is delivered. The default value is ap-shanghai.
- log
Topic stringName - The name of the log subject where the submitted CLS is located. The default value is waf_post_logtopic.
- log
Type number - 1- Access log, 2- Attack log, the default is access log.
- logset
Name string - The name of the log set where the delivered CLS is located. The default value is waf_post_logset.
- waf
Log stringPost Cls Flow Id - ID of the resource.
- cls_
region str - The region where the CLS is delivered. The default value is ap-shanghai.
- log_
topic_ strname - 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_ strpost_ cls_ flow_ id - ID of the resource.
- cls
Region String - The region where the CLS is delivered. The default value is ap-shanghai.
- log
Topic StringName - The name of the log subject where the submitted CLS is located. The default value is waf_post_logtopic.
- log
Type Number - 1- Access log, 2- Attack log, the default is access log.
- logset
Name String - The name of the log set where the delivered CLS is located. The default value is waf_post_logset.
- waf
Log StringPost Cls Flow Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the WafLogPostClsFlow resource produces the following output properties:
- Flow
Id double - Unique ID for post cls flow.
- Id string
- The provider-assigned unique ID for this managed resource.
- Log
Topic stringId - CLS log topic ID.
- Logset
Id string - CLS logset ID.
- Status double
- Status 0- Off 1- On.
- Flow
Id float64 - Unique ID for post cls flow.
- Id string
- The provider-assigned unique ID for this managed resource.
- Log
Topic stringId - CLS log topic ID.
- Logset
Id string - CLS logset ID.
- Status float64
- Status 0- Off 1- On.
- flow
Id Double - Unique ID for post cls flow.
- id String
- The provider-assigned unique ID for this managed resource.
- log
Topic StringId - CLS log topic ID.
- logset
Id String - CLS logset ID.
- status Double
- Status 0- Off 1- On.
- flow
Id number - Unique ID for post cls flow.
- id string
- The provider-assigned unique ID for this managed resource.
- log
Topic stringId - CLS log topic ID.
- logset
Id 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_ strid - CLS log topic ID.
- logset_
id str - CLS logset ID.
- status float
- Status 0- Off 1- On.
- flow
Id Number - Unique ID for post cls flow.
- id String
- The provider-assigned unique ID for this managed resource.
- log
Topic StringId - CLS log topic ID.
- logset
Id 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.
- Cls
Region string - The region where the CLS is delivered. The default value is ap-shanghai.
- Flow
Id double - Unique ID for post cls flow.
- Log
Topic stringId - CLS log topic ID.
- Log
Topic stringName - The name of the log subject where the submitted CLS is located. The default value is waf_post_logtopic.
- Log
Type double - 1- Access log, 2- Attack log, the default is access log.
- Logset
Id string - CLS logset ID.
- Logset
Name 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.
- Waf
Log stringPost Cls Flow Id - ID of the resource.
- Cls
Region string - The region where the CLS is delivered. The default value is ap-shanghai.
- Flow
Id float64 - Unique ID for post cls flow.
- Log
Topic stringId - CLS log topic ID.
- Log
Topic stringName - The name of the log subject where the submitted CLS is located. The default value is waf_post_logtopic.
- Log
Type float64 - 1- Access log, 2- Attack log, the default is access log.
- Logset
Id string - CLS logset ID.
- Logset
Name 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.
- Waf
Log stringPost Cls Flow Id - ID of the resource.
- cls
Region String - The region where the CLS is delivered. The default value is ap-shanghai.
- flow
Id Double - Unique ID for post cls flow.
- log
Topic StringId - CLS log topic ID.
- log
Topic StringName - The name of the log subject where the submitted CLS is located. The default value is waf_post_logtopic.
- log
Type Double - 1- Access log, 2- Attack log, the default is access log.
- logset
Id String - CLS logset ID.
- logset
Name 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.
- waf
Log StringPost Cls Flow Id - ID of the resource.
- cls
Region string - The region where the CLS is delivered. The default value is ap-shanghai.
- flow
Id number - Unique ID for post cls flow.
- log
Topic stringId - CLS log topic ID.
- log
Topic stringName - The name of the log subject where the submitted CLS is located. The default value is waf_post_logtopic.
- log
Type number - 1- Access log, 2- Attack log, the default is access log.
- logset
Id string - CLS logset ID.
- logset
Name 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.
- waf
Log stringPost Cls Flow Id - 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_ strid - CLS log topic ID.
- log_
topic_ strname - 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_ strpost_ cls_ flow_ id - ID of the resource.
- cls
Region String - The region where the CLS is delivered. The default value is ap-shanghai.
- flow
Id Number - Unique ID for post cls flow.
- log
Topic StringId - CLS log topic ID.
- log
Topic StringName - The name of the log subject where the submitted CLS is located. The default value is waf_post_logtopic.
- log
Type Number - 1- Access log, 2- Attack log, the default is access log.
- logset
Id String - CLS logset ID.
- logset
Name 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.
- waf
Log StringPost Cls Flow Id - 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.