published on Monday, Jul 13, 2026 by Byteplus
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.
- 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 stringType - 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 stringId - Internet border firewall instance ID.
- Ip
Type 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).
- Repeat
Days List<int> - Recurring effective period. Required when RepeatType is Weekly or Monthly. Weekly value range: [0,6]; Monthly value range: [1,31]
- Repeat
End stringTime - Repeat expiration time. Accurate to the minute, format is hh:mm.
- Repeat
Start stringTime - 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 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 stringType - 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 stringId - Internet border firewall instance ID.
- Ip
Type 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).
- Repeat
Days []int - Recurring effective period. Required when RepeatType is Weekly or Monthly. Weekly value range: [0,6]; Monthly value range: [1,31]
- Repeat
End stringTime - Repeat expiration time. Accurate to the minute, format is hh:mm.
- Repeat
Start stringTime - 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 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_ stringtype - 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_ stringid - 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_ stringtime - Repeat expiration time. Accurate to the minute, format is hh:mm.
- repeat_
start_ stringtime - 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.
- 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 StringType - Destination port type. port: port; group: port address book.
- end
Time 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.
- internet
Firewall StringId - Internet border firewall instance ID.
- ip
Type 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).
- repeat
Days List<Integer> - Recurring effective period. Required when RepeatType is Weekly or Monthly. Weekly value range: [0,6]; Monthly value range: [1,31]
- repeat
End StringTime - Repeat expiration time. Accurate to the minute, format is hh:mm.
- repeat
Start StringTime - 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 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.
- 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 stringType - 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 stringId - 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 number[] - Recurring effective period. Required when RepeatType is Weekly or Monthly. Weekly value range: [0,6]; Monthly value range: [1,31]
- repeat
End stringTime - Repeat expiration time. Accurate to the minute, format is hh:mm.
- repeat
Start stringTime - 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 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_ strtype - 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_ strid - 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_ strtime - Repeat expiration time. Accurate to the minute, format is hh:mm.
- repeat_
start_ strtime - 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.
- 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 StringType - 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 StringId - 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 StringTime - Repeat expiration time. Accurate to the minute, format is hh:mm.
- repeat
Start StringTime - 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 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:
- Account
Id string - Unique user ID.
- Dest
Port stringGroup Type - Destination port book type
- Dest
Port List<Byteplus.List V1s Control Policy Dest Port List V1> - 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 List<string>Lists - Destination port list.
- Destination
Cidr List<Byteplus.List V1s Control Policy Destination Cidr List V1> - 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 List<string>Lists - Destination CIDR list.
- Destination
Domain List<string>Lists - Destination domain name list.
- Destination
Group stringType - Destination address book type.
- Effect
Status int - Access control policy status. 1: Inactive; 2: Deploying; 3: Active
- Hit
Cnt int - 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<Byteplus.List V1s Control Policy Source Cidr List V1> - 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 List<string>Lists - Source CIDR list
- Source
Group stringType - 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.
- Account
Id string - Unique user ID.
- Dest
Port stringGroup Type - Destination port book type
- Dest
Port []ControlList V1s Policy Dest Port List V1 - 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 []stringLists - Destination port list.
- Destination
Cidr []ControlList V1s Policy Destination Cidr List V1 - 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 []stringLists - Destination CIDR list.
- Destination
Domain []stringLists - Destination domain name list.
- Destination
Group stringType - Destination address book type.
- Effect
Status int - Access control policy status. 1: Inactive; 2: Deploying; 3: Active
- Hit
Cnt int - 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 []ControlList V1s Policy Source Cidr List V1 - 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 []stringLists - Source CIDR list
- Source
Group stringType - 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.
- account_
id string - Unique user ID.
- dest_
port_ stringgroup_ type - Destination port book type
- dest_
port_ list(object)list_ v1s - 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_ list(string)lists - Destination port list.
- destination_
cidr_ list(object)list_ v1s - 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_ list(string)lists - Destination CIDR list.
- destination_
domain_ list(string)lists - Destination domain name list.
- destination_
group_ stringtype - 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(object)list_ v1s - 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_ list(string)lists - Source CIDR list
- source_
group_ stringtype - 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.
- account
Id String - Unique user ID.
- dest
Port StringGroup Type - Destination port book type
- dest
Port List<ControlList V1s Policy Dest Port List V1> - 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 List<String>Lists - Destination port list.
- destination
Cidr List<ControlList V1s Policy Destination Cidr List V1> - 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 List<String>Lists - Destination CIDR list.
- destination
Domain List<String>Lists - Destination domain name list.
- destination
Group StringType - Destination address book type.
- effect
Status Integer - Access control policy status. 1: Inactive; 2: Deploying; 3: Active
- hit
Cnt Integer - Number of matches.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Effected Boolean - 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<ControlList V1s Policy Source Cidr List V1> - 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 List<String>Lists - Source CIDR list
- source
Group StringType - Source address book type
- update
Time Integer - Last update time of the access control policy, Unix timestamp.
- use
Count Integer - Number of policies in use.
- account
Id string - Unique user ID.
- dest
Port stringGroup Type - Destination port book type
- dest
Port ControlList V1s Policy Dest Port List V1[] - 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 string[]Lists - Destination port list.
- destination
Cidr ControlList V1s Policy Destination Cidr List V1[] - 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 string[]Lists - Destination CIDR list.
- destination
Domain string[]Lists - Destination domain name list.
- destination
Group stringType - 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 boolean - 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 ControlList V1s Policy Source Cidr List V1[] - 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 string[]Lists - Source CIDR list
- source
Group stringType - 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.
- account_
id str - Unique user ID.
- dest_
port_ strgroup_ type - Destination port book type
- dest_
port_ Sequence[Controllist_ v1s Policy Dest Port List V1] - 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_ Sequence[str]lists - Destination port list.
- destination_
cidr_ Sequence[Controllist_ v1s Policy Destination Cidr List V1] - 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_ Sequence[str]lists - Destination CIDR list.
- destination_
domain_ Sequence[str]lists - Destination domain name list.
- destination_
group_ strtype - 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_ Sequence[Controllist_ v1s Policy Source Cidr List V1] - 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_ Sequence[str]lists - Source CIDR list
- source_
group_ strtype - 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.
- account
Id String - Unique user ID.
- dest
Port StringGroup Type - Destination port book type
- dest
Port List<Property Map>List V1s - 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 List<String>Lists - Destination port list.
- destination
Cidr List<Property Map>List V1s - 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 List<String>Lists - Destination CIDR list.
- destination
Domain List<String>Lists - Destination domain name list.
- destination
Group StringType - 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 Boolean - 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<Property Map>List V1s - 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 List<String>Lists - Source CIDR list
- source
Group StringType - 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.
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) -> ControlPolicyfunc 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.
- 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 stringGroup Type - Destination port book type
- Dest
Port List<Byteplus.List V1s Control Policy Dest Port List V1> - 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 List<string>Lists - Destination port list.
- Dest
Port stringType - 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<Byteplus.List V1s Control Policy Destination Cidr List V1> - 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 List<string>Lists - Destination CIDR list.
- Destination
Domain List<string>Lists - Destination domain name list.
- Destination
Group stringType - 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 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 stringId - 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 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.
- Repeat
Days List<int> - Recurring effective period. Required when RepeatType is Weekly or Monthly. Weekly value range: [0,6]; Monthly value range: [1,31]
- Repeat
End stringTime - Repeat expiration time. Accurate to the minute, format is hh:mm.
- Repeat
Start stringTime - 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<Byteplus.List V1s Control Policy Source Cidr List V1> - 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 List<string>Lists - Source CIDR list
- Source
Group stringType - Source address book type
- Source
Type string - 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.
- 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 stringGroup Type - Destination port book type
- Dest
Port []ControlList V1s Policy Dest Port List V1Args - 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 []stringLists - Destination port list.
- Dest
Port stringType - 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 []ControlList V1s Policy Destination Cidr List V1Args - 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 []stringLists - Destination CIDR list.
- Destination
Domain []stringLists - Destination domain name list.
- Destination
Group stringType - 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 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 stringId - 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 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.
- Repeat
Days []int - Recurring effective period. Required when RepeatType is Weekly or Monthly. Weekly value range: [0,6]; Monthly value range: [1,31]
- Repeat
End stringTime - Repeat expiration time. Accurate to the minute, format is hh:mm.
- Repeat
Start stringTime - 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 []ControlList V1s Policy Source Cidr List V1Args - 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 []stringLists - Source CIDR list
- Source
Group stringType - Source address book type
- Source
Type string - 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.
- 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_ stringgroup_ type - Destination port book type
- dest_
port_ list(object)list_ v1s - 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_ list(string)lists - Destination port list.
- dest_
port_ stringtype - 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(object)list_ v1s - 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_ list(string)lists - Destination CIDR list.
- destination_
domain_ list(string)lists - Destination domain name list.
- destination_
group_ stringtype - 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_ stringid - 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_ stringtime - Repeat expiration time. Accurate to the minute, format is hh:mm.
- repeat_
start_ stringtime - 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(object)list_ v1s - 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_ list(string)lists - Source CIDR list
- source_
group_ stringtype - 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.
- 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 StringGroup Type - Destination port book type
- dest
Port List<ControlList V1s Policy Dest Port List V1> - 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 List<String>Lists - Destination port list.
- dest
Port StringType - 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<ControlList V1s Policy Destination Cidr List V1> - 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 List<String>Lists - Destination CIDR list.
- destination
Domain List<String>Lists - Destination domain name list.
- destination
Group StringType - 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 Integer - Access control policy status. 1: Inactive; 2: Deploying; 3: Active
- end
Time 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.
- hit
Cnt Integer - Number of matches.
- internet
Firewall StringId - Internet border firewall instance ID.
- ip
Type String - IP version. v4: IPv4; v6: IPv6
- is
Effected 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.
- repeat
Days List<Integer> - Recurring effective period. Required when RepeatType is Weekly or Monthly. Weekly value range: [0,6]; Monthly value range: [1,31]
- repeat
End StringTime - Repeat expiration time. Accurate to the minute, format is hh:mm.
- repeat
Start StringTime - 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<ControlList V1s Policy Source Cidr List V1> - 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 List<String>Lists - Source CIDR list
- source
Group StringType - Source address book type
- source
Type String - Source address type. net: subnet (CIDR); group: address book; location: region
- start
Time 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
- update
Time Integer - Last update time of the access control policy, Unix timestamp.
- use
Count Integer - 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 stringGroup Type - Destination port book type
- dest
Port ControlList V1s Policy Dest Port List V1[] - 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 string[]Lists - Destination port list.
- dest
Port stringType - 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 ControlList V1s Policy Destination Cidr List V1[] - 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 string[]Lists - Destination CIDR list.
- destination
Domain string[]Lists - Destination domain name list.
- destination
Group stringType - 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 stringId - Internet border firewall instance ID.
- ip
Type string - IP version. v4: IPv4; v6: IPv6
- is
Effected 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.
- repeat
Days number[] - Recurring effective period. Required when RepeatType is Weekly or Monthly. Weekly value range: [0,6]; Monthly value range: [1,31]
- repeat
End stringTime - Repeat expiration time. Accurate to the minute, format is hh:mm.
- repeat
Start stringTime - 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 ControlList V1s Policy Source Cidr List V1[] - 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 string[]Lists - Source CIDR list
- source
Group stringType - 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 boolean
- 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.
- 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_ strgroup_ type - Destination port book type
- dest_
port_ Sequence[Controllist_ v1s Policy Dest Port List V1Args] - 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_ Sequence[str]lists - Destination port list.
- dest_
port_ strtype - 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_ Sequence[Controllist_ v1s Policy Destination Cidr List V1Args] - 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_ Sequence[str]lists - Destination CIDR list.
- destination_
domain_ Sequence[str]lists - Destination domain name list.
- destination_
group_ strtype - 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_ strid - 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_ strtime - Repeat expiration time. Accurate to the minute, format is hh:mm.
- repeat_
start_ strtime - 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_ Sequence[Controllist_ v1s Policy Source Cidr List V1Args] - 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_ Sequence[str]lists - Source CIDR list
- source_
group_ strtype - 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.
- 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 StringGroup Type - Destination port book type
- dest
Port List<Property Map>List V1s - 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 List<String>Lists - Destination port list.
- dest
Port StringType - 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<Property Map>List V1s - 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 List<String>Lists - Destination CIDR list.
- destination
Domain List<String>Lists - Destination domain name list.
- destination
Group StringType - 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 StringId - Internet border firewall instance ID.
- ip
Type String - IP version. v4: IPv4; v6: IPv6
- is
Effected 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.
- 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 StringTime - Repeat expiration time. Accurate to the minute, format is hh:mm.
- repeat
Start StringTime - 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<Property Map>List V1s - 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 List<String>Lists - Source CIDR list
- source
Group StringType - 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 Boolean
- 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.
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
byteplusccTerraform Provider.
published on Monday, Jul 13, 2026 by Byteplus