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

tencentcloud.CfwVpcPolicy

Explore with Pulumi AI

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

    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",
    });
    
    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")
    
    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
    	})
    }
    
    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",
        });
    
    });
    
    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());
    
        }
    }
    
    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
    

    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 string
    The unique name of the resource.
    args CfwVpcPolicyArgs
    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 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 string
    The unique name of the resource.
    args CfwVpcPolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CfwVpcPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args 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 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.
    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.
    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 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.
    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.
    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 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.
    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.
    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 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.
    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.
    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 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.
    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.
    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 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.
    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.
    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
    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:
    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 string
    TaskId double
    TaskName string
    LastTime string
    TaskId float64
    TaskName string
    lastTime String
    taskId Double
    taskName String
    lastTime string
    taskId number
    taskName string
    lastTime String
    taskId Number
    taskName String

    Import

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

    $ pulumi import tencentcloud:index/cfwVpcPolicy:CfwVpcPolicy vpc_policy vpc_policy_id
    

    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