tencentcloud.CfwNatPolicy
Explore with Pulumi AI
Provides a resource to create a CFW nat policy
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.CfwNatPolicy("example", {
description: "policy description.",
direction: 1,
enable: "true",
port: "-1/-1",
protocol: "TCP",
ruleAction: "drop",
scope: "ALL",
sourceContent: "1.1.1.1/0",
sourceType: "net",
targetContent: "0.0.0.0/0",
targetType: "net",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.CfwNatPolicy("example",
description="policy description.",
direction=1,
enable="true",
port="-1/-1",
protocol="TCP",
rule_action="drop",
scope="ALL",
source_content="1.1.1.1/0",
source_type="net",
target_content="0.0.0.0/0",
target_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.NewCfwNatPolicy(ctx, "example", &tencentcloud.CfwNatPolicyArgs{
Description: pulumi.String("policy description."),
Direction: pulumi.Float64(1),
Enable: pulumi.String("true"),
Port: pulumi.String("-1/-1"),
Protocol: pulumi.String("TCP"),
RuleAction: pulumi.String("drop"),
Scope: pulumi.String("ALL"),
SourceContent: pulumi.String("1.1.1.1/0"),
SourceType: pulumi.String("net"),
TargetContent: pulumi.String("0.0.0.0/0"),
TargetType: 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.CfwNatPolicy("example", new()
{
Description = "policy description.",
Direction = 1,
Enable = "true",
Port = "-1/-1",
Protocol = "TCP",
RuleAction = "drop",
Scope = "ALL",
SourceContent = "1.1.1.1/0",
SourceType = "net",
TargetContent = "0.0.0.0/0",
TargetType = "net",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CfwNatPolicy;
import com.pulumi.tencentcloud.CfwNatPolicyArgs;
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 CfwNatPolicy("example", CfwNatPolicyArgs.builder()
.description("policy description.")
.direction(1)
.enable("true")
.port("-1/-1")
.protocol("TCP")
.ruleAction("drop")
.scope("ALL")
.sourceContent("1.1.1.1/0")
.sourceType("net")
.targetContent("0.0.0.0/0")
.targetType("net")
.build());
}
}
resources:
example:
type: tencentcloud:CfwNatPolicy
properties:
description: policy description.
direction: 1
enable: 'true'
port: -1/-1
protocol: TCP
ruleAction: drop
scope: ALL
sourceContent: 1.1.1.1/0
sourceType: net
targetContent: 0.0.0.0/0
targetType: net
Create CfwNatPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CfwNatPolicy(name: string, args: CfwNatPolicyArgs, opts?: CustomResourceOptions);
@overload
def CfwNatPolicy(resource_name: str,
args: CfwNatPolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CfwNatPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
source_content: Optional[str] = None,
direction: Optional[float] = None,
port: Optional[str] = None,
protocol: Optional[str] = None,
rule_action: Optional[str] = None,
source_type: Optional[str] = None,
target_content: Optional[str] = None,
target_type: Optional[str] = None,
description: Optional[str] = None,
enable: Optional[str] = None,
param_template_id: Optional[str] = None,
scope: Optional[str] = None,
cfw_nat_policy_id: Optional[str] = None)
func NewCfwNatPolicy(ctx *Context, name string, args CfwNatPolicyArgs, opts ...ResourceOption) (*CfwNatPolicy, error)
public CfwNatPolicy(string name, CfwNatPolicyArgs args, CustomResourceOptions? opts = null)
public CfwNatPolicy(String name, CfwNatPolicyArgs args)
public CfwNatPolicy(String name, CfwNatPolicyArgs args, CustomResourceOptions options)
type: tencentcloud:CfwNatPolicy
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 CfwNatPolicyArgs
- 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 CfwNatPolicyArgs
- 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 CfwNatPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CfwNatPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CfwNatPolicyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CfwNatPolicy 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 CfwNatPolicy resource accepts the following input properties:
- Direction double
- Rule direction: 1, inbound; 0, outbound.
- Port string
- The port for the access control policy. Value: -1/-1: All ports 80: Port 80.
- Protocol string
- Protocol. If Direction=1, optional values: TCP, UDP, ANY; If Direction=0, optional values: TCP, UDP, ICMP, ANY, HTTP, HTTPS, HTTP/HTTPS, SMTP, SMTPS, SMTP/SMTPS, FTP, and DNS.
- Rule
Action string - How the traffic set in the access control policy passes through the cloud firewall. Values: accept: allow; drop: reject; log: observe.
- Source
Content string - Access source example: net:IP/CIDR(192.168.0.2).
- Source
Type string - Access source type: for inbound rules, the type can be net, location, vendor, template; for outbound rules, it can be net, instance, tag, template, group.
- Target
Content string - Example of access purpose: net: IP/CIDR(192.168.0.2) domain: domain name rules, such as *.qq.com.
- Target
Type string - Access purpose type: For inbound rules, the type can be net, instance, tag, template, group; for outbound rules, it can be net, location, vendor, template.
- Cfw
Nat stringPolicy Id - ID of the resource.
- Description string
- Description.
- Enable string
- Rule status, true means enabled, false means disabled. Default is true.
- Param
Template stringId - Parameter template id. Note: This field may return null, indicating that no valid value can be obtained.
- Scope string
- Scope of effective rules. ALL: Global effectiveness; ap-guangzhou: Effective territory; cfwnat-xxx: Effectiveness based on instance dimension.
- Direction float64
- Rule direction: 1, inbound; 0, outbound.
- Port string
- The port for the access control policy. Value: -1/-1: All ports 80: Port 80.
- Protocol string
- Protocol. If Direction=1, optional values: TCP, UDP, ANY; If Direction=0, optional values: TCP, UDP, ICMP, ANY, HTTP, HTTPS, HTTP/HTTPS, SMTP, SMTPS, SMTP/SMTPS, FTP, and DNS.
- Rule
Action string - How the traffic set in the access control policy passes through the cloud firewall. Values: accept: allow; drop: reject; log: observe.
- Source
Content string - Access source example: net:IP/CIDR(192.168.0.2).
- Source
Type string - Access source type: for inbound rules, the type can be net, location, vendor, template; for outbound rules, it can be net, instance, tag, template, group.
- Target
Content string - Example of access purpose: net: IP/CIDR(192.168.0.2) domain: domain name rules, such as *.qq.com.
- Target
Type string - Access purpose type: For inbound rules, the type can be net, instance, tag, template, group; for outbound rules, it can be net, location, vendor, template.
- Cfw
Nat stringPolicy Id - ID of the resource.
- Description string
- Description.
- Enable string
- Rule status, true means enabled, false means disabled. Default is true.
- Param
Template stringId - Parameter template id. Note: This field may return null, indicating that no valid value can be obtained.
- Scope string
- Scope of effective rules. ALL: Global effectiveness; ap-guangzhou: Effective territory; cfwnat-xxx: Effectiveness based on instance dimension.
- direction Double
- Rule direction: 1, inbound; 0, outbound.
- port String
- The port for the access control policy. Value: -1/-1: All ports 80: Port 80.
- protocol String
- Protocol. If Direction=1, optional values: TCP, UDP, ANY; If Direction=0, optional values: TCP, UDP, ICMP, ANY, HTTP, HTTPS, HTTP/HTTPS, SMTP, SMTPS, SMTP/SMTPS, FTP, and DNS.
- rule
Action String - How the traffic set in the access control policy passes through the cloud firewall. Values: accept: allow; drop: reject; log: observe.
- source
Content String - Access source example: net:IP/CIDR(192.168.0.2).
- source
Type String - Access source type: for inbound rules, the type can be net, location, vendor, template; for outbound rules, it can be net, instance, tag, template, group.
- target
Content String - Example of access purpose: net: IP/CIDR(192.168.0.2) domain: domain name rules, such as *.qq.com.
- target
Type String - Access purpose type: For inbound rules, the type can be net, instance, tag, template, group; for outbound rules, it can be net, location, vendor, template.
- cfw
Nat StringPolicy Id - ID of the resource.
- description String
- Description.
- enable String
- Rule status, true means enabled, false means disabled. Default is true.
- param
Template StringId - Parameter template id. Note: This field may return null, indicating that no valid value can be obtained.
- scope String
- Scope of effective rules. ALL: Global effectiveness; ap-guangzhou: Effective territory; cfwnat-xxx: Effectiveness based on instance dimension.
- direction number
- Rule direction: 1, inbound; 0, outbound.
- port string
- The port for the access control policy. Value: -1/-1: All ports 80: Port 80.
- protocol string
- Protocol. If Direction=1, optional values: TCP, UDP, ANY; If Direction=0, optional values: TCP, UDP, ICMP, ANY, HTTP, HTTPS, HTTP/HTTPS, SMTP, SMTPS, SMTP/SMTPS, FTP, and DNS.
- rule
Action string - How the traffic set in the access control policy passes through the cloud firewall. Values: accept: allow; drop: reject; log: observe.
- source
Content string - Access source example: net:IP/CIDR(192.168.0.2).
- source
Type string - Access source type: for inbound rules, the type can be net, location, vendor, template; for outbound rules, it can be net, instance, tag, template, group.
- target
Content string - Example of access purpose: net: IP/CIDR(192.168.0.2) domain: domain name rules, such as *.qq.com.
- target
Type string - Access purpose type: For inbound rules, the type can be net, instance, tag, template, group; for outbound rules, it can be net, location, vendor, template.
- cfw
Nat stringPolicy Id - ID of the resource.
- description string
- Description.
- enable string
- Rule status, true means enabled, false means disabled. Default is true.
- param
Template stringId - Parameter template id. Note: This field may return null, indicating that no valid value can be obtained.
- scope string
- Scope of effective rules. ALL: Global effectiveness; ap-guangzhou: Effective territory; cfwnat-xxx: Effectiveness based on instance dimension.
- direction float
- Rule direction: 1, inbound; 0, outbound.
- port str
- The port for the access control policy. Value: -1/-1: All ports 80: Port 80.
- protocol str
- Protocol. If Direction=1, optional values: TCP, UDP, ANY; If Direction=0, optional values: TCP, UDP, ICMP, ANY, HTTP, HTTPS, HTTP/HTTPS, SMTP, SMTPS, SMTP/SMTPS, FTP, and DNS.
- rule_
action str - How the traffic set in the access control policy passes through the cloud firewall. Values: accept: allow; drop: reject; log: observe.
- source_
content str - Access source example: net:IP/CIDR(192.168.0.2).
- source_
type str - Access source type: for inbound rules, the type can be net, location, vendor, template; for outbound rules, it can be net, instance, tag, template, group.
- target_
content str - Example of access purpose: net: IP/CIDR(192.168.0.2) domain: domain name rules, such as *.qq.com.
- target_
type str - Access purpose type: For inbound rules, the type can be net, instance, tag, template, group; for outbound rules, it can be net, location, vendor, template.
- cfw_
nat_ strpolicy_ id - ID of the resource.
- description str
- Description.
- enable str
- Rule status, true means enabled, false means disabled. Default is true.
- param_
template_ strid - Parameter template id. Note: This field may return null, indicating that no valid value can be obtained.
- scope str
- Scope of effective rules. ALL: Global effectiveness; ap-guangzhou: Effective territory; cfwnat-xxx: Effectiveness based on instance dimension.
- direction Number
- Rule direction: 1, inbound; 0, outbound.
- port String
- The port for the access control policy. Value: -1/-1: All ports 80: Port 80.
- protocol String
- Protocol. If Direction=1, optional values: TCP, UDP, ANY; If Direction=0, optional values: TCP, UDP, ICMP, ANY, HTTP, HTTPS, HTTP/HTTPS, SMTP, SMTPS, SMTP/SMTPS, FTP, and DNS.
- rule
Action String - How the traffic set in the access control policy passes through the cloud firewall. Values: accept: allow; drop: reject; log: observe.
- source
Content String - Access source example: net:IP/CIDR(192.168.0.2).
- source
Type String - Access source type: for inbound rules, the type can be net, location, vendor, template; for outbound rules, it can be net, instance, tag, template, group.
- target
Content String - Example of access purpose: net: IP/CIDR(192.168.0.2) domain: domain name rules, such as *.qq.com.
- target
Type String - Access purpose type: For inbound rules, the type can be net, instance, tag, template, group; for outbound rules, it can be net, location, vendor, template.
- cfw
Nat StringPolicy Id - ID of the resource.
- description String
- Description.
- enable String
- Rule status, true means enabled, false means disabled. Default is true.
- param
Template StringId - Parameter template id. Note: This field may return null, indicating that no valid value can be obtained.
- scope String
- Scope of effective rules. ALL: Global effectiveness; ap-guangzhou: Effective territory; cfwnat-xxx: Effectiveness based on instance dimension.
Outputs
All input properties are implicitly available as output properties. Additionally, the CfwNatPolicy resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Internal
Uuid double - Internal ID.
- Uuid double
- The unique id corresponding to the rule, no need to fill in when creating the rule.
- Id string
- The provider-assigned unique ID for this managed resource.
- Internal
Uuid float64 - Internal ID.
- Uuid float64
- The unique id corresponding to the rule, no need to fill in when creating the rule.
- id String
- The provider-assigned unique ID for this managed resource.
- internal
Uuid Double - Internal ID.
- uuid Double
- The unique id corresponding to the rule, no need to fill in when creating the rule.
- id string
- The provider-assigned unique ID for this managed resource.
- internal
Uuid number - Internal ID.
- uuid number
- The unique id corresponding to the rule, no need to fill in when creating the rule.
- id str
- The provider-assigned unique ID for this managed resource.
- internal_
uuid float - Internal ID.
- uuid float
- The unique id corresponding to the rule, no need to fill in when creating the rule.
- id String
- The provider-assigned unique ID for this managed resource.
- internal
Uuid Number - Internal ID.
- uuid Number
- The unique id corresponding to the rule, no need to fill in when creating the rule.
Look up Existing CfwNatPolicy Resource
Get an existing CfwNatPolicy 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?: CfwNatPolicyState, opts?: CustomResourceOptions): CfwNatPolicy
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cfw_nat_policy_id: Optional[str] = None,
description: Optional[str] = None,
direction: Optional[float] = None,
enable: Optional[str] = None,
internal_uuid: Optional[float] = None,
param_template_id: Optional[str] = None,
port: Optional[str] = None,
protocol: Optional[str] = None,
rule_action: Optional[str] = None,
scope: Optional[str] = None,
source_content: Optional[str] = None,
source_type: Optional[str] = None,
target_content: Optional[str] = None,
target_type: Optional[str] = None,
uuid: Optional[float] = None) -> CfwNatPolicy
func GetCfwNatPolicy(ctx *Context, name string, id IDInput, state *CfwNatPolicyState, opts ...ResourceOption) (*CfwNatPolicy, error)
public static CfwNatPolicy Get(string name, Input<string> id, CfwNatPolicyState? state, CustomResourceOptions? opts = null)
public static CfwNatPolicy get(String name, Output<String> id, CfwNatPolicyState state, CustomResourceOptions options)
resources: _: type: tencentcloud:CfwNatPolicy 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.
- Cfw
Nat stringPolicy Id - ID of the resource.
- Description string
- Description.
- Direction double
- Rule direction: 1, inbound; 0, outbound.
- Enable string
- Rule status, true means enabled, false means disabled. Default is true.
- Internal
Uuid double - Internal ID.
- Param
Template stringId - Parameter template id. 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. If Direction=1, optional values: TCP, UDP, ANY; If Direction=0, optional values: TCP, UDP, ICMP, ANY, HTTP, HTTPS, HTTP/HTTPS, SMTP, SMTPS, SMTP/SMTPS, FTP, and DNS.
- Rule
Action string - How the traffic set in the access control policy passes through the cloud firewall. Values: accept: allow; drop: reject; log: observe.
- Scope string
- Scope of effective rules. ALL: Global effectiveness; ap-guangzhou: Effective territory; cfwnat-xxx: Effectiveness based on instance dimension.
- Source
Content string - Access source example: net:IP/CIDR(192.168.0.2).
- Source
Type string - Access source type: for inbound rules, the type can be net, location, vendor, template; for outbound rules, it can be net, instance, tag, template, group.
- Target
Content string - Example of access purpose: net: IP/CIDR(192.168.0.2) domain: domain name rules, such as *.qq.com.
- Target
Type string - Access purpose type: For inbound rules, the type can be net, instance, tag, template, group; for outbound rules, it can be net, location, vendor, template.
- Uuid double
- The unique id corresponding to the rule, no need to fill in when creating the rule.
- Cfw
Nat stringPolicy Id - ID of the resource.
- Description string
- Description.
- Direction float64
- Rule direction: 1, inbound; 0, outbound.
- Enable string
- Rule status, true means enabled, false means disabled. Default is true.
- Internal
Uuid float64 - Internal ID.
- Param
Template stringId - Parameter template id. 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. If Direction=1, optional values: TCP, UDP, ANY; If Direction=0, optional values: TCP, UDP, ICMP, ANY, HTTP, HTTPS, HTTP/HTTPS, SMTP, SMTPS, SMTP/SMTPS, FTP, and DNS.
- Rule
Action string - How the traffic set in the access control policy passes through the cloud firewall. Values: accept: allow; drop: reject; log: observe.
- Scope string
- Scope of effective rules. ALL: Global effectiveness; ap-guangzhou: Effective territory; cfwnat-xxx: Effectiveness based on instance dimension.
- Source
Content string - Access source example: net:IP/CIDR(192.168.0.2).
- Source
Type string - Access source type: for inbound rules, the type can be net, location, vendor, template; for outbound rules, it can be net, instance, tag, template, group.
- Target
Content string - Example of access purpose: net: IP/CIDR(192.168.0.2) domain: domain name rules, such as *.qq.com.
- Target
Type string - Access purpose type: For inbound rules, the type can be net, instance, tag, template, group; for outbound rules, it can be net, location, vendor, template.
- Uuid float64
- The unique id corresponding to the rule, no need to fill in when creating the rule.
- cfw
Nat StringPolicy Id - ID of the resource.
- description String
- Description.
- direction Double
- Rule direction: 1, inbound; 0, outbound.
- enable String
- Rule status, true means enabled, false means disabled. Default is true.
- internal
Uuid Double - Internal ID.
- param
Template StringId - Parameter template id. 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. If Direction=1, optional values: TCP, UDP, ANY; If Direction=0, optional values: TCP, UDP, ICMP, ANY, HTTP, HTTPS, HTTP/HTTPS, SMTP, SMTPS, SMTP/SMTPS, FTP, and DNS.
- rule
Action String - How the traffic set in the access control policy passes through the cloud firewall. Values: accept: allow; drop: reject; log: observe.
- scope String
- Scope of effective rules. ALL: Global effectiveness; ap-guangzhou: Effective territory; cfwnat-xxx: Effectiveness based on instance dimension.
- source
Content String - Access source example: net:IP/CIDR(192.168.0.2).
- source
Type String - Access source type: for inbound rules, the type can be net, location, vendor, template; for outbound rules, it can be net, instance, tag, template, group.
- target
Content String - Example of access purpose: net: IP/CIDR(192.168.0.2) domain: domain name rules, such as *.qq.com.
- target
Type String - Access purpose type: For inbound rules, the type can be net, instance, tag, template, group; for outbound rules, it can be net, location, vendor, template.
- uuid Double
- The unique id corresponding to the rule, no need to fill in when creating the rule.
- cfw
Nat stringPolicy Id - ID of the resource.
- description string
- Description.
- direction number
- Rule direction: 1, inbound; 0, outbound.
- enable string
- Rule status, true means enabled, false means disabled. Default is true.
- internal
Uuid number - Internal ID.
- param
Template stringId - Parameter template id. 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. If Direction=1, optional values: TCP, UDP, ANY; If Direction=0, optional values: TCP, UDP, ICMP, ANY, HTTP, HTTPS, HTTP/HTTPS, SMTP, SMTPS, SMTP/SMTPS, FTP, and DNS.
- rule
Action string - How the traffic set in the access control policy passes through the cloud firewall. Values: accept: allow; drop: reject; log: observe.
- scope string
- Scope of effective rules. ALL: Global effectiveness; ap-guangzhou: Effective territory; cfwnat-xxx: Effectiveness based on instance dimension.
- source
Content string - Access source example: net:IP/CIDR(192.168.0.2).
- source
Type string - Access source type: for inbound rules, the type can be net, location, vendor, template; for outbound rules, it can be net, instance, tag, template, group.
- target
Content string - Example of access purpose: net: IP/CIDR(192.168.0.2) domain: domain name rules, such as *.qq.com.
- target
Type string - Access purpose type: For inbound rules, the type can be net, instance, tag, template, group; for outbound rules, it can be net, location, vendor, template.
- uuid number
- The unique id corresponding to the rule, no need to fill in when creating the rule.
- cfw_
nat_ strpolicy_ id - ID of the resource.
- description str
- Description.
- direction float
- Rule direction: 1, inbound; 0, outbound.
- enable str
- Rule status, true means enabled, false means disabled. Default is true.
- internal_
uuid float - Internal ID.
- param_
template_ strid - Parameter template id. 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. If Direction=1, optional values: TCP, UDP, ANY; If Direction=0, optional values: TCP, UDP, ICMP, ANY, HTTP, HTTPS, HTTP/HTTPS, SMTP, SMTPS, SMTP/SMTPS, FTP, and DNS.
- rule_
action str - How the traffic set in the access control policy passes through the cloud firewall. Values: accept: allow; drop: reject; log: observe.
- scope str
- Scope of effective rules. ALL: Global effectiveness; ap-guangzhou: Effective territory; cfwnat-xxx: Effectiveness based on instance dimension.
- source_
content str - Access source example: net:IP/CIDR(192.168.0.2).
- source_
type str - Access source type: for inbound rules, the type can be net, location, vendor, template; for outbound rules, it can be net, instance, tag, template, group.
- target_
content str - Example of access purpose: net: IP/CIDR(192.168.0.2) domain: domain name rules, such as *.qq.com.
- target_
type str - Access purpose type: For inbound rules, the type can be net, instance, tag, template, group; for outbound rules, it can be net, location, vendor, template.
- uuid float
- The unique id corresponding to the rule, no need to fill in when creating the rule.
- cfw
Nat StringPolicy Id - ID of the resource.
- description String
- Description.
- direction Number
- Rule direction: 1, inbound; 0, outbound.
- enable String
- Rule status, true means enabled, false means disabled. Default is true.
- internal
Uuid Number - Internal ID.
- param
Template StringId - Parameter template id. 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. If Direction=1, optional values: TCP, UDP, ANY; If Direction=0, optional values: TCP, UDP, ICMP, ANY, HTTP, HTTPS, HTTP/HTTPS, SMTP, SMTPS, SMTP/SMTPS, FTP, and DNS.
- rule
Action String - How the traffic set in the access control policy passes through the cloud firewall. Values: accept: allow; drop: reject; log: observe.
- scope String
- Scope of effective rules. ALL: Global effectiveness; ap-guangzhou: Effective territory; cfwnat-xxx: Effectiveness based on instance dimension.
- source
Content String - Access source example: net:IP/CIDR(192.168.0.2).
- source
Type String - Access source type: for inbound rules, the type can be net, location, vendor, template; for outbound rules, it can be net, instance, tag, template, group.
- target
Content String - Example of access purpose: net: IP/CIDR(192.168.0.2) domain: domain name rules, such as *.qq.com.
- target
Type String - Access purpose type: For inbound rules, the type can be net, instance, tag, template, group; for outbound rules, it can be net, location, vendor, template.
- uuid Number
- The unique id corresponding to the rule, no need to fill in when creating the rule.
Import
CFW nat policy can be imported using the id, e.g.
$ pulumi import tencentcloud:index/cfwNatPolicy:CfwNatPolicy example 134123
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.