1. Packages
  2. Packages
  3. Bytepluscc Provider
  4. API Docs
  5. fwcenter
  6. ControlPolicy
Viewing docs for bytepluscc v0.0.40
published on Monday, Jul 13, 2026 by Byteplus
bytepluscc logo
Viewing docs for bytepluscc v0.0.40
published on Monday, Jul 13, 2026 by Byteplus

    Internet boundary firewall access control policy

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as bytepluscc from "@byteplus/pulumi-bytepluscc";
    
    const example = new bytepluscc.fwcenter.ControlPolicy("Example", {
        direction: "in",
        action: "accept",
        source: "0.0.0.0/0",
        sourceType: "net",
        destination: "0.0.0.0/0",
        destinationType: "net",
        proto: "TCP",
        destPort: "60000",
        destPortType: "port",
        description: "this is a test",
        ipType: "v4",
        prio: 1,
        status: true,
        repeatType: "Weekly",
        repeatDays: [
            2,
            3,
        ],
        repeatStartTime: "02:00",
        repeatEndTime: "04:00",
        startTime: 1782230400,
        endTime: 1782489540,
    });
    
    import pulumi
    import pulumi_bytepluscc as bytepluscc
    
    example = bytepluscc.fwcenter.ControlPolicy("Example",
        direction="in",
        action="accept",
        source="0.0.0.0/0",
        source_type="net",
        destination="0.0.0.0/0",
        destination_type="net",
        proto="TCP",
        dest_port="60000",
        dest_port_type="port",
        description="this is a test",
        ip_type="v4",
        prio=1,
        status=True,
        repeat_type="Weekly",
        repeat_days=[
            2,
            3,
        ],
        repeat_start_time="02:00",
        repeat_end_time="04:00",
        start_time=1782230400,
        end_time=1782489540)
    
    package main
    
    import (
    	"github.com/byteplus-sdk/pulumi-bytepluscc/sdk/go/bytepluscc/fwcenter"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := fwcenter.NewControlPolicy(ctx, "Example", &fwcenter.ControlPolicyArgs{
    			Direction:       pulumi.String("in"),
    			Action:          pulumi.String("accept"),
    			Source:          pulumi.String("0.0.0.0/0"),
    			SourceType:      pulumi.String("net"),
    			Destination:     pulumi.String("0.0.0.0/0"),
    			DestinationType: pulumi.String("net"),
    			Proto:           pulumi.String("TCP"),
    			DestPort:        pulumi.String("60000"),
    			DestPortType:    pulumi.String("port"),
    			Description:     pulumi.String("this is a test"),
    			IpType:          pulumi.String("v4"),
    			Prio:            pulumi.Int(1),
    			Status:          pulumi.Bool(true),
    			RepeatType:      pulumi.String("Weekly"),
    			RepeatDays: pulumi.IntArray{
    				pulumi.Int(2),
    				pulumi.Int(3),
    			},
    			RepeatStartTime: pulumi.String("02:00"),
    			RepeatEndTime:   pulumi.String("04:00"),
    			StartTime:       pulumi.Int(1782230400),
    			EndTime:         pulumi.Int(1782489540),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Bytepluscc = Byteplus.Pulumi.Bytepluscc;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Bytepluscc.Fwcenter.ControlPolicy("Example", new()
        {
            Direction = "in",
            Action = "accept",
            Source = "0.0.0.0/0",
            SourceType = "net",
            Destination = "0.0.0.0/0",
            DestinationType = "net",
            Proto = "TCP",
            DestPort = "60000",
            DestPortType = "port",
            Description = "this is a test",
            IpType = "v4",
            Prio = 1,
            Status = true,
            RepeatType = "Weekly",
            RepeatDays = new[]
            {
                2,
                3,
            },
            RepeatStartTime = "02:00",
            RepeatEndTime = "04:00",
            StartTime = 1782230400,
            EndTime = 1782489540,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.byteplus.bytepluscc.fwcenter.ControlPolicy;
    import com.byteplus.bytepluscc.fwcenter.ControlPolicyArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 ControlPolicy("example", ControlPolicyArgs.builder()
                .direction("in")
                .action("accept")
                .source("0.0.0.0/0")
                .sourceType("net")
                .destination("0.0.0.0/0")
                .destinationType("net")
                .proto("TCP")
                .destPort("60000")
                .destPortType("port")
                .description("this is a test")
                .ipType("v4")
                .prio(1)
                .status(true)
                .repeatType("Weekly")
                .repeatDays(            
                    2,
                    3)
                .repeatStartTime("02:00")
                .repeatEndTime("04:00")
                .startTime(1782230400)
                .endTime(1782489540)
                .build());
    
        }
    }
    
    resources:
      example:
        type: bytepluscc:fwcenter:ControlPolicy
        name: Example
        properties:
          direction: in
          action: accept
          source: 0.0.0.0/0
          sourceType: net
          destination: 0.0.0.0/0
          destinationType: net
          proto: TCP
          destPort: '60000'
          destPortType: port
          description: this is a test
          ipType: v4
          prio: 1
          status: true
          repeatType: Weekly
          repeatDays:
            - 2
            - 3
          repeatStartTime: 02:00
          repeatEndTime: 04:00
          startTime: 1.7822304e+09
          endTime: 1.78248954e+09
    
    pulumi {
      required_providers {
        bytepluscc = {
          source = "pulumi/bytepluscc"
        }
      }
    }
    
    resource "bytepluscc_fwcenter_controlpolicy" "Example" {
      direction         = "in"
      action            = "accept"
      source            = "0.0.0.0/0"
      source_type       = "net"
      destination       = "0.0.0.0/0"
      destination_type  = "net"
      proto             = "TCP"
      dest_port         = "60000"
      dest_port_type    = "port"
      description       = "this is a test"
      ip_type           = "v4"
      prio              = 1
      status            = true
      repeat_type       = "Weekly"
      repeat_days       = [2, 3]
      repeat_start_time = "02:00"
      repeat_end_time   = "04:00"
      start_time        = 1782230400
      end_time          = 1782489540
    }
    

    Create ControlPolicy Resource

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

    Constructor syntax

    new ControlPolicy(name: string, args: ControlPolicyArgs, opts?: CustomResourceOptions);
    @overload
    def ControlPolicy(resource_name: str,
                      args: ControlPolicyArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def ControlPolicy(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      action: Optional[str] = None,
                      source_type: Optional[str] = None,
                      source: Optional[str] = None,
                      proto: Optional[str] = None,
                      destination: Optional[str] = None,
                      destination_type: Optional[str] = None,
                      direction: Optional[str] = None,
                      prio: Optional[int] = None,
                      internet_firewall_id: Optional[str] = None,
                      ip_type: 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,
                      dest_port: Optional[str] = None,
                      description: Optional[str] = None,
                      start_time: Optional[int] = None,
                      status: Optional[bool] = None)
    func NewControlPolicy(ctx *Context, name string, args ControlPolicyArgs, opts ...ResourceOption) (*ControlPolicy, error)
    public ControlPolicy(string name, ControlPolicyArgs args, CustomResourceOptions? opts = null)
    public ControlPolicy(String name, ControlPolicyArgs args)
    public ControlPolicy(String name, ControlPolicyArgs args, CustomResourceOptions options)
    
    type: bytepluscc:fwcenter:ControlPolicy
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "bytepluscc_fwcenter_controlpolicy" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args ControlPolicyArgs
    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 ControlPolicyArgs
    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 ControlPolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ControlPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ControlPolicyArgs
    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 controlPolicyResource = new Bytepluscc.Fwcenter.ControlPolicy("controlPolicyResource", new()
    {
        Action = "string",
        SourceType = "string",
        Source = "string",
        Proto = "string",
        Destination = "string",
        DestinationType = "string",
        Direction = "string",
        Prio = 0,
        InternetFirewallId = "string",
        IpType = "string",
        EndTime = 0,
        DestPortType = "string",
        RepeatDays = new[]
        {
            0,
        },
        RepeatEndTime = "string",
        RepeatStartTime = "string",
        RepeatType = "string",
        DestPort = "string",
        Description = "string",
        StartTime = 0,
        Status = false,
    });
    
    example, err := fwcenter.NewControlPolicy(ctx, "controlPolicyResource", &fwcenter.ControlPolicyArgs{
    	Action:             pulumi.String("string"),
    	SourceType:         pulumi.String("string"),
    	Source:             pulumi.String("string"),
    	Proto:              pulumi.String("string"),
    	Destination:        pulumi.String("string"),
    	DestinationType:    pulumi.String("string"),
    	Direction:          pulumi.String("string"),
    	Prio:               pulumi.Int(0),
    	InternetFirewallId: pulumi.String("string"),
    	IpType:             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"),
    	DestPort:        pulumi.String("string"),
    	Description:     pulumi.String("string"),
    	StartTime:       pulumi.Int(0),
    	Status:          pulumi.Bool(false),
    })
    
    resource "bytepluscc_fwcenter_controlpolicy" "controlPolicyResource" {
      action               = "string"
      source_type          = "string"
      source               = "string"
      proto                = "string"
      destination          = "string"
      destination_type     = "string"
      direction            = "string"
      prio                 = 0
      internet_firewall_id = "string"
      ip_type              = "string"
      end_time             = 0
      dest_port_type       = "string"
      repeat_days          = [0]
      repeat_end_time      = "string"
      repeat_start_time    = "string"
      repeat_type          = "string"
      dest_port            = "string"
      description          = "string"
      start_time           = 0
      status               = false
    }
    
    var controlPolicyResource = new ControlPolicy("controlPolicyResource", ControlPolicyArgs.builder()
        .action("string")
        .sourceType("string")
        .source("string")
        .proto("string")
        .destination("string")
        .destinationType("string")
        .direction("string")
        .prio(0)
        .internetFirewallId("string")
        .ipType("string")
        .endTime(0)
        .destPortType("string")
        .repeatDays(0)
        .repeatEndTime("string")
        .repeatStartTime("string")
        .repeatType("string")
        .destPort("string")
        .description("string")
        .startTime(0)
        .status(false)
        .build());
    
    control_policy_resource = bytepluscc.fwcenter.ControlPolicy("controlPolicyResource",
        action="string",
        source_type="string",
        source="string",
        proto="string",
        destination="string",
        destination_type="string",
        direction="string",
        prio=0,
        internet_firewall_id="string",
        ip_type="string",
        end_time=0,
        dest_port_type="string",
        repeat_days=[0],
        repeat_end_time="string",
        repeat_start_time="string",
        repeat_type="string",
        dest_port="string",
        description="string",
        start_time=0,
        status=False)
    
    const controlPolicyResource = new bytepluscc.fwcenter.ControlPolicy("controlPolicyResource", {
        action: "string",
        sourceType: "string",
        source: "string",
        proto: "string",
        destination: "string",
        destinationType: "string",
        direction: "string",
        prio: 0,
        internetFirewallId: "string",
        ipType: "string",
        endTime: 0,
        destPortType: "string",
        repeatDays: [0],
        repeatEndTime: "string",
        repeatStartTime: "string",
        repeatType: "string",
        destPort: "string",
        description: "string",
        startTime: 0,
        status: false,
    });
    
    type: bytepluscc:fwcenter:ControlPolicy
    properties:
        action: string
        description: string
        destPort: string
        destPortType: string
        destination: string
        destinationType: string
        direction: string
        endTime: 0
        internetFirewallId: string
        ipType: string
        prio: 0
        proto: string
        repeatDays:
            - 0
        repeatEndTime: string
        repeatStartTime: string
        repeatType: string
        source: string
        sourceType: string
        startTime: 0
        status: false
    

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

    Action string
    Action of the access control policy. accept: allow; deny: block; monitor: observe.
    Destination string
    Destination address of the access control policy. When DestinationType is net, use CIDR; when group, use address book UUID list; when location, use region code; when domain, use domain name.
    DestinationType string
    Destination address type. net: destination subnet (CIDR); group: destination address book; location: destination region; domain: destination domain name
    Direction string
    Direction of the access control policy, indicating the direction of traffic transmission. in: inbound direction; out: outbound direction.
    Proto string
    Protocol type. ICMP, TCP, UDP, ANY (any protocol). When DestinationType is domain, protocol type must be TCP.
    Source string
    Source address. When SourceType is net, use CIDR; when group, use address book UUID list; when location, use region code.
    SourceType string
    Source address type. net: subnet (CIDR); group: address book; location: region
    Description string
    Policy description.
    DestPort string
    Destination port. Format is a single port or port range. If protocol type is ICMP/ALL, value is empty; if DestPortType is group, use port address book UUID list; if DestPortType is port, use port range.
    DestPortType string
    Destination port type. port: port; group: port address book.
    EndTime int
    Policy expiration date, Unix timestamp. If RepeatType is Permanent (always active), this field is not required. If RepeatType is Once (active for a single period) or Daily, Weekly, Monthly (repeatedly active), this field must be filled in.
    InternetFirewallId string
    Internet border firewall instance ID.
    IpType string
    IP version. v4: IPv4; v6: IPv6
    Prio int
    Policy priority. The lower the value, the higher the priority. 0: lowest priority; 1: highest priority; other values: other priorities. Default value is 0 (lowest priority). When modifying, this parameter represents the policy's position in the policy list (cannot be set to 0).
    RepeatDays List<int>
    Recurring effective period. Required when RepeatType is Weekly or Monthly. Weekly value range: [0,6]; Monthly value range: [1,31]
    RepeatEndTime string
    Repeat expiration time. Accurate to the minute, format is hh:mm.
    RepeatStartTime string
    Repeat start time. Accurate to the minute, format is hh:mm. Required when RepeatType is Daily, Weekly, or Monthly (repeatedly active).
    RepeatType string
    Repeat type. Permanent: always active; Once: active once; Daily: repeats daily; Weekly: repeats weekly; Monthly: repeats monthly.
    StartTime int
    Policy effective start date, Unix timestamp. Not required when RepeatType is Permanent (always effective). Required when RepeatType is Once (single period effective) or Daily, Weekly, Monthly (recurring effective)
    Status bool
    Policy enable status. true: Enabled; false: Disabled
    Action string
    Action of the access control policy. accept: allow; deny: block; monitor: observe.
    Destination string
    Destination address of the access control policy. When DestinationType is net, use CIDR; when group, use address book UUID list; when location, use region code; when domain, use domain name.
    DestinationType string
    Destination address type. net: destination subnet (CIDR); group: destination address book; location: destination region; domain: destination domain name
    Direction string
    Direction of the access control policy, indicating the direction of traffic transmission. in: inbound direction; out: outbound direction.
    Proto string
    Protocol type. ICMP, TCP, UDP, ANY (any protocol). When DestinationType is domain, protocol type must be TCP.
    Source string
    Source address. When SourceType is net, use CIDR; when group, use address book UUID list; when location, use region code.
    SourceType string
    Source address type. net: subnet (CIDR); group: address book; location: region
    Description string
    Policy description.
    DestPort string
    Destination port. Format is a single port or port range. If protocol type is ICMP/ALL, value is empty; if DestPortType is group, use port address book UUID list; if DestPortType is port, use port range.
    DestPortType string
    Destination port type. port: port; group: port address book.
    EndTime int
    Policy expiration date, Unix timestamp. If RepeatType is Permanent (always active), this field is not required. If RepeatType is Once (active for a single period) or Daily, Weekly, Monthly (repeatedly active), this field must be filled in.
    InternetFirewallId string
    Internet border firewall instance ID.
    IpType string
    IP version. v4: IPv4; v6: IPv6
    Prio int
    Policy priority. The lower the value, the higher the priority. 0: lowest priority; 1: highest priority; other values: other priorities. Default value is 0 (lowest priority). When modifying, this parameter represents the policy's position in the policy list (cannot be set to 0).
    RepeatDays []int
    Recurring effective period. Required when RepeatType is Weekly or Monthly. Weekly value range: [0,6]; Monthly value range: [1,31]
    RepeatEndTime string
    Repeat expiration time. Accurate to the minute, format is hh:mm.
    RepeatStartTime string
    Repeat start time. Accurate to the minute, format is hh:mm. Required when RepeatType is Daily, Weekly, or Monthly (repeatedly active).
    RepeatType string
    Repeat type. Permanent: always active; Once: active once; Daily: repeats daily; Weekly: repeats weekly; Monthly: repeats monthly.
    StartTime int
    Policy effective start date, Unix timestamp. Not required when RepeatType is Permanent (always effective). Required when RepeatType is Once (single period effective) or Daily, Weekly, Monthly (recurring effective)
    Status bool
    Policy enable status. true: Enabled; false: Disabled
    action string
    Action of the access control policy. accept: allow; deny: block; monitor: observe.
    destination string
    Destination address of the access control policy. When DestinationType is net, use CIDR; when group, use address book UUID list; when location, use region code; when domain, use domain name.
    destination_type string
    Destination address type. net: destination subnet (CIDR); group: destination address book; location: destination region; domain: destination domain name
    direction string
    Direction of the access control policy, indicating the direction of traffic transmission. in: inbound direction; out: outbound direction.
    proto string
    Protocol type. ICMP, TCP, UDP, ANY (any protocol). When DestinationType is domain, protocol type must be TCP.
    source string
    Source address. When SourceType is net, use CIDR; when group, use address book UUID list; when location, use region code.
    source_type string
    Source address type. net: subnet (CIDR); group: address book; location: region
    description string
    Policy description.
    dest_port string
    Destination port. Format is a single port or port range. If protocol type is ICMP/ALL, value is empty; if DestPortType is group, use port address book UUID list; if DestPortType is port, use port range.
    dest_port_type string
    Destination port type. port: port; group: port address book.
    end_time number
    Policy expiration date, Unix timestamp. If RepeatType is Permanent (always active), this field is not required. If RepeatType is Once (active for a single period) or Daily, Weekly, Monthly (repeatedly active), this field must be filled in.
    internet_firewall_id string
    Internet border firewall instance ID.
    ip_type string
    IP version. v4: IPv4; v6: IPv6
    prio number
    Policy priority. The lower the value, the higher the priority. 0: lowest priority; 1: highest priority; other values: other priorities. Default value is 0 (lowest priority). When modifying, this parameter represents the policy's position in the policy list (cannot be set to 0).
    repeat_days list(number)
    Recurring effective period. Required when RepeatType is Weekly or Monthly. Weekly value range: [0,6]; Monthly value range: [1,31]
    repeat_end_time string
    Repeat expiration time. Accurate to the minute, format is hh:mm.
    repeat_start_time string
    Repeat start time. Accurate to the minute, format is hh:mm. Required when RepeatType is Daily, Weekly, or Monthly (repeatedly active).
    repeat_type string
    Repeat type. Permanent: always active; Once: active once; Daily: repeats daily; Weekly: repeats weekly; Monthly: repeats monthly.
    start_time number
    Policy effective start date, Unix timestamp. Not required when RepeatType is Permanent (always effective). Required when RepeatType is Once (single period effective) or Daily, Weekly, Monthly (recurring effective)
    status bool
    Policy enable status. true: Enabled; false: Disabled
    action String
    Action of the access control policy. accept: allow; deny: block; monitor: observe.
    destination String
    Destination address of the access control policy. When DestinationType is net, use CIDR; when group, use address book UUID list; when location, use region code; when domain, use domain name.
    destinationType String
    Destination address type. net: destination subnet (CIDR); group: destination address book; location: destination region; domain: destination domain name
    direction String
    Direction of the access control policy, indicating the direction of traffic transmission. in: inbound direction; out: outbound direction.
    proto String
    Protocol type. ICMP, TCP, UDP, ANY (any protocol). When DestinationType is domain, protocol type must be TCP.
    source String
    Source address. When SourceType is net, use CIDR; when group, use address book UUID list; when location, use region code.
    sourceType String
    Source address type. net: subnet (CIDR); group: address book; location: region
    description String
    Policy description.
    destPort String
    Destination port. Format is a single port or port range. If protocol type is ICMP/ALL, value is empty; if DestPortType is group, use port address book UUID list; if DestPortType is port, use port range.
    destPortType String
    Destination port type. port: port; group: port address book.
    endTime Integer
    Policy expiration date, Unix timestamp. If RepeatType is Permanent (always active), this field is not required. If RepeatType is Once (active for a single period) or Daily, Weekly, Monthly (repeatedly active), this field must be filled in.
    internetFirewallId String
    Internet border firewall instance ID.
    ipType String
    IP version. v4: IPv4; v6: IPv6
    prio Integer
    Policy priority. The lower the value, the higher the priority. 0: lowest priority; 1: highest priority; other values: other priorities. Default value is 0 (lowest priority). When modifying, this parameter represents the policy's position in the policy list (cannot be set to 0).
    repeatDays List<Integer>
    Recurring effective period. Required when RepeatType is Weekly or Monthly. Weekly value range: [0,6]; Monthly value range: [1,31]
    repeatEndTime String
    Repeat expiration time. Accurate to the minute, format is hh:mm.
    repeatStartTime String
    Repeat start time. Accurate to the minute, format is hh:mm. Required when RepeatType is Daily, Weekly, or Monthly (repeatedly active).
    repeatType String
    Repeat type. Permanent: always active; Once: active once; Daily: repeats daily; Weekly: repeats weekly; Monthly: repeats monthly.
    startTime Integer
    Policy effective start date, Unix timestamp. Not required when RepeatType is Permanent (always effective). Required when RepeatType is Once (single period effective) or Daily, Weekly, Monthly (recurring effective)
    status Boolean
    Policy enable status. true: Enabled; false: Disabled
    action string
    Action of the access control policy. accept: allow; deny: block; monitor: observe.
    destination string
    Destination address of the access control policy. When DestinationType is net, use CIDR; when group, use address book UUID list; when location, use region code; when domain, use domain name.
    destinationType string
    Destination address type. net: destination subnet (CIDR); group: destination address book; location: destination region; domain: destination domain name
    direction string
    Direction of the access control policy, indicating the direction of traffic transmission. in: inbound direction; out: outbound direction.
    proto string
    Protocol type. ICMP, TCP, UDP, ANY (any protocol). When DestinationType is domain, protocol type must be TCP.
    source string
    Source address. When SourceType is net, use CIDR; when group, use address book UUID list; when location, use region code.
    sourceType string
    Source address type. net: subnet (CIDR); group: address book; location: region
    description string
    Policy description.
    destPort string
    Destination port. Format is a single port or port range. If protocol type is ICMP/ALL, value is empty; if DestPortType is group, use port address book UUID list; if DestPortType is port, use port range.
    destPortType string
    Destination port type. port: port; group: port address book.
    endTime number
    Policy expiration date, Unix timestamp. If RepeatType is Permanent (always active), this field is not required. If RepeatType is Once (active for a single period) or Daily, Weekly, Monthly (repeatedly active), this field must be filled in.
    internetFirewallId string
    Internet border firewall instance ID.
    ipType string
    IP version. v4: IPv4; v6: IPv6
    prio number
    Policy priority. The lower the value, the higher the priority. 0: lowest priority; 1: highest priority; other values: other priorities. Default value is 0 (lowest priority). When modifying, this parameter represents the policy's position in the policy list (cannot be set to 0).
    repeatDays number[]
    Recurring effective period. Required when RepeatType is Weekly or Monthly. Weekly value range: [0,6]; Monthly value range: [1,31]
    repeatEndTime string
    Repeat expiration time. Accurate to the minute, format is hh:mm.
    repeatStartTime string
    Repeat start time. Accurate to the minute, format is hh:mm. Required when RepeatType is Daily, Weekly, or Monthly (repeatedly active).
    repeatType string
    Repeat type. Permanent: always active; Once: active once; Daily: repeats daily; Weekly: repeats weekly; Monthly: repeats monthly.
    startTime number
    Policy effective start date, Unix timestamp. Not required when RepeatType is Permanent (always effective). Required when RepeatType is Once (single period effective) or Daily, Weekly, Monthly (recurring effective)
    status boolean
    Policy enable status. true: Enabled; false: Disabled
    action str
    Action of the access control policy. accept: allow; deny: block; monitor: observe.
    destination str
    Destination address of the access control policy. When DestinationType is net, use CIDR; when group, use address book UUID list; when location, use region code; when domain, use domain name.
    destination_type str
    Destination address type. net: destination subnet (CIDR); group: destination address book; location: destination region; domain: destination domain name
    direction str
    Direction of the access control policy, indicating the direction of traffic transmission. in: inbound direction; out: outbound direction.
    proto str
    Protocol type. ICMP, TCP, UDP, ANY (any protocol). When DestinationType is domain, protocol type must be TCP.
    source str
    Source address. When SourceType is net, use CIDR; when group, use address book UUID list; when location, use region code.
    source_type str
    Source address type. net: subnet (CIDR); group: address book; location: region
    description str
    Policy description.
    dest_port str
    Destination port. Format is a single port or port range. If protocol type is ICMP/ALL, value is empty; if DestPortType is group, use port address book UUID list; if DestPortType is port, use port range.
    dest_port_type str
    Destination port type. port: port; group: port address book.
    end_time int
    Policy expiration date, Unix timestamp. If RepeatType is Permanent (always active), this field is not required. If RepeatType is Once (active for a single period) or Daily, Weekly, Monthly (repeatedly active), this field must be filled in.
    internet_firewall_id str
    Internet border firewall instance ID.
    ip_type str
    IP version. v4: IPv4; v6: IPv6
    prio int
    Policy priority. The lower the value, the higher the priority. 0: lowest priority; 1: highest priority; other values: other priorities. Default value is 0 (lowest priority). When modifying, this parameter represents the policy's position in the policy list (cannot be set to 0).
    repeat_days Sequence[int]
    Recurring effective period. Required when RepeatType is Weekly or Monthly. Weekly value range: [0,6]; Monthly value range: [1,31]
    repeat_end_time str
    Repeat expiration time. Accurate to the minute, format is hh:mm.
    repeat_start_time str
    Repeat start time. Accurate to the minute, format is hh:mm. Required when RepeatType is Daily, Weekly, or Monthly (repeatedly active).
    repeat_type str
    Repeat type. Permanent: always active; Once: active once; Daily: repeats daily; Weekly: repeats weekly; Monthly: repeats monthly.
    start_time int
    Policy effective start date, Unix timestamp. Not required when RepeatType is Permanent (always effective). Required when RepeatType is Once (single period effective) or Daily, Weekly, Monthly (recurring effective)
    status bool
    Policy enable status. true: Enabled; false: Disabled
    action String
    Action of the access control policy. accept: allow; deny: block; monitor: observe.
    destination String
    Destination address of the access control policy. When DestinationType is net, use CIDR; when group, use address book UUID list; when location, use region code; when domain, use domain name.
    destinationType String
    Destination address type. net: destination subnet (CIDR); group: destination address book; location: destination region; domain: destination domain name
    direction String
    Direction of the access control policy, indicating the direction of traffic transmission. in: inbound direction; out: outbound direction.
    proto String
    Protocol type. ICMP, TCP, UDP, ANY (any protocol). When DestinationType is domain, protocol type must be TCP.
    source String
    Source address. When SourceType is net, use CIDR; when group, use address book UUID list; when location, use region code.
    sourceType String
    Source address type. net: subnet (CIDR); group: address book; location: region
    description String
    Policy description.
    destPort String
    Destination port. Format is a single port or port range. If protocol type is ICMP/ALL, value is empty; if DestPortType is group, use port address book UUID list; if DestPortType is port, use port range.
    destPortType String
    Destination port type. port: port; group: port address book.
    endTime Number
    Policy expiration date, Unix timestamp. If RepeatType is Permanent (always active), this field is not required. If RepeatType is Once (active for a single period) or Daily, Weekly, Monthly (repeatedly active), this field must be filled in.
    internetFirewallId String
    Internet border firewall instance ID.
    ipType String
    IP version. v4: IPv4; v6: IPv6
    prio Number
    Policy priority. The lower the value, the higher the priority. 0: lowest priority; 1: highest priority; other values: other priorities. Default value is 0 (lowest priority). When modifying, this parameter represents the policy's position in the policy list (cannot be set to 0).
    repeatDays List<Number>
    Recurring effective period. Required when RepeatType is Weekly or Monthly. Weekly value range: [0,6]; Monthly value range: [1,31]
    repeatEndTime String
    Repeat expiration time. Accurate to the minute, format is hh:mm.
    repeatStartTime String
    Repeat start time. Accurate to the minute, format is hh:mm. Required when RepeatType is Daily, Weekly, or Monthly (repeatedly active).
    repeatType String
    Repeat type. Permanent: always active; Once: active once; Daily: repeats daily; Weekly: repeats weekly; Monthly: repeats monthly.
    startTime Number
    Policy effective start date, Unix timestamp. Not required when RepeatType is Permanent (always effective). Required when RepeatType is Once (single period effective) or Daily, Weekly, Monthly (recurring effective)
    status Boolean
    Policy enable status. true: Enabled; false: Disabled

    Outputs

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

    AccountId string
    Unique user ID.
    DestPortGroupType string
    Destination port book type
    DestPortListV1s List<Byteplus.ControlPolicyDestPortListV1>
    Destination port list (structured) Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    DestPortLists List<string>
    Destination port list.
    DestinationCidrListV1s List<Byteplus.ControlPolicyDestinationCidrListV1>
    Destination CIDR list (structured) Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    DestinationCidrLists List<string>
    Destination CIDR list.
    DestinationDomainLists List<string>
    Destination domain name list.
    DestinationGroupType string
    Destination address book type.
    EffectStatus int
    Access control policy status. 1: Inactive; 2: Deploying; 3: Active
    HitCnt int
    Number of matches.
    Id string
    The provider-assigned unique ID for this managed resource.
    IsEffected bool
    Whether the access control policy is active. true: active; false: inactive.
    RuleId string
    Unique ID of the access control policy, used to uniquely identify an access control policy.
    SourceCidrListV1s List<Byteplus.ControlPolicySourceCidrListV1>
    Source CIDR list (structured). Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    SourceCidrLists List<string>
    Source CIDR list
    SourceGroupType string
    Source address book type
    UpdateTime int
    Last update time of the access control policy, Unix timestamp.
    UseCount int
    Number of policies in use.
    AccountId string
    Unique user ID.
    DestPortGroupType string
    Destination port book type
    DestPortListV1s []ControlPolicyDestPortListV1
    Destination port list (structured) Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    DestPortLists []string
    Destination port list.
    DestinationCidrListV1s []ControlPolicyDestinationCidrListV1
    Destination CIDR list (structured) Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    DestinationCidrLists []string
    Destination CIDR list.
    DestinationDomainLists []string
    Destination domain name list.
    DestinationGroupType string
    Destination address book type.
    EffectStatus int
    Access control policy status. 1: Inactive; 2: Deploying; 3: Active
    HitCnt int
    Number of matches.
    Id string
    The provider-assigned unique ID for this managed resource.
    IsEffected bool
    Whether the access control policy is active. true: active; false: inactive.
    RuleId string
    Unique ID of the access control policy, used to uniquely identify an access control policy.
    SourceCidrListV1s []ControlPolicySourceCidrListV1
    Source CIDR list (structured). Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    SourceCidrLists []string
    Source CIDR list
    SourceGroupType string
    Source address book type
    UpdateTime int
    Last update time of the access control policy, Unix timestamp.
    UseCount int
    Number of policies in use.
    account_id string
    Unique user ID.
    dest_port_group_type string
    Destination port book type
    dest_port_list_v1s list(object)
    Destination port list (structured) Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    dest_port_lists list(string)
    Destination port list.
    destination_cidr_list_v1s list(object)
    Destination CIDR list (structured) Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    destination_cidr_lists list(string)
    Destination CIDR list.
    destination_domain_lists list(string)
    Destination domain name list.
    destination_group_type string
    Destination address book type.
    effect_status number
    Access control policy status. 1: Inactive; 2: Deploying; 3: Active
    hit_cnt number
    Number of matches.
    id string
    The provider-assigned unique ID for this managed resource.
    is_effected bool
    Whether the access control policy is active. true: active; false: inactive.
    rule_id string
    Unique ID of the access control policy, used to uniquely identify an access control policy.
    source_cidr_list_v1s list(object)
    Source CIDR list (structured). Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    source_cidr_lists list(string)
    Source CIDR list
    source_group_type string
    Source address book type
    update_time number
    Last update time of the access control policy, Unix timestamp.
    use_count number
    Number of policies in use.
    accountId String
    Unique user ID.
    destPortGroupType String
    Destination port book type
    destPortListV1s List<ControlPolicyDestPortListV1>
    Destination port list (structured) Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    destPortLists List<String>
    Destination port list.
    destinationCidrListV1s List<ControlPolicyDestinationCidrListV1>
    Destination CIDR list (structured) Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    destinationCidrLists List<String>
    Destination CIDR list.
    destinationDomainLists List<String>
    Destination domain name list.
    destinationGroupType String
    Destination address book type.
    effectStatus Integer
    Access control policy status. 1: Inactive; 2: Deploying; 3: Active
    hitCnt Integer
    Number of matches.
    id String
    The provider-assigned unique ID for this managed resource.
    isEffected Boolean
    Whether the access control policy is active. true: active; false: inactive.
    ruleId String
    Unique ID of the access control policy, used to uniquely identify an access control policy.
    sourceCidrListV1s List<ControlPolicySourceCidrListV1>
    Source CIDR list (structured). Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    sourceCidrLists List<String>
    Source CIDR list
    sourceGroupType String
    Source address book type
    updateTime Integer
    Last update time of the access control policy, Unix timestamp.
    useCount Integer
    Number of policies in use.
    accountId string
    Unique user ID.
    destPortGroupType string
    Destination port book type
    destPortListV1s ControlPolicyDestPortListV1[]
    Destination port list (structured) Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    destPortLists string[]
    Destination port list.
    destinationCidrListV1s ControlPolicyDestinationCidrListV1[]
    Destination CIDR list (structured) Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    destinationCidrLists string[]
    Destination CIDR list.
    destinationDomainLists string[]
    Destination domain name list.
    destinationGroupType string
    Destination address book type.
    effectStatus number
    Access control policy status. 1: Inactive; 2: Deploying; 3: Active
    hitCnt number
    Number of matches.
    id string
    The provider-assigned unique ID for this managed resource.
    isEffected boolean
    Whether the access control policy is active. true: active; false: inactive.
    ruleId string
    Unique ID of the access control policy, used to uniquely identify an access control policy.
    sourceCidrListV1s ControlPolicySourceCidrListV1[]
    Source CIDR list (structured). Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    sourceCidrLists string[]
    Source CIDR list
    sourceGroupType string
    Source address book type
    updateTime number
    Last update time of the access control policy, Unix timestamp.
    useCount number
    Number of policies in use.
    account_id str
    Unique user ID.
    dest_port_group_type str
    Destination port book type
    dest_port_list_v1s Sequence[ControlPolicyDestPortListV1]
    Destination port list (structured) Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    dest_port_lists Sequence[str]
    Destination port list.
    destination_cidr_list_v1s Sequence[ControlPolicyDestinationCidrListV1]
    Destination CIDR list (structured) Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    destination_cidr_lists Sequence[str]
    Destination CIDR list.
    destination_domain_lists Sequence[str]
    Destination domain name list.
    destination_group_type str
    Destination address book type.
    effect_status int
    Access control policy status. 1: Inactive; 2: Deploying; 3: Active
    hit_cnt int
    Number of matches.
    id str
    The provider-assigned unique ID for this managed resource.
    is_effected bool
    Whether the access control policy is active. true: active; false: inactive.
    rule_id str
    Unique ID of the access control policy, used to uniquely identify an access control policy.
    source_cidr_list_v1s Sequence[ControlPolicySourceCidrListV1]
    Source CIDR list (structured). Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    source_cidr_lists Sequence[str]
    Source CIDR list
    source_group_type str
    Source address book type
    update_time int
    Last update time of the access control policy, Unix timestamp.
    use_count int
    Number of policies in use.
    accountId String
    Unique user ID.
    destPortGroupType String
    Destination port book type
    destPortListV1s List<Property Map>
    Destination port list (structured) Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    destPortLists List<String>
    Destination port list.
    destinationCidrListV1s List<Property Map>
    Destination CIDR list (structured) Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    destinationCidrLists List<String>
    Destination CIDR list.
    destinationDomainLists List<String>
    Destination domain name list.
    destinationGroupType String
    Destination address book type.
    effectStatus Number
    Access control policy status. 1: Inactive; 2: Deploying; 3: Active
    hitCnt Number
    Number of matches.
    id String
    The provider-assigned unique ID for this managed resource.
    isEffected Boolean
    Whether the access control policy is active. true: active; false: inactive.
    ruleId String
    Unique ID of the access control policy, used to uniquely identify an access control policy.
    sourceCidrListV1s List<Property Map>
    Source CIDR list (structured). Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    sourceCidrLists List<String>
    Source CIDR list
    sourceGroupType String
    Source address book type
    updateTime Number
    Last update time of the access control policy, Unix timestamp.
    useCount Number
    Number of policies in use.

    Look up Existing ControlPolicy Resource

    Get an existing ControlPolicy 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?: ControlPolicyState, opts?: CustomResourceOptions): ControlPolicy
    @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_group_type: Optional[str] = None,
            dest_port_list_v1s: Optional[Sequence[ControlPolicyDestPortListV1Args]] = None,
            dest_port_lists: Optional[Sequence[str]] = None,
            dest_port_type: Optional[str] = None,
            destination: Optional[str] = None,
            destination_cidr_list_v1s: Optional[Sequence[ControlPolicyDestinationCidrListV1Args]] = None,
            destination_cidr_lists: Optional[Sequence[str]] = None,
            destination_domain_lists: Optional[Sequence[str]] = None,
            destination_group_type: 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,
            internet_firewall_id: Optional[str] = None,
            ip_type: Optional[str] = None,
            is_effected: Optional[bool] = None,
            prio: 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_cidr_list_v1s: Optional[Sequence[ControlPolicySourceCidrListV1Args]] = None,
            source_cidr_lists: Optional[Sequence[str]] = None,
            source_group_type: 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) -> ControlPolicy
    func GetControlPolicy(ctx *Context, name string, id IDInput, state *ControlPolicyState, opts ...ResourceOption) (*ControlPolicy, error)
    public static ControlPolicy Get(string name, Input<string> id, ControlPolicyState? state, CustomResourceOptions? opts = null)
    public static ControlPolicy get(String name, Output<String> id, ControlPolicyState state, CustomResourceOptions options)
    resources:  _:    type: bytepluscc:fwcenter:ControlPolicy    get:      id: ${id}
    import {
      to = bytepluscc_fwcenter_controlpolicy.example
      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
    Unique user ID.
    Action string
    Action of the access control policy. accept: allow; deny: block; monitor: observe.
    Description string
    Policy description.
    DestPort string
    Destination port. Format is a single port or port range. If protocol type is ICMP/ALL, value is empty; if DestPortType is group, use port address book UUID list; if DestPortType is port, use port range.
    DestPortGroupType string
    Destination port book type
    DestPortListV1s List<Byteplus.ControlPolicyDestPortListV1>
    Destination port list (structured) Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    DestPortLists List<string>
    Destination port list.
    DestPortType string
    Destination port type. port: port; group: port address book.
    Destination string
    Destination address of the access control policy. When DestinationType is net, use CIDR; when group, use address book UUID list; when location, use region code; when domain, use domain name.
    DestinationCidrListV1s List<Byteplus.ControlPolicyDestinationCidrListV1>
    Destination CIDR list (structured) Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    DestinationCidrLists List<string>
    Destination CIDR list.
    DestinationDomainLists List<string>
    Destination domain name list.
    DestinationGroupType string
    Destination address book type.
    DestinationType string
    Destination address type. net: destination subnet (CIDR); group: destination address book; location: destination region; domain: destination domain name
    Direction string
    Direction of the access control policy, indicating the direction of traffic transmission. in: inbound direction; out: outbound direction.
    EffectStatus int
    Access control policy status. 1: Inactive; 2: Deploying; 3: Active
    EndTime int
    Policy expiration date, Unix timestamp. If RepeatType is Permanent (always active), this field is not required. If RepeatType is Once (active for a single period) or Daily, Weekly, Monthly (repeatedly active), this field must be filled in.
    HitCnt int
    Number of matches.
    InternetFirewallId string
    Internet border firewall instance ID.
    IpType string
    IP version. v4: IPv4; v6: IPv6
    IsEffected bool
    Whether the access control policy is active. true: active; false: inactive.
    Prio int
    Policy priority. The lower the value, the higher the priority. 0: lowest priority; 1: highest priority; other values: other priorities. Default value is 0 (lowest priority). When modifying, this parameter represents the policy's position in the policy list (cannot be set to 0).
    Proto string
    Protocol type. ICMP, TCP, UDP, ANY (any protocol). When DestinationType is domain, protocol type must be TCP.
    RepeatDays List<int>
    Recurring effective period. Required when RepeatType is Weekly or Monthly. Weekly value range: [0,6]; Monthly value range: [1,31]
    RepeatEndTime string
    Repeat expiration time. Accurate to the minute, format is hh:mm.
    RepeatStartTime string
    Repeat start time. Accurate to the minute, format is hh:mm. Required when RepeatType is Daily, Weekly, or Monthly (repeatedly active).
    RepeatType string
    Repeat type. Permanent: always active; Once: active once; Daily: repeats daily; Weekly: repeats weekly; Monthly: repeats monthly.
    RuleId string
    Unique ID of the access control policy, used to uniquely identify an access control policy.
    Source string
    Source address. When SourceType is net, use CIDR; when group, use address book UUID list; when location, use region code.
    SourceCidrListV1s List<Byteplus.ControlPolicySourceCidrListV1>
    Source CIDR list (structured). Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    SourceCidrLists List<string>
    Source CIDR list
    SourceGroupType string
    Source address book type
    SourceType string
    Source address type. net: subnet (CIDR); group: address book; location: region
    StartTime int
    Policy effective start date, Unix timestamp. Not required when RepeatType is Permanent (always effective). Required when RepeatType is Once (single period effective) or Daily, Weekly, Monthly (recurring effective)
    Status bool
    Policy enable status. true: Enabled; false: Disabled
    UpdateTime int
    Last update time of the access control policy, Unix timestamp.
    UseCount int
    Number of policies in use.
    AccountId string
    Unique user ID.
    Action string
    Action of the access control policy. accept: allow; deny: block; monitor: observe.
    Description string
    Policy description.
    DestPort string
    Destination port. Format is a single port or port range. If protocol type is ICMP/ALL, value is empty; if DestPortType is group, use port address book UUID list; if DestPortType is port, use port range.
    DestPortGroupType string
    Destination port book type
    DestPortListV1s []ControlPolicyDestPortListV1Args
    Destination port list (structured) Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    DestPortLists []string
    Destination port list.
    DestPortType string
    Destination port type. port: port; group: port address book.
    Destination string
    Destination address of the access control policy. When DestinationType is net, use CIDR; when group, use address book UUID list; when location, use region code; when domain, use domain name.
    DestinationCidrListV1s []ControlPolicyDestinationCidrListV1Args
    Destination CIDR list (structured) Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    DestinationCidrLists []string
    Destination CIDR list.
    DestinationDomainLists []string
    Destination domain name list.
    DestinationGroupType string
    Destination address book type.
    DestinationType string
    Destination address type. net: destination subnet (CIDR); group: destination address book; location: destination region; domain: destination domain name
    Direction string
    Direction of the access control policy, indicating the direction of traffic transmission. in: inbound direction; out: outbound direction.
    EffectStatus int
    Access control policy status. 1: Inactive; 2: Deploying; 3: Active
    EndTime int
    Policy expiration date, Unix timestamp. If RepeatType is Permanent (always active), this field is not required. If RepeatType is Once (active for a single period) or Daily, Weekly, Monthly (repeatedly active), this field must be filled in.
    HitCnt int
    Number of matches.
    InternetFirewallId string
    Internet border firewall instance ID.
    IpType string
    IP version. v4: IPv4; v6: IPv6
    IsEffected bool
    Whether the access control policy is active. true: active; false: inactive.
    Prio int
    Policy priority. The lower the value, the higher the priority. 0: lowest priority; 1: highest priority; other values: other priorities. Default value is 0 (lowest priority). When modifying, this parameter represents the policy's position in the policy list (cannot be set to 0).
    Proto string
    Protocol type. ICMP, TCP, UDP, ANY (any protocol). When DestinationType is domain, protocol type must be TCP.
    RepeatDays []int
    Recurring effective period. Required when RepeatType is Weekly or Monthly. Weekly value range: [0,6]; Monthly value range: [1,31]
    RepeatEndTime string
    Repeat expiration time. Accurate to the minute, format is hh:mm.
    RepeatStartTime string
    Repeat start time. Accurate to the minute, format is hh:mm. Required when RepeatType is Daily, Weekly, or Monthly (repeatedly active).
    RepeatType string
    Repeat type. Permanent: always active; Once: active once; Daily: repeats daily; Weekly: repeats weekly; Monthly: repeats monthly.
    RuleId string
    Unique ID of the access control policy, used to uniquely identify an access control policy.
    Source string
    Source address. When SourceType is net, use CIDR; when group, use address book UUID list; when location, use region code.
    SourceCidrListV1s []ControlPolicySourceCidrListV1Args
    Source CIDR list (structured). Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    SourceCidrLists []string
    Source CIDR list
    SourceGroupType string
    Source address book type
    SourceType string
    Source address type. net: subnet (CIDR); group: address book; location: region
    StartTime int
    Policy effective start date, Unix timestamp. Not required when RepeatType is Permanent (always effective). Required when RepeatType is Once (single period effective) or Daily, Weekly, Monthly (recurring effective)
    Status bool
    Policy enable status. true: Enabled; false: Disabled
    UpdateTime int
    Last update time of the access control policy, Unix timestamp.
    UseCount int
    Number of policies in use.
    account_id string
    Unique user ID.
    action string
    Action of the access control policy. accept: allow; deny: block; monitor: observe.
    description string
    Policy description.
    dest_port string
    Destination port. Format is a single port or port range. If protocol type is ICMP/ALL, value is empty; if DestPortType is group, use port address book UUID list; if DestPortType is port, use port range.
    dest_port_group_type string
    Destination port book type
    dest_port_list_v1s list(object)
    Destination port list (structured) Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    dest_port_lists list(string)
    Destination port list.
    dest_port_type string
    Destination port type. port: port; group: port address book.
    destination string
    Destination address of the access control policy. When DestinationType is net, use CIDR; when group, use address book UUID list; when location, use region code; when domain, use domain name.
    destination_cidr_list_v1s list(object)
    Destination CIDR list (structured) Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    destination_cidr_lists list(string)
    Destination CIDR list.
    destination_domain_lists list(string)
    Destination domain name list.
    destination_group_type string
    Destination address book type.
    destination_type string
    Destination address type. net: destination subnet (CIDR); group: destination address book; location: destination region; domain: destination domain name
    direction string
    Direction of the access control policy, indicating the direction of traffic transmission. in: inbound direction; out: outbound direction.
    effect_status number
    Access control policy status. 1: Inactive; 2: Deploying; 3: Active
    end_time number
    Policy expiration date, Unix timestamp. If RepeatType is Permanent (always active), this field is not required. If RepeatType is Once (active for a single period) or Daily, Weekly, Monthly (repeatedly active), this field must be filled in.
    hit_cnt number
    Number of matches.
    internet_firewall_id string
    Internet border firewall instance ID.
    ip_type string
    IP version. v4: IPv4; v6: IPv6
    is_effected bool
    Whether the access control policy is active. true: active; false: inactive.
    prio number
    Policy priority. The lower the value, the higher the priority. 0: lowest priority; 1: highest priority; other values: other priorities. Default value is 0 (lowest priority). When modifying, this parameter represents the policy's position in the policy list (cannot be set to 0).
    proto string
    Protocol type. ICMP, TCP, UDP, ANY (any protocol). When DestinationType is domain, protocol type must be TCP.
    repeat_days list(number)
    Recurring effective period. Required when RepeatType is Weekly or Monthly. Weekly value range: [0,6]; Monthly value range: [1,31]
    repeat_end_time string
    Repeat expiration time. Accurate to the minute, format is hh:mm.
    repeat_start_time string
    Repeat start time. Accurate to the minute, format is hh:mm. Required when RepeatType is Daily, Weekly, or Monthly (repeatedly active).
    repeat_type string
    Repeat type. Permanent: always active; Once: active once; Daily: repeats daily; Weekly: repeats weekly; Monthly: repeats monthly.
    rule_id string
    Unique ID of the access control policy, used to uniquely identify an access control policy.
    source string
    Source address. When SourceType is net, use CIDR; when group, use address book UUID list; when location, use region code.
    source_cidr_list_v1s list(object)
    Source CIDR list (structured). Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    source_cidr_lists list(string)
    Source CIDR list
    source_group_type string
    Source address book type
    source_type string
    Source address type. net: subnet (CIDR); group: address book; location: region
    start_time number
    Policy effective start date, Unix timestamp. Not required when RepeatType is Permanent (always effective). Required when RepeatType is Once (single period effective) or Daily, Weekly, Monthly (recurring effective)
    status bool
    Policy enable status. true: Enabled; false: Disabled
    update_time number
    Last update time of the access control policy, Unix timestamp.
    use_count number
    Number of policies in use.
    accountId String
    Unique user ID.
    action String
    Action of the access control policy. accept: allow; deny: block; monitor: observe.
    description String
    Policy description.
    destPort String
    Destination port. Format is a single port or port range. If protocol type is ICMP/ALL, value is empty; if DestPortType is group, use port address book UUID list; if DestPortType is port, use port range.
    destPortGroupType String
    Destination port book type
    destPortListV1s List<ControlPolicyDestPortListV1>
    Destination port list (structured) Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    destPortLists List<String>
    Destination port list.
    destPortType String
    Destination port type. port: port; group: port address book.
    destination String
    Destination address of the access control policy. When DestinationType is net, use CIDR; when group, use address book UUID list; when location, use region code; when domain, use domain name.
    destinationCidrListV1s List<ControlPolicyDestinationCidrListV1>
    Destination CIDR list (structured) Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    destinationCidrLists List<String>
    Destination CIDR list.
    destinationDomainLists List<String>
    Destination domain name list.
    destinationGroupType String
    Destination address book type.
    destinationType String
    Destination address type. net: destination subnet (CIDR); group: destination address book; location: destination region; domain: destination domain name
    direction String
    Direction of the access control policy, indicating the direction of traffic transmission. in: inbound direction; out: outbound direction.
    effectStatus Integer
    Access control policy status. 1: Inactive; 2: Deploying; 3: Active
    endTime Integer
    Policy expiration date, Unix timestamp. If RepeatType is Permanent (always active), this field is not required. If RepeatType is Once (active for a single period) or Daily, Weekly, Monthly (repeatedly active), this field must be filled in.
    hitCnt Integer
    Number of matches.
    internetFirewallId String
    Internet border firewall instance ID.
    ipType String
    IP version. v4: IPv4; v6: IPv6
    isEffected Boolean
    Whether the access control policy is active. true: active; false: inactive.
    prio Integer
    Policy priority. The lower the value, the higher the priority. 0: lowest priority; 1: highest priority; other values: other priorities. Default value is 0 (lowest priority). When modifying, this parameter represents the policy's position in the policy list (cannot be set to 0).
    proto String
    Protocol type. ICMP, TCP, UDP, ANY (any protocol). When DestinationType is domain, protocol type must be TCP.
    repeatDays List<Integer>
    Recurring effective period. Required when RepeatType is Weekly or Monthly. Weekly value range: [0,6]; Monthly value range: [1,31]
    repeatEndTime String
    Repeat expiration time. Accurate to the minute, format is hh:mm.
    repeatStartTime String
    Repeat start time. Accurate to the minute, format is hh:mm. Required when RepeatType is Daily, Weekly, or Monthly (repeatedly active).
    repeatType String
    Repeat type. Permanent: always active; Once: active once; Daily: repeats daily; Weekly: repeats weekly; Monthly: repeats monthly.
    ruleId String
    Unique ID of the access control policy, used to uniquely identify an access control policy.
    source String
    Source address. When SourceType is net, use CIDR; when group, use address book UUID list; when location, use region code.
    sourceCidrListV1s List<ControlPolicySourceCidrListV1>
    Source CIDR list (structured). Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    sourceCidrLists List<String>
    Source CIDR list
    sourceGroupType String
    Source address book type
    sourceType String
    Source address type. net: subnet (CIDR); group: address book; location: region
    startTime Integer
    Policy effective start date, Unix timestamp. Not required when RepeatType is Permanent (always effective). Required when RepeatType is Once (single period effective) or Daily, Weekly, Monthly (recurring effective)
    status Boolean
    Policy enable status. true: Enabled; false: Disabled
    updateTime Integer
    Last update time of the access control policy, Unix timestamp.
    useCount Integer
    Number of policies in use.
    accountId string
    Unique user ID.
    action string
    Action of the access control policy. accept: allow; deny: block; monitor: observe.
    description string
    Policy description.
    destPort string
    Destination port. Format is a single port or port range. If protocol type is ICMP/ALL, value is empty; if DestPortType is group, use port address book UUID list; if DestPortType is port, use port range.
    destPortGroupType string
    Destination port book type
    destPortListV1s ControlPolicyDestPortListV1[]
    Destination port list (structured) Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    destPortLists string[]
    Destination port list.
    destPortType string
    Destination port type. port: port; group: port address book.
    destination string
    Destination address of the access control policy. When DestinationType is net, use CIDR; when group, use address book UUID list; when location, use region code; when domain, use domain name.
    destinationCidrListV1s ControlPolicyDestinationCidrListV1[]
    Destination CIDR list (structured) Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    destinationCidrLists string[]
    Destination CIDR list.
    destinationDomainLists string[]
    Destination domain name list.
    destinationGroupType string
    Destination address book type.
    destinationType string
    Destination address type. net: destination subnet (CIDR); group: destination address book; location: destination region; domain: destination domain name
    direction string
    Direction of the access control policy, indicating the direction of traffic transmission. in: inbound direction; out: outbound direction.
    effectStatus number
    Access control policy status. 1: Inactive; 2: Deploying; 3: Active
    endTime number
    Policy expiration date, Unix timestamp. If RepeatType is Permanent (always active), this field is not required. If RepeatType is Once (active for a single period) or Daily, Weekly, Monthly (repeatedly active), this field must be filled in.
    hitCnt number
    Number of matches.
    internetFirewallId string
    Internet border firewall instance ID.
    ipType string
    IP version. v4: IPv4; v6: IPv6
    isEffected boolean
    Whether the access control policy is active. true: active; false: inactive.
    prio number
    Policy priority. The lower the value, the higher the priority. 0: lowest priority; 1: highest priority; other values: other priorities. Default value is 0 (lowest priority). When modifying, this parameter represents the policy's position in the policy list (cannot be set to 0).
    proto string
    Protocol type. ICMP, TCP, UDP, ANY (any protocol). When DestinationType is domain, protocol type must be TCP.
    repeatDays number[]
    Recurring effective period. Required when RepeatType is Weekly or Monthly. Weekly value range: [0,6]; Monthly value range: [1,31]
    repeatEndTime string
    Repeat expiration time. Accurate to the minute, format is hh:mm.
    repeatStartTime string
    Repeat start time. Accurate to the minute, format is hh:mm. Required when RepeatType is Daily, Weekly, or Monthly (repeatedly active).
    repeatType string
    Repeat type. Permanent: always active; Once: active once; Daily: repeats daily; Weekly: repeats weekly; Monthly: repeats monthly.
    ruleId string
    Unique ID of the access control policy, used to uniquely identify an access control policy.
    source string
    Source address. When SourceType is net, use CIDR; when group, use address book UUID list; when location, use region code.
    sourceCidrListV1s ControlPolicySourceCidrListV1[]
    Source CIDR list (structured). Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    sourceCidrLists string[]
    Source CIDR list
    sourceGroupType string
    Source address book type
    sourceType string
    Source address type. net: subnet (CIDR); group: address book; location: region
    startTime number
    Policy effective start date, Unix timestamp. Not required when RepeatType is Permanent (always effective). Required when RepeatType is Once (single period effective) or Daily, Weekly, Monthly (recurring effective)
    status boolean
    Policy enable status. true: Enabled; false: Disabled
    updateTime number
    Last update time of the access control policy, Unix timestamp.
    useCount number
    Number of policies in use.
    account_id str
    Unique user ID.
    action str
    Action of the access control policy. accept: allow; deny: block; monitor: observe.
    description str
    Policy description.
    dest_port str
    Destination port. Format is a single port or port range. If protocol type is ICMP/ALL, value is empty; if DestPortType is group, use port address book UUID list; if DestPortType is port, use port range.
    dest_port_group_type str
    Destination port book type
    dest_port_list_v1s Sequence[ControlPolicyDestPortListV1Args]
    Destination port list (structured) Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    dest_port_lists Sequence[str]
    Destination port list.
    dest_port_type str
    Destination port type. port: port; group: port address book.
    destination str
    Destination address of the access control policy. When DestinationType is net, use CIDR; when group, use address book UUID list; when location, use region code; when domain, use domain name.
    destination_cidr_list_v1s Sequence[ControlPolicyDestinationCidrListV1Args]
    Destination CIDR list (structured) Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    destination_cidr_lists Sequence[str]
    Destination CIDR list.
    destination_domain_lists Sequence[str]
    Destination domain name list.
    destination_group_type str
    Destination address book type.
    destination_type str
    Destination address type. net: destination subnet (CIDR); group: destination address book; location: destination region; domain: destination domain name
    direction str
    Direction of the access control policy, indicating the direction of traffic transmission. in: inbound direction; out: outbound direction.
    effect_status int
    Access control policy status. 1: Inactive; 2: Deploying; 3: Active
    end_time int
    Policy expiration date, Unix timestamp. If RepeatType is Permanent (always active), this field is not required. If RepeatType is Once (active for a single period) or Daily, Weekly, Monthly (repeatedly active), this field must be filled in.
    hit_cnt int
    Number of matches.
    internet_firewall_id str
    Internet border firewall instance ID.
    ip_type str
    IP version. v4: IPv4; v6: IPv6
    is_effected bool
    Whether the access control policy is active. true: active; false: inactive.
    prio int
    Policy priority. The lower the value, the higher the priority. 0: lowest priority; 1: highest priority; other values: other priorities. Default value is 0 (lowest priority). When modifying, this parameter represents the policy's position in the policy list (cannot be set to 0).
    proto str
    Protocol type. ICMP, TCP, UDP, ANY (any protocol). When DestinationType is domain, protocol type must be TCP.
    repeat_days Sequence[int]
    Recurring effective period. Required when RepeatType is Weekly or Monthly. Weekly value range: [0,6]; Monthly value range: [1,31]
    repeat_end_time str
    Repeat expiration time. Accurate to the minute, format is hh:mm.
    repeat_start_time str
    Repeat start time. Accurate to the minute, format is hh:mm. Required when RepeatType is Daily, Weekly, or Monthly (repeatedly active).
    repeat_type str
    Repeat type. Permanent: always active; Once: active once; Daily: repeats daily; Weekly: repeats weekly; Monthly: repeats monthly.
    rule_id str
    Unique ID of the access control policy, used to uniquely identify an access control policy.
    source str
    Source address. When SourceType is net, use CIDR; when group, use address book UUID list; when location, use region code.
    source_cidr_list_v1s Sequence[ControlPolicySourceCidrListV1Args]
    Source CIDR list (structured). Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    source_cidr_lists Sequence[str]
    Source CIDR list
    source_group_type str
    Source address book type
    source_type str
    Source address type. net: subnet (CIDR); group: address book; location: region
    start_time int
    Policy effective start date, Unix timestamp. Not required when RepeatType is Permanent (always effective). Required when RepeatType is Once (single period effective) or Daily, Weekly, Monthly (recurring effective)
    status bool
    Policy enable status. true: Enabled; false: Disabled
    update_time int
    Last update time of the access control policy, Unix timestamp.
    use_count int
    Number of policies in use.
    accountId String
    Unique user ID.
    action String
    Action of the access control policy. accept: allow; deny: block; monitor: observe.
    description String
    Policy description.
    destPort String
    Destination port. Format is a single port or port range. If protocol type is ICMP/ALL, value is empty; if DestPortType is group, use port address book UUID list; if DestPortType is port, use port range.
    destPortGroupType String
    Destination port book type
    destPortListV1s List<Property Map>
    Destination port list (structured) Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    destPortLists List<String>
    Destination port list.
    destPortType String
    Destination port type. port: port; group: port address book.
    destination String
    Destination address of the access control policy. When DestinationType is net, use CIDR; when group, use address book UUID list; when location, use region code; when domain, use domain name.
    destinationCidrListV1s List<Property Map>
    Destination CIDR list (structured) Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    destinationCidrLists List<String>
    Destination CIDR list.
    destinationDomainLists List<String>
    Destination domain name list.
    destinationGroupType String
    Destination address book type.
    destinationType String
    Destination address type. net: destination subnet (CIDR); group: destination address book; location: destination region; domain: destination domain name
    direction String
    Direction of the access control policy, indicating the direction of traffic transmission. in: inbound direction; out: outbound direction.
    effectStatus Number
    Access control policy status. 1: Inactive; 2: Deploying; 3: Active
    endTime Number
    Policy expiration date, Unix timestamp. If RepeatType is Permanent (always active), this field is not required. If RepeatType is Once (active for a single period) or Daily, Weekly, Monthly (repeatedly active), this field must be filled in.
    hitCnt Number
    Number of matches.
    internetFirewallId String
    Internet border firewall instance ID.
    ipType String
    IP version. v4: IPv4; v6: IPv6
    isEffected Boolean
    Whether the access control policy is active. true: active; false: inactive.
    prio Number
    Policy priority. The lower the value, the higher the priority. 0: lowest priority; 1: highest priority; other values: other priorities. Default value is 0 (lowest priority). When modifying, this parameter represents the policy's position in the policy list (cannot be set to 0).
    proto String
    Protocol type. ICMP, TCP, UDP, ANY (any protocol). When DestinationType is domain, protocol type must be TCP.
    repeatDays List<Number>
    Recurring effective period. Required when RepeatType is Weekly or Monthly. Weekly value range: [0,6]; Monthly value range: [1,31]
    repeatEndTime String
    Repeat expiration time. Accurate to the minute, format is hh:mm.
    repeatStartTime String
    Repeat start time. Accurate to the minute, format is hh:mm. Required when RepeatType is Daily, Weekly, or Monthly (repeatedly active).
    repeatType String
    Repeat type. Permanent: always active; Once: active once; Daily: repeats daily; Weekly: repeats weekly; Monthly: repeats monthly.
    ruleId String
    Unique ID of the access control policy, used to uniquely identify an access control policy.
    source String
    Source address. When SourceType is net, use CIDR; when group, use address book UUID list; when location, use region code.
    sourceCidrListV1s List<Property Map>
    Source CIDR list (structured). Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    sourceCidrLists List<String>
    Source CIDR list
    sourceGroupType String
    Source address book type
    sourceType String
    Source address type. net: subnet (CIDR); group: address book; location: region
    startTime Number
    Policy effective start date, Unix timestamp. Not required when RepeatType is Permanent (always effective). Required when RepeatType is Once (single period effective) or Daily, Weekly, Monthly (recurring effective)
    status Boolean
    Policy enable status. true: Enabled; false: Disabled
    updateTime Number
    Last update time of the access control policy, Unix timestamp.
    useCount Number
    Number of policies in use.

    Supporting Types

    ControlPolicyDestPortListV1, ControlPolicyDestPortListV1Args

    Address string
    Detailed address information.
    Description string
    Description
    Type string
    Address type. ip: IPv4; ipv6: IPv6; domain: domain name; port: port
    Address string
    Detailed address information.
    Description string
    Description
    Type string
    Address type. ip: IPv4; ipv6: IPv6; domain: domain name; port: port
    address string
    Detailed address information.
    description string
    Description
    type string
    Address type. ip: IPv4; ipv6: IPv6; domain: domain name; port: port
    address String
    Detailed address information.
    description String
    Description
    type String
    Address type. ip: IPv4; ipv6: IPv6; domain: domain name; port: port
    address string
    Detailed address information.
    description string
    Description
    type string
    Address type. ip: IPv4; ipv6: IPv6; domain: domain name; port: port
    address str
    Detailed address information.
    description str
    Description
    type str
    Address type. ip: IPv4; ipv6: IPv6; domain: domain name; port: port
    address String
    Detailed address information.
    description String
    Description
    type String
    Address type. ip: IPv4; ipv6: IPv6; domain: domain name; port: port

    ControlPolicyDestinationCidrListV1, ControlPolicyDestinationCidrListV1Args

    Address string
    Detailed address information.
    Description string
    Description
    Type string
    Address type. ip: IPv4; ipv6: IPv6; domain: domain name; port: port
    Address string
    Detailed address information.
    Description string
    Description
    Type string
    Address type. ip: IPv4; ipv6: IPv6; domain: domain name; port: port
    address string
    Detailed address information.
    description string
    Description
    type string
    Address type. ip: IPv4; ipv6: IPv6; domain: domain name; port: port
    address String
    Detailed address information.
    description String
    Description
    type String
    Address type. ip: IPv4; ipv6: IPv6; domain: domain name; port: port
    address string
    Detailed address information.
    description string
    Description
    type string
    Address type. ip: IPv4; ipv6: IPv6; domain: domain name; port: port
    address str
    Detailed address information.
    description str
    Description
    type str
    Address type. ip: IPv4; ipv6: IPv6; domain: domain name; port: port
    address String
    Detailed address information.
    description String
    Description
    type String
    Address type. ip: IPv4; ipv6: IPv6; domain: domain name; port: port

    ControlPolicySourceCidrListV1, ControlPolicySourceCidrListV1Args

    Address string
    Detailed address information.
    Description string
    Description
    Type string
    Address type. ip: IPv4; ipv6: IPv6; domain: domain name; port: port
    Address string
    Detailed address information.
    Description string
    Description
    Type string
    Address type. ip: IPv4; ipv6: IPv6; domain: domain name; port: port
    address string
    Detailed address information.
    description string
    Description
    type string
    Address type. ip: IPv4; ipv6: IPv6; domain: domain name; port: port
    address String
    Detailed address information.
    description String
    Description
    type String
    Address type. ip: IPv4; ipv6: IPv6; domain: domain name; port: port
    address string
    Detailed address information.
    description string
    Description
    type string
    Address type. ip: IPv4; ipv6: IPv6; domain: domain name; port: port
    address str
    Detailed address information.
    description str
    Description
    type str
    Address type. ip: IPv4; ipv6: IPv6; domain: domain name; port: port
    address String
    Detailed address information.
    description String
    Description
    type String
    Address type. ip: IPv4; ipv6: IPv6; domain: domain name; port: port

    Import

    $ pulumi import bytepluscc:fwcenter/controlPolicy:ControlPolicy example "rule_id|direction"
    

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

    Package Details

    Repository
    bytepluscc byteplus-sdk/pulumi-bytepluscc
    License
    MPL-2.0
    Notes
    This Pulumi package is based on the bytepluscc Terraform Provider.
    bytepluscc logo
    Viewing docs for bytepluscc v0.0.40
    published on Monday, Jul 13, 2026 by Byteplus

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial