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

tencentcloud.CfwVpcPolicy

Explore with Pulumi AI

Provides a resource to create a cfw vpc_policy

Example Usage

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

const example = new tencentcloud.CfwVpcPolicy("example", {
    description: "description.",
    destContent: "192.168.0.2",
    destType: "net",
    enable: "true",
    fwGroupId: "ALL",
    port: "-1/-1",
    protocol: "ANY",
    ruleAction: "log",
    sourceContent: "0.0.0.0/0",
    sourceType: "net",
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

example = tencentcloud.CfwVpcPolicy("example",
    description="description.",
    dest_content="192.168.0.2",
    dest_type="net",
    enable="true",
    fw_group_id="ALL",
    port="-1/-1",
    protocol="ANY",
    rule_action="log",
    source_content="0.0.0.0/0",
    source_type="net")
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 {
		_, err := tencentcloud.NewCfwVpcPolicy(ctx, "example", &tencentcloud.CfwVpcPolicyArgs{
			Description:   pulumi.String("description."),
			DestContent:   pulumi.String("192.168.0.2"),
			DestType:      pulumi.String("net"),
			Enable:        pulumi.String("true"),
			FwGroupId:     pulumi.String("ALL"),
			Port:          pulumi.String("-1/-1"),
			Protocol:      pulumi.String("ANY"),
			RuleAction:    pulumi.String("log"),
			SourceContent: pulumi.String("0.0.0.0/0"),
			SourceType:    pulumi.String("net"),
		})
		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 example = new Tencentcloud.CfwVpcPolicy("example", new()
    {
        Description = "description.",
        DestContent = "192.168.0.2",
        DestType = "net",
        Enable = "true",
        FwGroupId = "ALL",
        Port = "-1/-1",
        Protocol = "ANY",
        RuleAction = "log",
        SourceContent = "0.0.0.0/0",
        SourceType = "net",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CfwVpcPolicy;
import com.pulumi.tencentcloud.CfwVpcPolicyArgs;
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 CfwVpcPolicy("example", CfwVpcPolicyArgs.builder()
            .description("description.")
            .destContent("192.168.0.2")
            .destType("net")
            .enable("true")
            .fwGroupId("ALL")
            .port("-1/-1")
            .protocol("ANY")
            .ruleAction("log")
            .sourceContent("0.0.0.0/0")
            .sourceType("net")
            .build());

    }
}
Copy
resources:
  example:
    type: tencentcloud:CfwVpcPolicy
    properties:
      description: description.
      destContent: 192.168.0.2
      destType: net
      enable: 'true'
      fwGroupId: ALL
      port: -1/-1
      protocol: ANY
      ruleAction: log
      sourceContent: 0.0.0.0/0
      sourceType: net
Copy

Create CfwVpcPolicy Resource

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

Constructor syntax

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

@overload
def CfwVpcPolicy(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 description: Optional[str] = None,
                 dest_content: Optional[str] = None,
                 dest_type: Optional[str] = None,
                 port: Optional[str] = None,
                 protocol: Optional[str] = None,
                 rule_action: Optional[str] = None,
                 source_content: Optional[str] = None,
                 source_type: Optional[str] = None,
                 cfw_vpc_policy_id: Optional[str] = None,
                 enable: Optional[str] = None,
                 fw_group_id: Optional[str] = None)
func NewCfwVpcPolicy(ctx *Context, name string, args CfwVpcPolicyArgs, opts ...ResourceOption) (*CfwVpcPolicy, error)
public CfwVpcPolicy(string name, CfwVpcPolicyArgs args, CustomResourceOptions? opts = null)
public CfwVpcPolicy(String name, CfwVpcPolicyArgs args)
public CfwVpcPolicy(String name, CfwVpcPolicyArgs args, CustomResourceOptions options)
type: tencentcloud:CfwVpcPolicy
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. CfwVpcPolicyArgs
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. CfwVpcPolicyArgs
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. CfwVpcPolicyArgs
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. CfwVpcPolicyArgs
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. CfwVpcPolicyArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

Description This property is required. string
Describe.
DestContent This property is required. string
Access purpose example: net:IP/CIDR(192.168.0.2) domain:domain rule, for example*.qq.com.
DestType This property is required. string
Access purpose type, the type can be: net, template.
Port This property is required. string
The port for the access control policy. Value: -1/-1: All ports; 80: port 80.
Protocol This property is required. string
Protocol, optional value:TCP, UDP, ICMP, ANY, HTTP, HTTPS, HTTP/HTTPS, SMTP, SMTPS, SMTP/SMTPS, FTP, DNS, TLS/SSL.
RuleAction This property is required. string
How traffic set in the access control policy passes through the cloud firewall. Value: accept:accept, drop:drop, log:log.
SourceContent This property is required. string
Access source examplnet:IP/CIDR(192.168.0.2).
SourceType This property is required. string
Access source type, the type can be: net, template.
CfwVpcPolicyId string
ID of the resource.
Enable string
Rule status, true means enabled, false means disabled. Default is true.
FwGroupId string
Firewall instance ID where the rule takes effect. Default is ALL.
Description This property is required. string
Describe.
DestContent This property is required. string
Access purpose example: net:IP/CIDR(192.168.0.2) domain:domain rule, for example*.qq.com.
DestType This property is required. string
Access purpose type, the type can be: net, template.
Port This property is required. string
The port for the access control policy. Value: -1/-1: All ports; 80: port 80.
Protocol This property is required. string
Protocol, optional value:TCP, UDP, ICMP, ANY, HTTP, HTTPS, HTTP/HTTPS, SMTP, SMTPS, SMTP/SMTPS, FTP, DNS, TLS/SSL.
RuleAction This property is required. string
How traffic set in the access control policy passes through the cloud firewall. Value: accept:accept, drop:drop, log:log.
SourceContent This property is required. string
Access source examplnet:IP/CIDR(192.168.0.2).
SourceType This property is required. string
Access source type, the type can be: net, template.
CfwVpcPolicyId string
ID of the resource.
Enable string
Rule status, true means enabled, false means disabled. Default is true.
FwGroupId string
Firewall instance ID where the rule takes effect. Default is ALL.
description This property is required. String
Describe.
destContent This property is required. String
Access purpose example: net:IP/CIDR(192.168.0.2) domain:domain rule, for example*.qq.com.
destType This property is required. String
Access purpose type, the type can be: net, template.
port This property is required. String
The port for the access control policy. Value: -1/-1: All ports; 80: port 80.
protocol This property is required. String
Protocol, optional value:TCP, UDP, ICMP, ANY, HTTP, HTTPS, HTTP/HTTPS, SMTP, SMTPS, SMTP/SMTPS, FTP, DNS, TLS/SSL.
ruleAction This property is required. String
How traffic set in the access control policy passes through the cloud firewall. Value: accept:accept, drop:drop, log:log.
sourceContent This property is required. String
Access source examplnet:IP/CIDR(192.168.0.2).
sourceType This property is required. String
Access source type, the type can be: net, template.
cfwVpcPolicyId String
ID of the resource.
enable String
Rule status, true means enabled, false means disabled. Default is true.
fwGroupId String
Firewall instance ID where the rule takes effect. Default is ALL.
description This property is required. string
Describe.
destContent This property is required. string
Access purpose example: net:IP/CIDR(192.168.0.2) domain:domain rule, for example*.qq.com.
destType This property is required. string
Access purpose type, the type can be: net, template.
port This property is required. string
The port for the access control policy. Value: -1/-1: All ports; 80: port 80.
protocol This property is required. string
Protocol, optional value:TCP, UDP, ICMP, ANY, HTTP, HTTPS, HTTP/HTTPS, SMTP, SMTPS, SMTP/SMTPS, FTP, DNS, TLS/SSL.
ruleAction This property is required. string
How traffic set in the access control policy passes through the cloud firewall. Value: accept:accept, drop:drop, log:log.
sourceContent This property is required. string
Access source examplnet:IP/CIDR(192.168.0.2).
sourceType This property is required. string
Access source type, the type can be: net, template.
cfwVpcPolicyId string
ID of the resource.
enable string
Rule status, true means enabled, false means disabled. Default is true.
fwGroupId string
Firewall instance ID where the rule takes effect. Default is ALL.
description This property is required. str
Describe.
dest_content This property is required. str
Access purpose example: net:IP/CIDR(192.168.0.2) domain:domain rule, for example*.qq.com.
dest_type This property is required. str
Access purpose type, the type can be: net, template.
port This property is required. str
The port for the access control policy. Value: -1/-1: All ports; 80: port 80.
protocol This property is required. str
Protocol, optional value:TCP, UDP, ICMP, ANY, HTTP, HTTPS, HTTP/HTTPS, SMTP, SMTPS, SMTP/SMTPS, FTP, DNS, TLS/SSL.
rule_action This property is required. str
How traffic set in the access control policy passes through the cloud firewall. Value: accept:accept, drop:drop, log:log.
source_content This property is required. str
Access source examplnet:IP/CIDR(192.168.0.2).
source_type This property is required. str
Access source type, the type can be: net, template.
cfw_vpc_policy_id str
ID of the resource.
enable str
Rule status, true means enabled, false means disabled. Default is true.
fw_group_id str
Firewall instance ID where the rule takes effect. Default is ALL.
description This property is required. String
Describe.
destContent This property is required. String
Access purpose example: net:IP/CIDR(192.168.0.2) domain:domain rule, for example*.qq.com.
destType This property is required. String
Access purpose type, the type can be: net, template.
port This property is required. String
The port for the access control policy. Value: -1/-1: All ports; 80: port 80.
protocol This property is required. String
Protocol, optional value:TCP, UDP, ICMP, ANY, HTTP, HTTPS, HTTP/HTTPS, SMTP, SMTPS, SMTP/SMTPS, FTP, DNS, TLS/SSL.
ruleAction This property is required. String
How traffic set in the access control policy passes through the cloud firewall. Value: accept:accept, drop:drop, log:log.
sourceContent This property is required. String
Access source examplnet:IP/CIDR(192.168.0.2).
sourceType This property is required. String
Access source type, the type can be: net, template.
cfwVpcPolicyId String
ID of the resource.
enable String
Rule status, true means enabled, false means disabled. Default is true.
fwGroupId String
Firewall instance ID where the rule takes effect. Default is ALL.

Outputs

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

BetaLists List<CfwVpcPolicyBetaList>
Beta mission details. Note: This field may return null, indicating that no valid value can be obtained.
FwGroupName string
Firewall name.
Id string
The provider-assigned unique ID for this managed resource.
InternalUuid double
Uuid used internally, this field is generally not used.
ParamTemplateId string
Parameter template id. Note: This field may return null, indicating that no valid value can be obtained.
ParamTemplateName string
Parameter template Name. Note: This field may return null, indicating that no valid value can be obtained.
Uuid double
The unique id corresponding to the rule.
BetaLists []CfwVpcPolicyBetaList
Beta mission details. Note: This field may return null, indicating that no valid value can be obtained.
FwGroupName string
Firewall name.
Id string
The provider-assigned unique ID for this managed resource.
InternalUuid float64
Uuid used internally, this field is generally not used.
ParamTemplateId string
Parameter template id. Note: This field may return null, indicating that no valid value can be obtained.
ParamTemplateName string
Parameter template Name. Note: This field may return null, indicating that no valid value can be obtained.
Uuid float64
The unique id corresponding to the rule.
betaLists List<CfwVpcPolicyBetaList>
Beta mission details. Note: This field may return null, indicating that no valid value can be obtained.
fwGroupName String
Firewall name.
id String
The provider-assigned unique ID for this managed resource.
internalUuid Double
Uuid used internally, this field is generally not used.
paramTemplateId String
Parameter template id. Note: This field may return null, indicating that no valid value can be obtained.
paramTemplateName String
Parameter template Name. Note: This field may return null, indicating that no valid value can be obtained.
uuid Double
The unique id corresponding to the rule.
betaLists CfwVpcPolicyBetaList[]
Beta mission details. Note: This field may return null, indicating that no valid value can be obtained.
fwGroupName string
Firewall name.
id string
The provider-assigned unique ID for this managed resource.
internalUuid number
Uuid used internally, this field is generally not used.
paramTemplateId string
Parameter template id. Note: This field may return null, indicating that no valid value can be obtained.
paramTemplateName string
Parameter template Name. Note: This field may return null, indicating that no valid value can be obtained.
uuid number
The unique id corresponding to the rule.
beta_lists Sequence[CfwVpcPolicyBetaList]
Beta mission details. Note: This field may return null, indicating that no valid value can be obtained.
fw_group_name str
Firewall name.
id str
The provider-assigned unique ID for this managed resource.
internal_uuid float
Uuid used internally, this field is generally not used.
param_template_id str
Parameter template id. Note: This field may return null, indicating that no valid value can be obtained.
param_template_name str
Parameter template Name. Note: This field may return null, indicating that no valid value can be obtained.
uuid float
The unique id corresponding to the rule.
betaLists List<Property Map>
Beta mission details. Note: This field may return null, indicating that no valid value can be obtained.
fwGroupName String
Firewall name.
id String
The provider-assigned unique ID for this managed resource.
internalUuid Number
Uuid used internally, this field is generally not used.
paramTemplateId String
Parameter template id. Note: This field may return null, indicating that no valid value can be obtained.
paramTemplateName String
Parameter template Name. Note: This field may return null, indicating that no valid value can be obtained.
uuid Number
The unique id corresponding to the rule.

Look up Existing CfwVpcPolicy Resource

Get an existing CfwVpcPolicy 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?: CfwVpcPolicyState, opts?: CustomResourceOptions): CfwVpcPolicy
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        beta_lists: Optional[Sequence[CfwVpcPolicyBetaListArgs]] = None,
        cfw_vpc_policy_id: Optional[str] = None,
        description: Optional[str] = None,
        dest_content: Optional[str] = None,
        dest_type: Optional[str] = None,
        enable: Optional[str] = None,
        fw_group_id: Optional[str] = None,
        fw_group_name: Optional[str] = None,
        internal_uuid: Optional[float] = None,
        param_template_id: Optional[str] = None,
        param_template_name: Optional[str] = None,
        port: Optional[str] = None,
        protocol: Optional[str] = None,
        rule_action: Optional[str] = None,
        source_content: Optional[str] = None,
        source_type: Optional[str] = None,
        uuid: Optional[float] = None) -> CfwVpcPolicy
func GetCfwVpcPolicy(ctx *Context, name string, id IDInput, state *CfwVpcPolicyState, opts ...ResourceOption) (*CfwVpcPolicy, error)
public static CfwVpcPolicy Get(string name, Input<string> id, CfwVpcPolicyState? state, CustomResourceOptions? opts = null)
public static CfwVpcPolicy get(String name, Output<String> id, CfwVpcPolicyState state, CustomResourceOptions options)
resources:  _:    type: tencentcloud:CfwVpcPolicy    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:
BetaLists List<CfwVpcPolicyBetaList>
Beta mission details. Note: This field may return null, indicating that no valid value can be obtained.
CfwVpcPolicyId string
ID of the resource.
Description string
Describe.
DestContent string
Access purpose example: net:IP/CIDR(192.168.0.2) domain:domain rule, for example*.qq.com.
DestType string
Access purpose type, the type can be: net, template.
Enable string
Rule status, true means enabled, false means disabled. Default is true.
FwGroupId string
Firewall instance ID where the rule takes effect. Default is ALL.
FwGroupName string
Firewall name.
InternalUuid double
Uuid used internally, this field is generally not used.
ParamTemplateId string
Parameter template id. Note: This field may return null, indicating that no valid value can be obtained.
ParamTemplateName string
Parameter template Name. Note: This field may return null, indicating that no valid value can be obtained.
Port string
The port for the access control policy. Value: -1/-1: All ports; 80: port 80.
Protocol string
Protocol, optional value:TCP, UDP, ICMP, ANY, HTTP, HTTPS, HTTP/HTTPS, SMTP, SMTPS, SMTP/SMTPS, FTP, DNS, TLS/SSL.
RuleAction string
How traffic set in the access control policy passes through the cloud firewall. Value: accept:accept, drop:drop, log:log.
SourceContent string
Access source examplnet:IP/CIDR(192.168.0.2).
SourceType string
Access source type, the type can be: net, template.
Uuid double
The unique id corresponding to the rule.
BetaLists []CfwVpcPolicyBetaListArgs
Beta mission details. Note: This field may return null, indicating that no valid value can be obtained.
CfwVpcPolicyId string
ID of the resource.
Description string
Describe.
DestContent string
Access purpose example: net:IP/CIDR(192.168.0.2) domain:domain rule, for example*.qq.com.
DestType string
Access purpose type, the type can be: net, template.
Enable string
Rule status, true means enabled, false means disabled. Default is true.
FwGroupId string
Firewall instance ID where the rule takes effect. Default is ALL.
FwGroupName string
Firewall name.
InternalUuid float64
Uuid used internally, this field is generally not used.
ParamTemplateId string
Parameter template id. Note: This field may return null, indicating that no valid value can be obtained.
ParamTemplateName string
Parameter template Name. Note: This field may return null, indicating that no valid value can be obtained.
Port string
The port for the access control policy. Value: -1/-1: All ports; 80: port 80.
Protocol string
Protocol, optional value:TCP, UDP, ICMP, ANY, HTTP, HTTPS, HTTP/HTTPS, SMTP, SMTPS, SMTP/SMTPS, FTP, DNS, TLS/SSL.
RuleAction string
How traffic set in the access control policy passes through the cloud firewall. Value: accept:accept, drop:drop, log:log.
SourceContent string
Access source examplnet:IP/CIDR(192.168.0.2).
SourceType string
Access source type, the type can be: net, template.
Uuid float64
The unique id corresponding to the rule.
betaLists List<CfwVpcPolicyBetaList>
Beta mission details. Note: This field may return null, indicating that no valid value can be obtained.
cfwVpcPolicyId String
ID of the resource.
description String
Describe.
destContent String
Access purpose example: net:IP/CIDR(192.168.0.2) domain:domain rule, for example*.qq.com.
destType String
Access purpose type, the type can be: net, template.
enable String
Rule status, true means enabled, false means disabled. Default is true.
fwGroupId String
Firewall instance ID where the rule takes effect. Default is ALL.
fwGroupName String
Firewall name.
internalUuid Double
Uuid used internally, this field is generally not used.
paramTemplateId String
Parameter template id. Note: This field may return null, indicating that no valid value can be obtained.
paramTemplateName String
Parameter template Name. Note: This field may return null, indicating that no valid value can be obtained.
port String
The port for the access control policy. Value: -1/-1: All ports; 80: port 80.
protocol String
Protocol, optional value:TCP, UDP, ICMP, ANY, HTTP, HTTPS, HTTP/HTTPS, SMTP, SMTPS, SMTP/SMTPS, FTP, DNS, TLS/SSL.
ruleAction String
How traffic set in the access control policy passes through the cloud firewall. Value: accept:accept, drop:drop, log:log.
sourceContent String
Access source examplnet:IP/CIDR(192.168.0.2).
sourceType String
Access source type, the type can be: net, template.
uuid Double
The unique id corresponding to the rule.
betaLists CfwVpcPolicyBetaList[]
Beta mission details. Note: This field may return null, indicating that no valid value can be obtained.
cfwVpcPolicyId string
ID of the resource.
description string
Describe.
destContent string
Access purpose example: net:IP/CIDR(192.168.0.2) domain:domain rule, for example*.qq.com.
destType string
Access purpose type, the type can be: net, template.
enable string
Rule status, true means enabled, false means disabled. Default is true.
fwGroupId string
Firewall instance ID where the rule takes effect. Default is ALL.
fwGroupName string
Firewall name.
internalUuid number
Uuid used internally, this field is generally not used.
paramTemplateId string
Parameter template id. Note: This field may return null, indicating that no valid value can be obtained.
paramTemplateName string
Parameter template Name. Note: This field may return null, indicating that no valid value can be obtained.
port string
The port for the access control policy. Value: -1/-1: All ports; 80: port 80.
protocol string
Protocol, optional value:TCP, UDP, ICMP, ANY, HTTP, HTTPS, HTTP/HTTPS, SMTP, SMTPS, SMTP/SMTPS, FTP, DNS, TLS/SSL.
ruleAction string
How traffic set in the access control policy passes through the cloud firewall. Value: accept:accept, drop:drop, log:log.
sourceContent string
Access source examplnet:IP/CIDR(192.168.0.2).
sourceType string
Access source type, the type can be: net, template.
uuid number
The unique id corresponding to the rule.
beta_lists Sequence[CfwVpcPolicyBetaListArgs]
Beta mission details. Note: This field may return null, indicating that no valid value can be obtained.
cfw_vpc_policy_id str
ID of the resource.
description str
Describe.
dest_content str
Access purpose example: net:IP/CIDR(192.168.0.2) domain:domain rule, for example*.qq.com.
dest_type str
Access purpose type, the type can be: net, template.
enable str
Rule status, true means enabled, false means disabled. Default is true.
fw_group_id str
Firewall instance ID where the rule takes effect. Default is ALL.
fw_group_name str
Firewall name.
internal_uuid float
Uuid used internally, this field is generally not used.
param_template_id str
Parameter template id. Note: This field may return null, indicating that no valid value can be obtained.
param_template_name str
Parameter template Name. Note: This field may return null, indicating that no valid value can be obtained.
port str
The port for the access control policy. Value: -1/-1: All ports; 80: port 80.
protocol str
Protocol, optional value:TCP, UDP, ICMP, ANY, HTTP, HTTPS, HTTP/HTTPS, SMTP, SMTPS, SMTP/SMTPS, FTP, DNS, TLS/SSL.
rule_action str
How traffic set in the access control policy passes through the cloud firewall. Value: accept:accept, drop:drop, log:log.
source_content str
Access source examplnet:IP/CIDR(192.168.0.2).
source_type str
Access source type, the type can be: net, template.
uuid float
The unique id corresponding to the rule.
betaLists List<Property Map>
Beta mission details. Note: This field may return null, indicating that no valid value can be obtained.
cfwVpcPolicyId String
ID of the resource.
description String
Describe.
destContent String
Access purpose example: net:IP/CIDR(192.168.0.2) domain:domain rule, for example*.qq.com.
destType String
Access purpose type, the type can be: net, template.
enable String
Rule status, true means enabled, false means disabled. Default is true.
fwGroupId String
Firewall instance ID where the rule takes effect. Default is ALL.
fwGroupName String
Firewall name.
internalUuid Number
Uuid used internally, this field is generally not used.
paramTemplateId String
Parameter template id. Note: This field may return null, indicating that no valid value can be obtained.
paramTemplateName String
Parameter template Name. Note: This field may return null, indicating that no valid value can be obtained.
port String
The port for the access control policy. Value: -1/-1: All ports; 80: port 80.
protocol String
Protocol, optional value:TCP, UDP, ICMP, ANY, HTTP, HTTPS, HTTP/HTTPS, SMTP, SMTPS, SMTP/SMTPS, FTP, DNS, TLS/SSL.
ruleAction String
How traffic set in the access control policy passes through the cloud firewall. Value: accept:accept, drop:drop, log:log.
sourceContent String
Access source examplnet:IP/CIDR(192.168.0.2).
sourceType String
Access source type, the type can be: net, template.
uuid Number
The unique id corresponding to the rule.

Supporting Types

CfwVpcPolicyBetaList
, CfwVpcPolicyBetaListArgs

LastTime This property is required. string
TaskId This property is required. double
TaskName This property is required. string
LastTime This property is required. string
TaskId This property is required. float64
TaskName This property is required. string
lastTime This property is required. String
taskId This property is required. Double
taskName This property is required. String
lastTime This property is required. string
taskId This property is required. number
taskName This property is required. string
last_time This property is required. str
task_id This property is required. float
task_name This property is required. str
lastTime This property is required. String
taskId This property is required. Number
taskName This property is required. String

Import

cfw vpc_policy can be imported using the id, e.g.

$ pulumi import tencentcloud:index/cfwVpcPolicy:CfwVpcPolicy vpc_policy vpc_policy_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.