1. Packages
  2. Volcengine
  3. API Docs
  4. cloud_firewall
  5. CfwNatFirewallControlPolicy
Volcengine v0.0.29 published on Tuesday, Apr 29, 2025 by Volcengine

volcengine.cloud_firewall.CfwNatFirewallControlPolicy

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.29 published on Tuesday, Apr 29, 2025 by Volcengine

    Provides a resource to manage cfw nat firewall control policy

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@volcengine/pulumi";
    
    const fooCfwAddressBook = new volcengine.cloud_firewall.CfwAddressBook("fooCfwAddressBook", {
        groupName: "acc-test-address-book",
        description: "acc-test",
        groupType: "ip",
        addressLists: [
            "192.168.1.1",
            "192.168.2.2",
        ],
    });
    const fooCfwNatFirewallControlPolicy = new volcengine.cloud_firewall.CfwNatFirewallControlPolicy("fooCfwNatFirewallControlPolicy", {
        direction: "in",
        natFirewallId: "nfw-ydmkayvjsw2vsavx****",
        action: "accept",
        destinationType: "group",
        destination: fooCfwAddressBook.id,
        proto: "TCP",
        sourceType: "net",
        source: "0.0.0.0/0",
        description: "acc-test-control-policy",
        destPortType: "port",
        destPort: "300",
        repeatType: "Weekly",
        repeatStartTime: "01:00",
        repeatEndTime: "11:00",
        repeatDays: [
            2,
            5,
            4,
        ],
        startTime: 1736092800,
        endTime: 1738339140,
        priority: 1,
        status: true,
    });
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo_cfw_address_book = volcengine.cloud_firewall.CfwAddressBook("fooCfwAddressBook",
        group_name="acc-test-address-book",
        description="acc-test",
        group_type="ip",
        address_lists=[
            "192.168.1.1",
            "192.168.2.2",
        ])
    foo_cfw_nat_firewall_control_policy = volcengine.cloud_firewall.CfwNatFirewallControlPolicy("fooCfwNatFirewallControlPolicy",
        direction="in",
        nat_firewall_id="nfw-ydmkayvjsw2vsavx****",
        action="accept",
        destination_type="group",
        destination=foo_cfw_address_book.id,
        proto="TCP",
        source_type="net",
        source="0.0.0.0/0",
        description="acc-test-control-policy",
        dest_port_type="port",
        dest_port="300",
        repeat_type="Weekly",
        repeat_start_time="01:00",
        repeat_end_time="11:00",
        repeat_days=[
            2,
            5,
            4,
        ],
        start_time=1736092800,
        end_time=1738339140,
        priority=1,
        status=True)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/cloud_firewall"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		fooCfwAddressBook, err := cloud_firewall.NewCfwAddressBook(ctx, "fooCfwAddressBook", &cloud_firewall.CfwAddressBookArgs{
    			GroupName:   pulumi.String("acc-test-address-book"),
    			Description: pulumi.String("acc-test"),
    			GroupType:   pulumi.String("ip"),
    			AddressLists: pulumi.StringArray{
    				pulumi.String("192.168.1.1"),
    				pulumi.String("192.168.2.2"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = cloud_firewall.NewCfwNatFirewallControlPolicy(ctx, "fooCfwNatFirewallControlPolicy", &cloud_firewall.CfwNatFirewallControlPolicyArgs{
    			Direction:       pulumi.String("in"),
    			NatFirewallId:   pulumi.String("nfw-ydmkayvjsw2vsavx****"),
    			Action:          pulumi.String("accept"),
    			DestinationType: pulumi.String("group"),
    			Destination:     fooCfwAddressBook.ID(),
    			Proto:           pulumi.String("TCP"),
    			SourceType:      pulumi.String("net"),
    			Source:          pulumi.String("0.0.0.0/0"),
    			Description:     pulumi.String("acc-test-control-policy"),
    			DestPortType:    pulumi.String("port"),
    			DestPort:        pulumi.String("300"),
    			RepeatType:      pulumi.String("Weekly"),
    			RepeatStartTime: pulumi.String("01:00"),
    			RepeatEndTime:   pulumi.String("11:00"),
    			RepeatDays: pulumi.IntArray{
    				pulumi.Int(2),
    				pulumi.Int(5),
    				pulumi.Int(4),
    			},
    			StartTime: pulumi.Int(1736092800),
    			EndTime:   pulumi.Int(1738339140),
    			Priority:  pulumi.Int(1),
    			Status:    pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var fooCfwAddressBook = new Volcengine.Cloud_firewall.CfwAddressBook("fooCfwAddressBook", new()
        {
            GroupName = "acc-test-address-book",
            Description = "acc-test",
            GroupType = "ip",
            AddressLists = new[]
            {
                "192.168.1.1",
                "192.168.2.2",
            },
        });
    
        var fooCfwNatFirewallControlPolicy = new Volcengine.Cloud_firewall.CfwNatFirewallControlPolicy("fooCfwNatFirewallControlPolicy", new()
        {
            Direction = "in",
            NatFirewallId = "nfw-ydmkayvjsw2vsavx****",
            Action = "accept",
            DestinationType = "group",
            Destination = fooCfwAddressBook.Id,
            Proto = "TCP",
            SourceType = "net",
            Source = "0.0.0.0/0",
            Description = "acc-test-control-policy",
            DestPortType = "port",
            DestPort = "300",
            RepeatType = "Weekly",
            RepeatStartTime = "01:00",
            RepeatEndTime = "11:00",
            RepeatDays = new[]
            {
                2,
                5,
                4,
            },
            StartTime = 1736092800,
            EndTime = 1738339140,
            Priority = 1,
            Status = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.cloud_firewall.CfwAddressBook;
    import com.pulumi.volcengine.cloud_firewall.CfwAddressBookArgs;
    import com.pulumi.volcengine.cloud_firewall.CfwNatFirewallControlPolicy;
    import com.pulumi.volcengine.cloud_firewall.CfwNatFirewallControlPolicyArgs;
    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 fooCfwAddressBook = new CfwAddressBook("fooCfwAddressBook", CfwAddressBookArgs.builder()        
                .groupName("acc-test-address-book")
                .description("acc-test")
                .groupType("ip")
                .addressLists(            
                    "192.168.1.1",
                    "192.168.2.2")
                .build());
    
            var fooCfwNatFirewallControlPolicy = new CfwNatFirewallControlPolicy("fooCfwNatFirewallControlPolicy", CfwNatFirewallControlPolicyArgs.builder()        
                .direction("in")
                .natFirewallId("nfw-ydmkayvjsw2vsavx****")
                .action("accept")
                .destinationType("group")
                .destination(fooCfwAddressBook.id())
                .proto("TCP")
                .sourceType("net")
                .source("0.0.0.0/0")
                .description("acc-test-control-policy")
                .destPortType("port")
                .destPort("300")
                .repeatType("Weekly")
                .repeatStartTime("01:00")
                .repeatEndTime("11:00")
                .repeatDays(            
                    2,
                    5,
                    4)
                .startTime(1736092800)
                .endTime(1738339140)
                .priority(1)
                .status(true)
                .build());
    
        }
    }
    
    resources:
      fooCfwAddressBook:
        type: volcengine:cloud_firewall:CfwAddressBook
        properties:
          groupName: acc-test-address-book
          description: acc-test
          groupType: ip
          addressLists:
            - 192.168.1.1
            - 192.168.2.2
      fooCfwNatFirewallControlPolicy:
        type: volcengine:cloud_firewall:CfwNatFirewallControlPolicy
        properties:
          direction: in
          natFirewallId: nfw-ydmkayvjsw2vsavx****
          action: accept
          destinationType: group
          destination: ${fooCfwAddressBook.id}
          proto: TCP
          sourceType: net
          source: 0.0.0.0/0
          description: acc-test-control-policy
          destPortType: port
          destPort: '300'
          repeatType: Weekly
          repeatStartTime: 01:00
          repeatEndTime: 11:00
          repeatDays:
            - 2
            - 5
            - 4
          startTime: 1.7360928e+09
          endTime: 1.73833914e+09
          priority: 1
          status: true
    

    Create CfwNatFirewallControlPolicy Resource

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

    Constructor syntax

    new CfwNatFirewallControlPolicy(name: string, args: CfwNatFirewallControlPolicyArgs, opts?: CustomResourceOptions);
    @overload
    def CfwNatFirewallControlPolicy(resource_name: str,
                                    args: CfwNatFirewallControlPolicyArgs,
                                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def CfwNatFirewallControlPolicy(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    nat_firewall_id: Optional[str] = None,
                                    proto: Optional[str] = None,
                                    source_type: Optional[str] = None,
                                    source: Optional[str] = None,
                                    destination: Optional[str] = None,
                                    destination_type: Optional[str] = None,
                                    direction: Optional[str] = None,
                                    action: Optional[str] = None,
                                    description: Optional[str] = None,
                                    end_time: Optional[int] = None,
                                    dest_port_type: Optional[str] = None,
                                    repeat_days: Optional[Sequence[int]] = None,
                                    repeat_end_time: Optional[str] = None,
                                    repeat_start_time: Optional[str] = None,
                                    repeat_type: Optional[str] = None,
                                    priority: Optional[int] = None,
                                    dest_port: Optional[str] = None,
                                    start_time: Optional[int] = None,
                                    status: Optional[bool] = None)
    func NewCfwNatFirewallControlPolicy(ctx *Context, name string, args CfwNatFirewallControlPolicyArgs, opts ...ResourceOption) (*CfwNatFirewallControlPolicy, error)
    public CfwNatFirewallControlPolicy(string name, CfwNatFirewallControlPolicyArgs args, CustomResourceOptions? opts = null)
    public CfwNatFirewallControlPolicy(String name, CfwNatFirewallControlPolicyArgs args)
    public CfwNatFirewallControlPolicy(String name, CfwNatFirewallControlPolicyArgs args, CustomResourceOptions options)
    
    type: volcengine:cloud_firewall:CfwNatFirewallControlPolicy
    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 CfwNatFirewallControlPolicyArgs
    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 CfwNatFirewallControlPolicyArgs
    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 CfwNatFirewallControlPolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CfwNatFirewallControlPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CfwNatFirewallControlPolicyArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var cfwNatFirewallControlPolicyResource = new Volcengine.Cloud_firewall.CfwNatFirewallControlPolicy("cfwNatFirewallControlPolicyResource", new()
    {
        NatFirewallId = "string",
        Proto = "string",
        SourceType = "string",
        Source = "string",
        Destination = "string",
        DestinationType = "string",
        Direction = "string",
        Action = "string",
        Description = "string",
        EndTime = 0,
        DestPortType = "string",
        RepeatDays = new[]
        {
            0,
        },
        RepeatEndTime = "string",
        RepeatStartTime = "string",
        RepeatType = "string",
        Priority = 0,
        DestPort = "string",
        StartTime = 0,
        Status = false,
    });
    
    example, err := cloud_firewall.NewCfwNatFirewallControlPolicy(ctx, "cfwNatFirewallControlPolicyResource", &cloud_firewall.CfwNatFirewallControlPolicyArgs{
    	NatFirewallId:   pulumi.String("string"),
    	Proto:           pulumi.String("string"),
    	SourceType:      pulumi.String("string"),
    	Source:          pulumi.String("string"),
    	Destination:     pulumi.String("string"),
    	DestinationType: pulumi.String("string"),
    	Direction:       pulumi.String("string"),
    	Action:          pulumi.String("string"),
    	Description:     pulumi.String("string"),
    	EndTime:         pulumi.Int(0),
    	DestPortType:    pulumi.String("string"),
    	RepeatDays: pulumi.IntArray{
    		pulumi.Int(0),
    	},
    	RepeatEndTime:   pulumi.String("string"),
    	RepeatStartTime: pulumi.String("string"),
    	RepeatType:      pulumi.String("string"),
    	Priority:        pulumi.Int(0),
    	DestPort:        pulumi.String("string"),
    	StartTime:       pulumi.Int(0),
    	Status:          pulumi.Bool(false),
    })
    
    var cfwNatFirewallControlPolicyResource = new CfwNatFirewallControlPolicy("cfwNatFirewallControlPolicyResource", CfwNatFirewallControlPolicyArgs.builder()
        .natFirewallId("string")
        .proto("string")
        .sourceType("string")
        .source("string")
        .destination("string")
        .destinationType("string")
        .direction("string")
        .action("string")
        .description("string")
        .endTime(0)
        .destPortType("string")
        .repeatDays(0)
        .repeatEndTime("string")
        .repeatStartTime("string")
        .repeatType("string")
        .priority(0)
        .destPort("string")
        .startTime(0)
        .status(false)
        .build());
    
    cfw_nat_firewall_control_policy_resource = volcengine.cloud_firewall.CfwNatFirewallControlPolicy("cfwNatFirewallControlPolicyResource",
        nat_firewall_id="string",
        proto="string",
        source_type="string",
        source="string",
        destination="string",
        destination_type="string",
        direction="string",
        action="string",
        description="string",
        end_time=0,
        dest_port_type="string",
        repeat_days=[0],
        repeat_end_time="string",
        repeat_start_time="string",
        repeat_type="string",
        priority=0,
        dest_port="string",
        start_time=0,
        status=False)
    
    const cfwNatFirewallControlPolicyResource = new volcengine.cloud_firewall.CfwNatFirewallControlPolicy("cfwNatFirewallControlPolicyResource", {
        natFirewallId: "string",
        proto: "string",
        sourceType: "string",
        source: "string",
        destination: "string",
        destinationType: "string",
        direction: "string",
        action: "string",
        description: "string",
        endTime: 0,
        destPortType: "string",
        repeatDays: [0],
        repeatEndTime: "string",
        repeatStartTime: "string",
        repeatType: "string",
        priority: 0,
        destPort: "string",
        startTime: 0,
        status: false,
    });
    
    type: volcengine:cloud_firewall:CfwNatFirewallControlPolicy
    properties:
        action: string
        description: string
        destPort: string
        destPortType: string
        destination: string
        destinationType: string
        direction: string
        endTime: 0
        natFirewallId: string
        priority: 0
        proto: string
        repeatDays:
            - 0
        repeatEndTime: string
        repeatStartTime: string
        repeatType: string
        source: string
        sourceType: string
        startTime: 0
        status: false
    

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

    Action string
    The action of the nat firewall control policy. Valid values: accept, deny, monitor.
    Destination string
    The destination of the nat firewall control policy.
    DestinationType string
    The destination type of the nat firewall control policy. Valid values: net, group, location, domain.
    Direction string
    The direction of the nat firewall control policy. Valid values: in, out.
    NatFirewallId string
    The id of the nat firewall.
    Proto string
    The proto of the nat firewall control policy. Valid values: TCP, ICMP, UDP, ANY. When the destination_type is domain, The proto must be TCP.
    Source string
    The source of the nat firewall control policy.
    SourceType string
    The source type of the nat firewall control policy. Valid values: net, group.
    Description string
    The description of the nat firewall control policy.
    DestPort string
    The dest port of the nat firewall control policy.
    DestPortType string
    The dest port type of the nat firewall control policy. Valid values: port, group.
    EndTime int
    The end time of the nat firewall control policy. Unix timestamp, fields need to be precise to 23:59:00 of the set date. When the value of repeat_type is one of Once, Daily, Weekly, Monthly, this field is required.
    Priority int
    The priority of the nat firewall control policy. Default is 0. This field is only effective when creating a control policy.0 means lowest priority, 1 means highest priority. The priority increases in order from 1, with lower priority indicating higher priority.
    RepeatDays List<int>
    The repeat days of the nat firewall control policy. When the value of repeat_type is one of Weekly, Monthly, this field is required. When the repeat_type is Weekly, the valid value range is 0~6. When the repeat_type is Monthly, the valid value range is 1~31.
    RepeatEndTime string
    The repeat end time of the nat firewall control policy. Accurate to the minute, in the format of hh: mm. For example: 12:00. When the value of repeat_type is one of Daily, Weekly, Monthly, this field is required.
    RepeatStartTime string
    The repeat start time of the nat firewall control policy. Accurate to the minute, in the format of hh: mm. For example: 12:00. When the value of repeat_type is one of Daily, Weekly, Monthly, this field is required.
    RepeatType string
    The repeat type of the nat firewall control policy. Valid values: Permanent, Once, Daily, Weekly, Monthly.
    StartTime int
    The start time of the nat firewall control policy. Unix timestamp, fields need to be precise to 23:59:00 of the set date. When the value of repeat_type is one of Once, Daily, Weekly, Monthly, this field is required.
    Status bool
    Whether to enable the nat firewall control policy. Default is false.
    Action string
    The action of the nat firewall control policy. Valid values: accept, deny, monitor.
    Destination string
    The destination of the nat firewall control policy.
    DestinationType string
    The destination type of the nat firewall control policy. Valid values: net, group, location, domain.
    Direction string
    The direction of the nat firewall control policy. Valid values: in, out.
    NatFirewallId string
    The id of the nat firewall.
    Proto string
    The proto of the nat firewall control policy. Valid values: TCP, ICMP, UDP, ANY. When the destination_type is domain, The proto must be TCP.
    Source string
    The source of the nat firewall control policy.
    SourceType string
    The source type of the nat firewall control policy. Valid values: net, group.
    Description string
    The description of the nat firewall control policy.
    DestPort string
    The dest port of the nat firewall control policy.
    DestPortType string
    The dest port type of the nat firewall control policy. Valid values: port, group.
    EndTime int
    The end time of the nat firewall control policy. Unix timestamp, fields need to be precise to 23:59:00 of the set date. When the value of repeat_type is one of Once, Daily, Weekly, Monthly, this field is required.
    Priority int
    The priority of the nat firewall control policy. Default is 0. This field is only effective when creating a control policy.0 means lowest priority, 1 means highest priority. The priority increases in order from 1, with lower priority indicating higher priority.
    RepeatDays []int
    The repeat days of the nat firewall control policy. When the value of repeat_type is one of Weekly, Monthly, this field is required. When the repeat_type is Weekly, the valid value range is 0~6. When the repeat_type is Monthly, the valid value range is 1~31.
    RepeatEndTime string
    The repeat end time of the nat firewall control policy. Accurate to the minute, in the format of hh: mm. For example: 12:00. When the value of repeat_type is one of Daily, Weekly, Monthly, this field is required.
    RepeatStartTime string
    The repeat start time of the nat firewall control policy. Accurate to the minute, in the format of hh: mm. For example: 12:00. When the value of repeat_type is one of Daily, Weekly, Monthly, this field is required.
    RepeatType string
    The repeat type of the nat firewall control policy. Valid values: Permanent, Once, Daily, Weekly, Monthly.
    StartTime int
    The start time of the nat firewall control policy. Unix timestamp, fields need to be precise to 23:59:00 of the set date. When the value of repeat_type is one of Once, Daily, Weekly, Monthly, this field is required.
    Status bool
    Whether to enable the nat firewall control policy. Default is false.
    action String
    The action of the nat firewall control policy. Valid values: accept, deny, monitor.
    destination String
    The destination of the nat firewall control policy.
    destinationType String
    The destination type of the nat firewall control policy. Valid values: net, group, location, domain.
    direction String
    The direction of the nat firewall control policy. Valid values: in, out.
    natFirewallId String
    The id of the nat firewall.
    proto String
    The proto of the nat firewall control policy. Valid values: TCP, ICMP, UDP, ANY. When the destination_type is domain, The proto must be TCP.
    source String
    The source of the nat firewall control policy.
    sourceType String
    The source type of the nat firewall control policy. Valid values: net, group.
    description String
    The description of the nat firewall control policy.
    destPort String
    The dest port of the nat firewall control policy.
    destPortType String
    The dest port type of the nat firewall control policy. Valid values: port, group.
    endTime Integer
    The end time of the nat firewall control policy. Unix timestamp, fields need to be precise to 23:59:00 of the set date. When the value of repeat_type is one of Once, Daily, Weekly, Monthly, this field is required.
    priority Integer
    The priority of the nat firewall control policy. Default is 0. This field is only effective when creating a control policy.0 means lowest priority, 1 means highest priority. The priority increases in order from 1, with lower priority indicating higher priority.
    repeatDays List<Integer>
    The repeat days of the nat firewall control policy. When the value of repeat_type is one of Weekly, Monthly, this field is required. When the repeat_type is Weekly, the valid value range is 0~6. When the repeat_type is Monthly, the valid value range is 1~31.
    repeatEndTime String
    The repeat end time of the nat firewall control policy. Accurate to the minute, in the format of hh: mm. For example: 12:00. When the value of repeat_type is one of Daily, Weekly, Monthly, this field is required.
    repeatStartTime String
    The repeat start time of the nat firewall control policy. Accurate to the minute, in the format of hh: mm. For example: 12:00. When the value of repeat_type is one of Daily, Weekly, Monthly, this field is required.
    repeatType String
    The repeat type of the nat firewall control policy. Valid values: Permanent, Once, Daily, Weekly, Monthly.
    startTime Integer
    The start time of the nat firewall control policy. Unix timestamp, fields need to be precise to 23:59:00 of the set date. When the value of repeat_type is one of Once, Daily, Weekly, Monthly, this field is required.
    status Boolean
    Whether to enable the nat firewall control policy. Default is false.
    action string
    The action of the nat firewall control policy. Valid values: accept, deny, monitor.
    destination string
    The destination of the nat firewall control policy.
    destinationType string
    The destination type of the nat firewall control policy. Valid values: net, group, location, domain.
    direction string
    The direction of the nat firewall control policy. Valid values: in, out.
    natFirewallId string
    The id of the nat firewall.
    proto string
    The proto of the nat firewall control policy. Valid values: TCP, ICMP, UDP, ANY. When the destination_type is domain, The proto must be TCP.
    source string
    The source of the nat firewall control policy.
    sourceType string
    The source type of the nat firewall control policy. Valid values: net, group.
    description string
    The description of the nat firewall control policy.
    destPort string
    The dest port of the nat firewall control policy.
    destPortType string
    The dest port type of the nat firewall control policy. Valid values: port, group.
    endTime number
    The end time of the nat firewall control policy. Unix timestamp, fields need to be precise to 23:59:00 of the set date. When the value of repeat_type is one of Once, Daily, Weekly, Monthly, this field is required.
    priority number
    The priority of the nat firewall control policy. Default is 0. This field is only effective when creating a control policy.0 means lowest priority, 1 means highest priority. The priority increases in order from 1, with lower priority indicating higher priority.
    repeatDays number[]
    The repeat days of the nat firewall control policy. When the value of repeat_type is one of Weekly, Monthly, this field is required. When the repeat_type is Weekly, the valid value range is 0~6. When the repeat_type is Monthly, the valid value range is 1~31.
    repeatEndTime string
    The repeat end time of the nat firewall control policy. Accurate to the minute, in the format of hh: mm. For example: 12:00. When the value of repeat_type is one of Daily, Weekly, Monthly, this field is required.
    repeatStartTime string
    The repeat start time of the nat firewall control policy. Accurate to the minute, in the format of hh: mm. For example: 12:00. When the value of repeat_type is one of Daily, Weekly, Monthly, this field is required.
    repeatType string
    The repeat type of the nat firewall control policy. Valid values: Permanent, Once, Daily, Weekly, Monthly.
    startTime number
    The start time of the nat firewall control policy. Unix timestamp, fields need to be precise to 23:59:00 of the set date. When the value of repeat_type is one of Once, Daily, Weekly, Monthly, this field is required.
    status boolean
    Whether to enable the nat firewall control policy. Default is false.
    action str
    The action of the nat firewall control policy. Valid values: accept, deny, monitor.
    destination str
    The destination of the nat firewall control policy.
    destination_type str
    The destination type of the nat firewall control policy. Valid values: net, group, location, domain.
    direction str
    The direction of the nat firewall control policy. Valid values: in, out.
    nat_firewall_id str
    The id of the nat firewall.
    proto str
    The proto of the nat firewall control policy. Valid values: TCP, ICMP, UDP, ANY. When the destination_type is domain, The proto must be TCP.
    source str
    The source of the nat firewall control policy.
    source_type str
    The source type of the nat firewall control policy. Valid values: net, group.
    description str
    The description of the nat firewall control policy.
    dest_port str
    The dest port of the nat firewall control policy.
    dest_port_type str
    The dest port type of the nat firewall control policy. Valid values: port, group.
    end_time int
    The end time of the nat firewall control policy. Unix timestamp, fields need to be precise to 23:59:00 of the set date. When the value of repeat_type is one of Once, Daily, Weekly, Monthly, this field is required.
    priority int
    The priority of the nat firewall control policy. Default is 0. This field is only effective when creating a control policy.0 means lowest priority, 1 means highest priority. The priority increases in order from 1, with lower priority indicating higher priority.
    repeat_days Sequence[int]
    The repeat days of the nat firewall control policy. When the value of repeat_type is one of Weekly, Monthly, this field is required. When the repeat_type is Weekly, the valid value range is 0~6. When the repeat_type is Monthly, the valid value range is 1~31.
    repeat_end_time str
    The repeat end time of the nat firewall control policy. Accurate to the minute, in the format of hh: mm. For example: 12:00. When the value of repeat_type is one of Daily, Weekly, Monthly, this field is required.
    repeat_start_time str
    The repeat start time of the nat firewall control policy. Accurate to the minute, in the format of hh: mm. For example: 12:00. When the value of repeat_type is one of Daily, Weekly, Monthly, this field is required.
    repeat_type str
    The repeat type of the nat firewall control policy. Valid values: Permanent, Once, Daily, Weekly, Monthly.
    start_time int
    The start time of the nat firewall control policy. Unix timestamp, fields need to be precise to 23:59:00 of the set date. When the value of repeat_type is one of Once, Daily, Weekly, Monthly, this field is required.
    status bool
    Whether to enable the nat firewall control policy. Default is false.
    action String
    The action of the nat firewall control policy. Valid values: accept, deny, monitor.
    destination String
    The destination of the nat firewall control policy.
    destinationType String
    The destination type of the nat firewall control policy. Valid values: net, group, location, domain.
    direction String
    The direction of the nat firewall control policy. Valid values: in, out.
    natFirewallId String
    The id of the nat firewall.
    proto String
    The proto of the nat firewall control policy. Valid values: TCP, ICMP, UDP, ANY. When the destination_type is domain, The proto must be TCP.
    source String
    The source of the nat firewall control policy.
    sourceType String
    The source type of the nat firewall control policy. Valid values: net, group.
    description String
    The description of the nat firewall control policy.
    destPort String
    The dest port of the nat firewall control policy.
    destPortType String
    The dest port type of the nat firewall control policy. Valid values: port, group.
    endTime Number
    The end time of the nat firewall control policy. Unix timestamp, fields need to be precise to 23:59:00 of the set date. When the value of repeat_type is one of Once, Daily, Weekly, Monthly, this field is required.
    priority Number
    The priority of the nat firewall control policy. Default is 0. This field is only effective when creating a control policy.0 means lowest priority, 1 means highest priority. The priority increases in order from 1, with lower priority indicating higher priority.
    repeatDays List<Number>
    The repeat days of the nat firewall control policy. When the value of repeat_type is one of Weekly, Monthly, this field is required. When the repeat_type is Weekly, the valid value range is 0~6. When the repeat_type is Monthly, the valid value range is 1~31.
    repeatEndTime String
    The repeat end time of the nat firewall control policy. Accurate to the minute, in the format of hh: mm. For example: 12:00. When the value of repeat_type is one of Daily, Weekly, Monthly, this field is required.
    repeatStartTime String
    The repeat start time of the nat firewall control policy. Accurate to the minute, in the format of hh: mm. For example: 12:00. When the value of repeat_type is one of Daily, Weekly, Monthly, this field is required.
    repeatType String
    The repeat type of the nat firewall control policy. Valid values: Permanent, Once, Daily, Weekly, Monthly.
    startTime Number
    The start time of the nat firewall control policy. Unix timestamp, fields need to be precise to 23:59:00 of the set date. When the value of repeat_type is one of Once, Daily, Weekly, Monthly, this field is required.
    status Boolean
    Whether to enable the nat firewall control policy. Default is false.

    Outputs

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

    AccountId string
    The account id of the nat firewall control policy.
    EffectStatus int
    The effect status of the nat firewall control policy. 1: Not yet effective, 2: Issued in progress, 3: Effective.
    HitCnt int
    The hit count of the nat firewall control policy.
    Id string
    The provider-assigned unique ID for this managed resource.
    IsEffected bool
    Whether the nat firewall control policy is effected.
    NatFirewallName string
    The name of the nat firewall.
    Prio int
    The priority of the nat firewall control policy.
    RuleId string
    The rule id of the nat firewall control policy.
    UpdateTime int
    The update time of the nat firewall control policy.
    UseCount int
    The use count of the nat firewall control policy.
    AccountId string
    The account id of the nat firewall control policy.
    EffectStatus int
    The effect status of the nat firewall control policy. 1: Not yet effective, 2: Issued in progress, 3: Effective.
    HitCnt int
    The hit count of the nat firewall control policy.
    Id string
    The provider-assigned unique ID for this managed resource.
    IsEffected bool
    Whether the nat firewall control policy is effected.
    NatFirewallName string
    The name of the nat firewall.
    Prio int
    The priority of the nat firewall control policy.
    RuleId string
    The rule id of the nat firewall control policy.
    UpdateTime int
    The update time of the nat firewall control policy.
    UseCount int
    The use count of the nat firewall control policy.
    accountId String
    The account id of the nat firewall control policy.
    effectStatus Integer
    The effect status of the nat firewall control policy. 1: Not yet effective, 2: Issued in progress, 3: Effective.
    hitCnt Integer
    The hit count of the nat firewall control policy.
    id String
    The provider-assigned unique ID for this managed resource.
    isEffected Boolean
    Whether the nat firewall control policy is effected.
    natFirewallName String
    The name of the nat firewall.
    prio Integer
    The priority of the nat firewall control policy.
    ruleId String
    The rule id of the nat firewall control policy.
    updateTime Integer
    The update time of the nat firewall control policy.
    useCount Integer
    The use count of the nat firewall control policy.
    accountId string
    The account id of the nat firewall control policy.
    effectStatus number
    The effect status of the nat firewall control policy. 1: Not yet effective, 2: Issued in progress, 3: Effective.
    hitCnt number
    The hit count of the nat firewall control policy.
    id string
    The provider-assigned unique ID for this managed resource.
    isEffected boolean
    Whether the nat firewall control policy is effected.
    natFirewallName string
    The name of the nat firewall.
    prio number
    The priority of the nat firewall control policy.
    ruleId string
    The rule id of the nat firewall control policy.
    updateTime number
    The update time of the nat firewall control policy.
    useCount number
    The use count of the nat firewall control policy.
    account_id str
    The account id of the nat firewall control policy.
    effect_status int
    The effect status of the nat firewall control policy. 1: Not yet effective, 2: Issued in progress, 3: Effective.
    hit_cnt int
    The hit count of the nat firewall control policy.
    id str
    The provider-assigned unique ID for this managed resource.
    is_effected bool
    Whether the nat firewall control policy is effected.
    nat_firewall_name str
    The name of the nat firewall.
    prio int
    The priority of the nat firewall control policy.
    rule_id str
    The rule id of the nat firewall control policy.
    update_time int
    The update time of the nat firewall control policy.
    use_count int
    The use count of the nat firewall control policy.
    accountId String
    The account id of the nat firewall control policy.
    effectStatus Number
    The effect status of the nat firewall control policy. 1: Not yet effective, 2: Issued in progress, 3: Effective.
    hitCnt Number
    The hit count of the nat firewall control policy.
    id String
    The provider-assigned unique ID for this managed resource.
    isEffected Boolean
    Whether the nat firewall control policy is effected.
    natFirewallName String
    The name of the nat firewall.
    prio Number
    The priority of the nat firewall control policy.
    ruleId String
    The rule id of the nat firewall control policy.
    updateTime Number
    The update time of the nat firewall control policy.
    useCount Number
    The use count of the nat firewall control policy.

    Look up Existing CfwNatFirewallControlPolicy Resource

    Get an existing CfwNatFirewallControlPolicy 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?: CfwNatFirewallControlPolicyState, opts?: CustomResourceOptions): CfwNatFirewallControlPolicy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            action: Optional[str] = None,
            description: Optional[str] = None,
            dest_port: Optional[str] = None,
            dest_port_type: Optional[str] = None,
            destination: Optional[str] = None,
            destination_type: Optional[str] = None,
            direction: Optional[str] = None,
            effect_status: Optional[int] = None,
            end_time: Optional[int] = None,
            hit_cnt: Optional[int] = None,
            is_effected: Optional[bool] = None,
            nat_firewall_id: Optional[str] = None,
            nat_firewall_name: Optional[str] = None,
            prio: Optional[int] = None,
            priority: Optional[int] = None,
            proto: Optional[str] = None,
            repeat_days: Optional[Sequence[int]] = None,
            repeat_end_time: Optional[str] = None,
            repeat_start_time: Optional[str] = None,
            repeat_type: Optional[str] = None,
            rule_id: Optional[str] = None,
            source: Optional[str] = None,
            source_type: Optional[str] = None,
            start_time: Optional[int] = None,
            status: Optional[bool] = None,
            update_time: Optional[int] = None,
            use_count: Optional[int] = None) -> CfwNatFirewallControlPolicy
    func GetCfwNatFirewallControlPolicy(ctx *Context, name string, id IDInput, state *CfwNatFirewallControlPolicyState, opts ...ResourceOption) (*CfwNatFirewallControlPolicy, error)
    public static CfwNatFirewallControlPolicy Get(string name, Input<string> id, CfwNatFirewallControlPolicyState? state, CustomResourceOptions? opts = null)
    public static CfwNatFirewallControlPolicy get(String name, Output<String> id, CfwNatFirewallControlPolicyState state, CustomResourceOptions options)
    resources:  _:    type: volcengine:cloud_firewall:CfwNatFirewallControlPolicy    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:
    AccountId string
    The account id of the nat firewall control policy.
    Action string
    The action of the nat firewall control policy. Valid values: accept, deny, monitor.
    Description string
    The description of the nat firewall control policy.
    DestPort string
    The dest port of the nat firewall control policy.
    DestPortType string
    The dest port type of the nat firewall control policy. Valid values: port, group.
    Destination string
    The destination of the nat firewall control policy.
    DestinationType string
    The destination type of the nat firewall control policy. Valid values: net, group, location, domain.
    Direction string
    The direction of the nat firewall control policy. Valid values: in, out.
    EffectStatus int
    The effect status of the nat firewall control policy. 1: Not yet effective, 2: Issued in progress, 3: Effective.
    EndTime int
    The end time of the nat firewall control policy. Unix timestamp, fields need to be precise to 23:59:00 of the set date. When the value of repeat_type is one of Once, Daily, Weekly, Monthly, this field is required.
    HitCnt int
    The hit count of the nat firewall control policy.
    IsEffected bool
    Whether the nat firewall control policy is effected.
    NatFirewallId string
    The id of the nat firewall.
    NatFirewallName string
    The name of the nat firewall.
    Prio int
    The priority of the nat firewall control policy.
    Priority int
    The priority of the nat firewall control policy. Default is 0. This field is only effective when creating a control policy.0 means lowest priority, 1 means highest priority. The priority increases in order from 1, with lower priority indicating higher priority.
    Proto string
    The proto of the nat firewall control policy. Valid values: TCP, ICMP, UDP, ANY. When the destination_type is domain, The proto must be TCP.
    RepeatDays List<int>
    The repeat days of the nat firewall control policy. When the value of repeat_type is one of Weekly, Monthly, this field is required. When the repeat_type is Weekly, the valid value range is 0~6. When the repeat_type is Monthly, the valid value range is 1~31.
    RepeatEndTime string
    The repeat end time of the nat firewall control policy. Accurate to the minute, in the format of hh: mm. For example: 12:00. When the value of repeat_type is one of Daily, Weekly, Monthly, this field is required.
    RepeatStartTime string
    The repeat start time of the nat firewall control policy. Accurate to the minute, in the format of hh: mm. For example: 12:00. When the value of repeat_type is one of Daily, Weekly, Monthly, this field is required.
    RepeatType string
    The repeat type of the nat firewall control policy. Valid values: Permanent, Once, Daily, Weekly, Monthly.
    RuleId string
    The rule id of the nat firewall control policy.
    Source string
    The source of the nat firewall control policy.
    SourceType string
    The source type of the nat firewall control policy. Valid values: net, group.
    StartTime int
    The start time of the nat firewall control policy. Unix timestamp, fields need to be precise to 23:59:00 of the set date. When the value of repeat_type is one of Once, Daily, Weekly, Monthly, this field is required.
    Status bool
    Whether to enable the nat firewall control policy. Default is false.
    UpdateTime int
    The update time of the nat firewall control policy.
    UseCount int
    The use count of the nat firewall control policy.
    AccountId string
    The account id of the nat firewall control policy.
    Action string
    The action of the nat firewall control policy. Valid values: accept, deny, monitor.
    Description string
    The description of the nat firewall control policy.
    DestPort string
    The dest port of the nat firewall control policy.
    DestPortType string
    The dest port type of the nat firewall control policy. Valid values: port, group.
    Destination string
    The destination of the nat firewall control policy.
    DestinationType string
    The destination type of the nat firewall control policy. Valid values: net, group, location, domain.
    Direction string
    The direction of the nat firewall control policy. Valid values: in, out.
    EffectStatus int
    The effect status of the nat firewall control policy. 1: Not yet effective, 2: Issued in progress, 3: Effective.
    EndTime int
    The end time of the nat firewall control policy. Unix timestamp, fields need to be precise to 23:59:00 of the set date. When the value of repeat_type is one of Once, Daily, Weekly, Monthly, this field is required.
    HitCnt int
    The hit count of the nat firewall control policy.
    IsEffected bool
    Whether the nat firewall control policy is effected.
    NatFirewallId string
    The id of the nat firewall.
    NatFirewallName string
    The name of the nat firewall.
    Prio int
    The priority of the nat firewall control policy.
    Priority int
    The priority of the nat firewall control policy. Default is 0. This field is only effective when creating a control policy.0 means lowest priority, 1 means highest priority. The priority increases in order from 1, with lower priority indicating higher priority.
    Proto string
    The proto of the nat firewall control policy. Valid values: TCP, ICMP, UDP, ANY. When the destination_type is domain, The proto must be TCP.
    RepeatDays []int
    The repeat days of the nat firewall control policy. When the value of repeat_type is one of Weekly, Monthly, this field is required. When the repeat_type is Weekly, the valid value range is 0~6. When the repeat_type is Monthly, the valid value range is 1~31.
    RepeatEndTime string
    The repeat end time of the nat firewall control policy. Accurate to the minute, in the format of hh: mm. For example: 12:00. When the value of repeat_type is one of Daily, Weekly, Monthly, this field is required.
    RepeatStartTime string
    The repeat start time of the nat firewall control policy. Accurate to the minute, in the format of hh: mm. For example: 12:00. When the value of repeat_type is one of Daily, Weekly, Monthly, this field is required.
    RepeatType string
    The repeat type of the nat firewall control policy. Valid values: Permanent, Once, Daily, Weekly, Monthly.
    RuleId string
    The rule id of the nat firewall control policy.
    Source string
    The source of the nat firewall control policy.
    SourceType string
    The source type of the nat firewall control policy. Valid values: net, group.
    StartTime int
    The start time of the nat firewall control policy. Unix timestamp, fields need to be precise to 23:59:00 of the set date. When the value of repeat_type is one of Once, Daily, Weekly, Monthly, this field is required.
    Status bool
    Whether to enable the nat firewall control policy. Default is false.
    UpdateTime int
    The update time of the nat firewall control policy.
    UseCount int
    The use count of the nat firewall control policy.
    accountId String
    The account id of the nat firewall control policy.
    action String
    The action of the nat firewall control policy. Valid values: accept, deny, monitor.
    description String
    The description of the nat firewall control policy.
    destPort String
    The dest port of the nat firewall control policy.
    destPortType String
    The dest port type of the nat firewall control policy. Valid values: port, group.
    destination String
    The destination of the nat firewall control policy.
    destinationType String
    The destination type of the nat firewall control policy. Valid values: net, group, location, domain.
    direction String
    The direction of the nat firewall control policy. Valid values: in, out.
    effectStatus Integer
    The effect status of the nat firewall control policy. 1: Not yet effective, 2: Issued in progress, 3: Effective.
    endTime Integer
    The end time of the nat firewall control policy. Unix timestamp, fields need to be precise to 23:59:00 of the set date. When the value of repeat_type is one of Once, Daily, Weekly, Monthly, this field is required.
    hitCnt Integer
    The hit count of the nat firewall control policy.
    isEffected Boolean
    Whether the nat firewall control policy is effected.
    natFirewallId String
    The id of the nat firewall.
    natFirewallName String
    The name of the nat firewall.
    prio Integer
    The priority of the nat firewall control policy.
    priority Integer
    The priority of the nat firewall control policy. Default is 0. This field is only effective when creating a control policy.0 means lowest priority, 1 means highest priority. The priority increases in order from 1, with lower priority indicating higher priority.
    proto String
    The proto of the nat firewall control policy. Valid values: TCP, ICMP, UDP, ANY. When the destination_type is domain, The proto must be TCP.
    repeatDays List<Integer>
    The repeat days of the nat firewall control policy. When the value of repeat_type is one of Weekly, Monthly, this field is required. When the repeat_type is Weekly, the valid value range is 0~6. When the repeat_type is Monthly, the valid value range is 1~31.
    repeatEndTime String
    The repeat end time of the nat firewall control policy. Accurate to the minute, in the format of hh: mm. For example: 12:00. When the value of repeat_type is one of Daily, Weekly, Monthly, this field is required.
    repeatStartTime String
    The repeat start time of the nat firewall control policy. Accurate to the minute, in the format of hh: mm. For example: 12:00. When the value of repeat_type is one of Daily, Weekly, Monthly, this field is required.
    repeatType String
    The repeat type of the nat firewall control policy. Valid values: Permanent, Once, Daily, Weekly, Monthly.
    ruleId String
    The rule id of the nat firewall control policy.
    source String
    The source of the nat firewall control policy.
    sourceType String
    The source type of the nat firewall control policy. Valid values: net, group.
    startTime Integer
    The start time of the nat firewall control policy. Unix timestamp, fields need to be precise to 23:59:00 of the set date. When the value of repeat_type is one of Once, Daily, Weekly, Monthly, this field is required.
    status Boolean
    Whether to enable the nat firewall control policy. Default is false.
    updateTime Integer
    The update time of the nat firewall control policy.
    useCount Integer
    The use count of the nat firewall control policy.
    accountId string
    The account id of the nat firewall control policy.
    action string
    The action of the nat firewall control policy. Valid values: accept, deny, monitor.
    description string
    The description of the nat firewall control policy.
    destPort string
    The dest port of the nat firewall control policy.
    destPortType string
    The dest port type of the nat firewall control policy. Valid values: port, group.
    destination string
    The destination of the nat firewall control policy.
    destinationType string
    The destination type of the nat firewall control policy. Valid values: net, group, location, domain.
    direction string
    The direction of the nat firewall control policy. Valid values: in, out.
    effectStatus number
    The effect status of the nat firewall control policy. 1: Not yet effective, 2: Issued in progress, 3: Effective.
    endTime number
    The end time of the nat firewall control policy. Unix timestamp, fields need to be precise to 23:59:00 of the set date. When the value of repeat_type is one of Once, Daily, Weekly, Monthly, this field is required.
    hitCnt number
    The hit count of the nat firewall control policy.
    isEffected boolean
    Whether the nat firewall control policy is effected.
    natFirewallId string
    The id of the nat firewall.
    natFirewallName string
    The name of the nat firewall.
    prio number
    The priority of the nat firewall control policy.
    priority number
    The priority of the nat firewall control policy. Default is 0. This field is only effective when creating a control policy.0 means lowest priority, 1 means highest priority. The priority increases in order from 1, with lower priority indicating higher priority.
    proto string
    The proto of the nat firewall control policy. Valid values: TCP, ICMP, UDP, ANY. When the destination_type is domain, The proto must be TCP.
    repeatDays number[]
    The repeat days of the nat firewall control policy. When the value of repeat_type is one of Weekly, Monthly, this field is required. When the repeat_type is Weekly, the valid value range is 0~6. When the repeat_type is Monthly, the valid value range is 1~31.
    repeatEndTime string
    The repeat end time of the nat firewall control policy. Accurate to the minute, in the format of hh: mm. For example: 12:00. When the value of repeat_type is one of Daily, Weekly, Monthly, this field is required.
    repeatStartTime string
    The repeat start time of the nat firewall control policy. Accurate to the minute, in the format of hh: mm. For example: 12:00. When the value of repeat_type is one of Daily, Weekly, Monthly, this field is required.
    repeatType string
    The repeat type of the nat firewall control policy. Valid values: Permanent, Once, Daily, Weekly, Monthly.
    ruleId string
    The rule id of the nat firewall control policy.
    source string
    The source of the nat firewall control policy.
    sourceType string
    The source type of the nat firewall control policy. Valid values: net, group.
    startTime number
    The start time of the nat firewall control policy. Unix timestamp, fields need to be precise to 23:59:00 of the set date. When the value of repeat_type is one of Once, Daily, Weekly, Monthly, this field is required.
    status boolean
    Whether to enable the nat firewall control policy. Default is false.
    updateTime number
    The update time of the nat firewall control policy.
    useCount number
    The use count of the nat firewall control policy.
    account_id str
    The account id of the nat firewall control policy.
    action str
    The action of the nat firewall control policy. Valid values: accept, deny, monitor.
    description str
    The description of the nat firewall control policy.
    dest_port str
    The dest port of the nat firewall control policy.
    dest_port_type str
    The dest port type of the nat firewall control policy. Valid values: port, group.
    destination str
    The destination of the nat firewall control policy.
    destination_type str
    The destination type of the nat firewall control policy. Valid values: net, group, location, domain.
    direction str
    The direction of the nat firewall control policy. Valid values: in, out.
    effect_status int
    The effect status of the nat firewall control policy. 1: Not yet effective, 2: Issued in progress, 3: Effective.
    end_time int
    The end time of the nat firewall control policy. Unix timestamp, fields need to be precise to 23:59:00 of the set date. When the value of repeat_type is one of Once, Daily, Weekly, Monthly, this field is required.
    hit_cnt int
    The hit count of the nat firewall control policy.
    is_effected bool
    Whether the nat firewall control policy is effected.
    nat_firewall_id str
    The id of the nat firewall.
    nat_firewall_name str
    The name of the nat firewall.
    prio int
    The priority of the nat firewall control policy.
    priority int
    The priority of the nat firewall control policy. Default is 0. This field is only effective when creating a control policy.0 means lowest priority, 1 means highest priority. The priority increases in order from 1, with lower priority indicating higher priority.
    proto str
    The proto of the nat firewall control policy. Valid values: TCP, ICMP, UDP, ANY. When the destination_type is domain, The proto must be TCP.
    repeat_days Sequence[int]
    The repeat days of the nat firewall control policy. When the value of repeat_type is one of Weekly, Monthly, this field is required. When the repeat_type is Weekly, the valid value range is 0~6. When the repeat_type is Monthly, the valid value range is 1~31.
    repeat_end_time str
    The repeat end time of the nat firewall control policy. Accurate to the minute, in the format of hh: mm. For example: 12:00. When the value of repeat_type is one of Daily, Weekly, Monthly, this field is required.
    repeat_start_time str
    The repeat start time of the nat firewall control policy. Accurate to the minute, in the format of hh: mm. For example: 12:00. When the value of repeat_type is one of Daily, Weekly, Monthly, this field is required.
    repeat_type str
    The repeat type of the nat firewall control policy. Valid values: Permanent, Once, Daily, Weekly, Monthly.
    rule_id str
    The rule id of the nat firewall control policy.
    source str
    The source of the nat firewall control policy.
    source_type str
    The source type of the nat firewall control policy. Valid values: net, group.
    start_time int
    The start time of the nat firewall control policy. Unix timestamp, fields need to be precise to 23:59:00 of the set date. When the value of repeat_type is one of Once, Daily, Weekly, Monthly, this field is required.
    status bool
    Whether to enable the nat firewall control policy. Default is false.
    update_time int
    The update time of the nat firewall control policy.
    use_count int
    The use count of the nat firewall control policy.
    accountId String
    The account id of the nat firewall control policy.
    action String
    The action of the nat firewall control policy. Valid values: accept, deny, monitor.
    description String
    The description of the nat firewall control policy.
    destPort String
    The dest port of the nat firewall control policy.
    destPortType String
    The dest port type of the nat firewall control policy. Valid values: port, group.
    destination String
    The destination of the nat firewall control policy.
    destinationType String
    The destination type of the nat firewall control policy. Valid values: net, group, location, domain.
    direction String
    The direction of the nat firewall control policy. Valid values: in, out.
    effectStatus Number
    The effect status of the nat firewall control policy. 1: Not yet effective, 2: Issued in progress, 3: Effective.
    endTime Number
    The end time of the nat firewall control policy. Unix timestamp, fields need to be precise to 23:59:00 of the set date. When the value of repeat_type is one of Once, Daily, Weekly, Monthly, this field is required.
    hitCnt Number
    The hit count of the nat firewall control policy.
    isEffected Boolean
    Whether the nat firewall control policy is effected.
    natFirewallId String
    The id of the nat firewall.
    natFirewallName String
    The name of the nat firewall.
    prio Number
    The priority of the nat firewall control policy.
    priority Number
    The priority of the nat firewall control policy. Default is 0. This field is only effective when creating a control policy.0 means lowest priority, 1 means highest priority. The priority increases in order from 1, with lower priority indicating higher priority.
    proto String
    The proto of the nat firewall control policy. Valid values: TCP, ICMP, UDP, ANY. When the destination_type is domain, The proto must be TCP.
    repeatDays List<Number>
    The repeat days of the nat firewall control policy. When the value of repeat_type is one of Weekly, Monthly, this field is required. When the repeat_type is Weekly, the valid value range is 0~6. When the repeat_type is Monthly, the valid value range is 1~31.
    repeatEndTime String
    The repeat end time of the nat firewall control policy. Accurate to the minute, in the format of hh: mm. For example: 12:00. When the value of repeat_type is one of Daily, Weekly, Monthly, this field is required.
    repeatStartTime String
    The repeat start time of the nat firewall control policy. Accurate to the minute, in the format of hh: mm. For example: 12:00. When the value of repeat_type is one of Daily, Weekly, Monthly, this field is required.
    repeatType String
    The repeat type of the nat firewall control policy. Valid values: Permanent, Once, Daily, Weekly, Monthly.
    ruleId String
    The rule id of the nat firewall control policy.
    source String
    The source of the nat firewall control policy.
    sourceType String
    The source type of the nat firewall control policy. Valid values: net, group.
    startTime Number
    The start time of the nat firewall control policy. Unix timestamp, fields need to be precise to 23:59:00 of the set date. When the value of repeat_type is one of Once, Daily, Weekly, Monthly, this field is required.
    status Boolean
    Whether to enable the nat firewall control policy. Default is false.
    updateTime Number
    The update time of the nat firewall control policy.
    useCount Number
    The use count of the nat firewall control policy.

    Import

    NatFirewallControlPolicy can be imported using the direction_nat_firewall_id:rule_id, e.g.

    $ pulumi import volcengine:cloud_firewall/cfwNatFirewallControlPolicy:CfwNatFirewallControlPolicy default resource_id
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.29 published on Tuesday, Apr 29, 2025 by Volcengine