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",
});
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.
- Dest
Content string - Access purpose example: net:IP/CIDR(192.168.0.2) domain:domain rule, for example*.qq.com.
- Dest
Type 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.
- Rule
Action string - How traffic set in the access control policy passes through the cloud firewall. Value: accept:accept, drop:drop, log:log.
- Source
Content string - Access source examplnet:IP/CIDR(192.168.0.2).
- Source
Type string - Access source type, the type can be: net, template.
- Cfw
Vpc stringPolicy Id - ID of the resource.
- Enable string
- Rule status, true means enabled, false means disabled. Default is true.
- Fw
Group stringId - Firewall instance ID where the rule takes effect. Default is ALL.
- Description string
- Describe.
- Dest
Content string - Access purpose example: net:IP/CIDR(192.168.0.2) domain:domain rule, for example*.qq.com.
- Dest
Type 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.
- Rule
Action string - How traffic set in the access control policy passes through the cloud firewall. Value: accept:accept, drop:drop, log:log.
- Source
Content string - Access source examplnet:IP/CIDR(192.168.0.2).
- Source
Type string - Access source type, the type can be: net, template.
- Cfw
Vpc stringPolicy Id - ID of the resource.
- Enable string
- Rule status, true means enabled, false means disabled. Default is true.
- Fw
Group stringId - Firewall instance ID where the rule takes effect. Default is ALL.
- description String
- Describe.
- dest
Content String - Access purpose example: net:IP/CIDR(192.168.0.2) domain:domain rule, for example*.qq.com.
- dest
Type 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.
- rule
Action String - How traffic set in the access control policy passes through the cloud firewall. Value: accept:accept, drop:drop, log:log.
- source
Content String - Access source examplnet:IP/CIDR(192.168.0.2).
- source
Type String - Access source type, the type can be: net, template.
- cfw
Vpc StringPolicy Id - ID of the resource.
- enable String
- Rule status, true means enabled, false means disabled. Default is true.
- fw
Group StringId - Firewall instance ID where the rule takes effect. Default is ALL.
- description string
- Describe.
- dest
Content string - Access purpose example: net:IP/CIDR(192.168.0.2) domain:domain rule, for example*.qq.com.
- dest
Type 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.
- rule
Action string - How traffic set in the access control policy passes through the cloud firewall. Value: accept:accept, drop:drop, log:log.
- source
Content string - Access source examplnet:IP/CIDR(192.168.0.2).
- source
Type string - Access source type, the type can be: net, template.
- cfw
Vpc stringPolicy Id - ID of the resource.
- enable string
- Rule status, true means enabled, false means disabled. Default is true.
- fw
Group stringId - 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_ strpolicy_ id - ID of the resource.
- enable str
- Rule status, true means enabled, false means disabled. Default is true.
- fw_
group_ strid - Firewall instance ID where the rule takes effect. Default is ALL.
- description String
- Describe.
- dest
Content String - Access purpose example: net:IP/CIDR(192.168.0.2) domain:domain rule, for example*.qq.com.
- dest
Type 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.
- rule
Action String - How traffic set in the access control policy passes through the cloud firewall. Value: accept:accept, drop:drop, log:log.
- source
Content String - Access source examplnet:IP/CIDR(192.168.0.2).
- source
Type String - Access source type, the type can be: net, template.
- cfw
Vpc StringPolicy Id - ID of the resource.
- enable String
- Rule status, true means enabled, false means disabled. Default is true.
- fw
Group StringId - 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:
- Beta
Lists List<CfwVpc Policy Beta List> - Beta mission details. Note: This field may return null, indicating that no valid value can be obtained.
- Fw
Group stringName - Firewall name.
- Id string
- The provider-assigned unique ID for this managed resource.
- Internal
Uuid double - Uuid used internally, this field is generally not used.
- Param
Template stringId - Parameter template id. Note: This field may return null, indicating that no valid value can be obtained.
- Param
Template stringName - 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.
- Beta
Lists []CfwVpc Policy Beta List - Beta mission details. Note: This field may return null, indicating that no valid value can be obtained.
- Fw
Group stringName - Firewall name.
- Id string
- The provider-assigned unique ID for this managed resource.
- Internal
Uuid float64 - Uuid used internally, this field is generally not used.
- Param
Template stringId - Parameter template id. Note: This field may return null, indicating that no valid value can be obtained.
- Param
Template stringName - 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.
- beta
Lists List<CfwVpc Policy Beta List> - Beta mission details. Note: This field may return null, indicating that no valid value can be obtained.
- fw
Group StringName - Firewall name.
- id String
- The provider-assigned unique ID for this managed resource.
- internal
Uuid Double - Uuid used internally, this field is generally not used.
- param
Template StringId - Parameter template id. Note: This field may return null, indicating that no valid value can be obtained.
- param
Template StringName - 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.
- beta
Lists CfwVpc Policy Beta List[] - Beta mission details. Note: This field may return null, indicating that no valid value can be obtained.
- fw
Group stringName - Firewall name.
- id string
- The provider-assigned unique ID for this managed resource.
- internal
Uuid number - Uuid used internally, this field is generally not used.
- param
Template stringId - Parameter template id. Note: This field may return null, indicating that no valid value can be obtained.
- param
Template stringName - 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[CfwVpc Policy Beta List] - Beta mission details. Note: This field may return null, indicating that no valid value can be obtained.
- fw_
group_ strname - 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_ strid - Parameter template id. Note: This field may return null, indicating that no valid value can be obtained.
- param_
template_ strname - 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.
- beta
Lists List<Property Map> - Beta mission details. Note: This field may return null, indicating that no valid value can be obtained.
- fw
Group StringName - Firewall name.
- id String
- The provider-assigned unique ID for this managed resource.
- internal
Uuid Number - Uuid used internally, this field is generally not used.
- param
Template StringId - Parameter template id. Note: This field may return null, indicating that no valid value can be obtained.
- param
Template StringName - 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.
- Beta
Lists List<CfwVpc Policy Beta List> - Beta mission details. Note: This field may return null, indicating that no valid value can be obtained.
- Cfw
Vpc stringPolicy Id - ID of the resource.
- Description string
- Describe.
- Dest
Content string - Access purpose example: net:IP/CIDR(192.168.0.2) domain:domain rule, for example*.qq.com.
- Dest
Type string - Access purpose type, the type can be: net, template.
- Enable string
- Rule status, true means enabled, false means disabled. Default is true.
- Fw
Group stringId - Firewall instance ID where the rule takes effect. Default is ALL.
- Fw
Group stringName - Firewall name.
- Internal
Uuid double - Uuid used internally, this field is generally not used.
- Param
Template stringId - Parameter template id. Note: This field may return null, indicating that no valid value can be obtained.
- Param
Template stringName - 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.
- Rule
Action string - How traffic set in the access control policy passes through the cloud firewall. Value: accept:accept, drop:drop, log:log.
- Source
Content string - Access source examplnet:IP/CIDR(192.168.0.2).
- Source
Type string - Access source type, the type can be: net, template.
- Uuid double
- The unique id corresponding to the rule.
- Beta
Lists []CfwVpc Policy Beta List Args - Beta mission details. Note: This field may return null, indicating that no valid value can be obtained.
- Cfw
Vpc stringPolicy Id - ID of the resource.
- Description string
- Describe.
- Dest
Content string - Access purpose example: net:IP/CIDR(192.168.0.2) domain:domain rule, for example*.qq.com.
- Dest
Type string - Access purpose type, the type can be: net, template.
- Enable string
- Rule status, true means enabled, false means disabled. Default is true.
- Fw
Group stringId - Firewall instance ID where the rule takes effect. Default is ALL.
- Fw
Group stringName - Firewall name.
- Internal
Uuid float64 - Uuid used internally, this field is generally not used.
- Param
Template stringId - Parameter template id. Note: This field may return null, indicating that no valid value can be obtained.
- Param
Template stringName - 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.
- Rule
Action string - How traffic set in the access control policy passes through the cloud firewall. Value: accept:accept, drop:drop, log:log.
- Source
Content string - Access source examplnet:IP/CIDR(192.168.0.2).
- Source
Type string - Access source type, the type can be: net, template.
- Uuid float64
- The unique id corresponding to the rule.
- beta
Lists List<CfwVpc Policy Beta List> - Beta mission details. Note: This field may return null, indicating that no valid value can be obtained.
- cfw
Vpc StringPolicy Id - ID of the resource.
- description String
- Describe.
- dest
Content String - Access purpose example: net:IP/CIDR(192.168.0.2) domain:domain rule, for example*.qq.com.
- dest
Type String - Access purpose type, the type can be: net, template.
- enable String
- Rule status, true means enabled, false means disabled. Default is true.
- fw
Group StringId - Firewall instance ID where the rule takes effect. Default is ALL.
- fw
Group StringName - Firewall name.
- internal
Uuid Double - Uuid used internally, this field is generally not used.
- param
Template StringId - Parameter template id. Note: This field may return null, indicating that no valid value can be obtained.
- param
Template StringName - 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.
- rule
Action String - How traffic set in the access control policy passes through the cloud firewall. Value: accept:accept, drop:drop, log:log.
- source
Content String - Access source examplnet:IP/CIDR(192.168.0.2).
- source
Type String - Access source type, the type can be: net, template.
- uuid Double
- The unique id corresponding to the rule.
- beta
Lists CfwVpc Policy Beta List[] - Beta mission details. Note: This field may return null, indicating that no valid value can be obtained.
- cfw
Vpc stringPolicy Id - ID of the resource.
- description string
- Describe.
- dest
Content string - Access purpose example: net:IP/CIDR(192.168.0.2) domain:domain rule, for example*.qq.com.
- dest
Type string - Access purpose type, the type can be: net, template.
- enable string
- Rule status, true means enabled, false means disabled. Default is true.
- fw
Group stringId - Firewall instance ID where the rule takes effect. Default is ALL.
- fw
Group stringName - Firewall name.
- internal
Uuid number - Uuid used internally, this field is generally not used.
- param
Template stringId - Parameter template id. Note: This field may return null, indicating that no valid value can be obtained.
- param
Template stringName - 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.
- rule
Action string - How traffic set in the access control policy passes through the cloud firewall. Value: accept:accept, drop:drop, log:log.
- source
Content string - Access source examplnet:IP/CIDR(192.168.0.2).
- source
Type string - Access source type, the type can be: net, template.
- uuid number
- The unique id corresponding to the rule.
- beta_
lists Sequence[CfwVpc Policy Beta List Args] - Beta mission details. Note: This field may return null, indicating that no valid value can be obtained.
- cfw_
vpc_ strpolicy_ id - 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_ strid - Firewall instance ID where the rule takes effect. Default is ALL.
- fw_
group_ strname - Firewall name.
- internal_
uuid float - Uuid used internally, this field is generally not used.
- param_
template_ strid - Parameter template id. Note: This field may return null, indicating that no valid value can be obtained.
- param_
template_ strname - 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.
- beta
Lists List<Property Map> - Beta mission details. Note: This field may return null, indicating that no valid value can be obtained.
- cfw
Vpc StringPolicy Id - ID of the resource.
- description String
- Describe.
- dest
Content String - Access purpose example: net:IP/CIDR(192.168.0.2) domain:domain rule, for example*.qq.com.
- dest
Type String - Access purpose type, the type can be: net, template.
- enable String
- Rule status, true means enabled, false means disabled. Default is true.
- fw
Group StringId - Firewall instance ID where the rule takes effect. Default is ALL.
- fw
Group StringName - Firewall name.
- internal
Uuid Number - Uuid used internally, this field is generally not used.
- param
Template StringId - Parameter template id. Note: This field may return null, indicating that no valid value can be obtained.
- param
Template StringName - 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.
- rule
Action String - How traffic set in the access control policy passes through the cloud firewall. Value: accept:accept, drop:drop, log:log.
- source
Content String - Access source examplnet:IP/CIDR(192.168.0.2).
- source
Type String - Access source type, the type can be: net, template.
- uuid Number
- The unique id corresponding to the rule.
Supporting Types
CfwVpcPolicyBetaList, CfwVpcPolicyBetaListArgs
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.