ControlPolicyProps
Properties for defining a ControlPolicy.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-cloudfw-controlpolicy
Initializer
import ros_cdk_cloudfw
ros_cdk_cloudfw.ControlPolicyProps(
acl_action: typing.Union[str, IResolvable],
description: typing.Union[str, IResolvable],
destination: typing.Union[str, IResolvable],
destination_type: typing.Union[str, IResolvable],
direction: typing.Union[str, IResolvable],
new_order: typing.Union[typing.Union[int, float], IResolvable],
proto: typing.Union[str, IResolvable],
source: typing.Union[str, IResolvable],
source_type: typing.Union[str, IResolvable],
application_name: typing.Union[str, IResolvable] = None,
application_name_list: typing.Union[IResolvable, typing.List[typing.Union[str, IResolvable]]] = None,
dest_port: typing.Union[str, IResolvable] = None,
dest_port_group: typing.Union[str, IResolvable] = None,
dest_port_type: typing.Union[str, IResolvable] = None,
domain_resolve_type: typing.Union[str, IResolvable] = None,
end_time: typing.Union[typing.Union[int, float], IResolvable] = None,
ip_version: typing.Union[str, IResolvable] = None,
region_id: typing.Union[str, IResolvable] = None,
release: typing.Union[bool, IResolvable] = None,
repeat_days: typing.Union[IResolvable, typing.List[typing.Union[typing.Union[int, float], IResolvable]]] = None,
repeat_end_time: typing.Union[str, IResolvable] = None,
repeat_start_time: typing.Union[str, IResolvable] = None,
repeat_type: typing.Union[str, IResolvable] = None,
start_time: typing.Union[typing.Union[int, float], IResolvable] = None
)
Properties
| Name | Type | Description |
|---|---|---|
acl_action | typing.Union[str, ros_cdk_core.IResolvable] | Property aclAction: Traffic access control policy set by the cloud of a firewall. |
description | typing.Union[str, ros_cdk_core.IResolvable] | Property description: Security access control policy description information. |
destination | typing.Union[str, ros_cdk_core.IResolvable] | Property destination: Security Access Control destination address policy. |
destination_type | typing.Union[str, ros_cdk_core.IResolvable] | Property destinationType: Security Access Control destination address type of policy. |
direction | typing.Union[str, ros_cdk_core.IResolvable] | Property direction: Security access control traffic direction policies. |
new_order | typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] | Property newOrder: Security access control priority policy in force. |
proto | typing.Union[str, ros_cdk_core.IResolvable] | Property proto: The protocol type of the traffic in the access control policy. |
source | typing.Union[str, ros_cdk_core.IResolvable] | Property source: Security access control source address policy. |
source_type | typing.Union[str, ros_cdk_core.IResolvable] | Property sourceType: Security access control source address type of policy. |
application_name | typing.Union[str, ros_cdk_core.IResolvable] | Property applicationName: The application type that the access control policy supports. |
application_name_list | typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]] | Property applicationNameList: List of application types supported by the access control policy. |
dest_port | typing.Union[str, ros_cdk_core.IResolvable] | Property destPort: The destination port in the access control policy. |
dest_port_group | typing.Union[str, ros_cdk_core.IResolvable] | Property destPortGroup: Security access control policy access traffic destination port address book name. |
dest_port_type | typing.Union[str, ros_cdk_core.IResolvable] | Property destPortType: Security access control policy access destination port traffic type. |
domain_resolve_type | typing.Union[str, ros_cdk_core.IResolvable] | Property domainResolveType: The domain name resolution method of the access control policy. |
end_time | typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] | Property endTime: The end time of the policy validity period for an access control policy. |
ip_version | typing.Union[str, ros_cdk_core.IResolvable] | Property ipVersion: IP version. |
region_id | typing.Union[str, ros_cdk_core.IResolvable] | Property regionId: Region ID. |
release | typing.Union[bool, ros_cdk_core.IResolvable] | Property release: The enabled state of the access control policy. |
repeat_days | typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]]] | Property repeatDays: A collection of repeated dates of policy validity for an access control policy. |
repeat_end_time | typing.Union[str, ros_cdk_core.IResolvable] | Property repeatEndTime: The repeated end time of the policy validity period for an access control policy. |
repeat_start_time | typing.Union[str, ros_cdk_core.IResolvable] | Property repeatStartTime: The repeated start time of the policy validity period for an access control policy. |
repeat_type | typing.Union[str, ros_cdk_core.IResolvable] | Property repeatType: The repetition type of the policy validity period for an access control policy. |
start_time | typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] | Property startTime: The start time of the policy validity period for an access control policy. |
acl_actionRequired
acl_action: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property aclAction: Traffic access control policy set by the cloud of a firewall.
accept: Release drop: rejected log: Observation
descriptionRequired
description: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property description: Security access control policy description information.
destinationRequired
destination: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property destination: Security Access Control destination address policy.
When DestinationType is net, Destination purpose CIDR. For example: 1.2.3.4/24 When DestinationType as a group, Destination for the purpose of the address book name. For example: db_group When DestinationType for the domain, Destination for the purpose of a domain name. For example:. * Aliyuncs.com When DestinationType as location, Destination area for the purpose (see below position encoding specific regions). For example: [ "BJ11", "ZB"]
destination_typeRequired
destination_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property destinationType: Security Access Control destination address type of policy.
net: Destination network segment (CIDR) group: destination address book domain: The purpose domain location: The purpose area
directionRequired
direction: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property direction: Security access control traffic direction policies.
in: internal and external traffic access control out: within the flow of external access control
new_orderRequired
new_order: typing.Union[typing.Union[int, float], IResolvable]
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
Property newOrder: Security access control priority policy in force.
Priority number increments sequentially from 1, lower the priority number, the higher the priority. Description -1 indicates the lowest priority.
protoRequired
proto: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property proto: The protocol type of the traffic in the access control policy.
Valid values:
- ANY (any protocol)
- TCP
- UDP
- ICMP
If the traffic direction is
outand the destination is a domain-based threat intelligence or cloud service address book, you can set the protocol only toTCP. The supported applications are HTTP, HTTPS, SMTP, SMTPS, and SSL.
sourceRequired
source: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property source: Security access control source address policy.
When SourceType for the net, Source is the source CIDR. For example: 1.2.3.0/24 When SourceType as a group, Source name for the source address book. For example: db_group When SourceType as location, Source source region (specific region position encoder see below). For example, [ "BJ11", "ZB"]
source_typeRequired
source_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property sourceType: Security access control source address type of policy.
net: Source segment (CIDR) group: source address book location: the source area
application_nameOptional
application_name: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property applicationName: The application type that the access control policy supports.
Valid values:
- FTP
- HTTP
- HTTPS
- Memcache
- MongoDB
- MQTT
- MySQL
- RDP
- Redis
- SMTP
- SMTPS
- SSH
- SSL_No_Cert
- SSL
- VNC
- ANY (all application types)
The available application types depend on the protocol type (
Proto). If you setPrototoTCP, you can setApplicationNameto any of the listed application types. If you setPrototoUDP,ICMP, orANY, you can setApplicationNameonly toANY. Specify eitherApplicationNameListorApplicationName.
application_name_listOptional
application_name_list: typing.Union[IResolvable, typing.List[typing.Union[str, IResolvable]]]
- Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]]
Property applicationNameList: List of application types supported by the access control policy.
dest_portOptional
dest_port: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property destPort: The destination port in the access control policy.
Valid values:
- If
ProtoisICMP, leave this parameter empty.
If the protocol type is ICMP, you cannot control access based on the destination port.
- If
ProtoisTCP,UDP, orANY, andDestPortTypeisgroup, leave this parameter empty.
If you set
DestPortTypetogroup(port address book), you do not need to specify a destination port number. The port address book contains all the destination ports that the policy manages.
- If
ProtoisTCP,UDP, orANY, andDestPortTypeisport, set this parameter to the destination port number.
dest_port_groupOptional
dest_port_group: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property destPortGroup: Security access control policy access traffic destination port address book name.
Description DestPortType is group, set the item.
dest_port_typeOptional
dest_port_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property destPortType: Security access control policy access destination port traffic type.
port: Port group: port address book
domain_resolve_typeOptional
domain_resolve_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property domainResolveType: The domain name resolution method of the access control policy.
Value:
- FQDN: Based on FQDN
- DNS: Based on DNS dynamic resolution
- FQDN_AND_DNS: Based on FQDN and DNS dynamic resolution
end_timeOptional
end_time: typing.Union[typing.Union[int, float], IResolvable]
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
Property endTime: The end time of the policy validity period for an access control policy.
It is represented in a second-level timestamp format. It must be the whole hour or half hour, and at least half an hour greater than the start time. Notes: When RepeatType is Permanent, EndTime is empty. When RepeatType is None, Daily, Weekly, Monthly, EndTime must havea value, and you need to set the end time.
ip_versionOptional
ip_version: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property ipVersion: IP version.
Valid values:
- 4: IPv4
- 6: IPv6
region_idOptional
region_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property regionId: Region ID.
Default to cn-hangzhou.
releaseOptional
release: typing.Union[bool, IResolvable]
- Type: typing.Union[bool, ros_cdk_core.IResolvable]
Property release: The enabled state of the access control policy.
This policy is enabled by default when it is created. Valid values:
- true: Access control policy is enabled
- false: Access control policy is not enabled
repeat_daysOptional
repeat_days: typing.Union[IResolvable, typing.List[typing.Union[typing.Union[int, float], IResolvable]]]
- Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]]]
Property repeatDays: A collection of repeated dates of policy validity for an access control policy.
When RepeatType is Permanent, None, and Daily, RepeatDays is an empty set. For example: [] When RepeatType is Weekly, RepeatDays cannot be empty. Example: [0, 6] Notes: When RepeatType is set to Weekly, RepeatDays is not allowed. When RepeatType is Monthly, RepeatDays cannot be empty. Examples: [1, 31] Notes: When RepeatType is set to Monthly, RepeatDays is not allowed to repeat.
repeat_end_timeOptional
repeat_end_time: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property repeatEndTime: The repeated end time of the policy validity period for an access control policy.
For example: 08:00, must be the hour or half time, and less than the repeat start time at least half an hour. Notes: When RepeatType is Permanent and None, RepeatEndTime is empty. When RepeatType is Daily, Weekly, or Monthly, RepeatEndTime musthave a value, and you need to set the repeat end time.
repeat_start_timeOptional
repeat_start_time: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property repeatStartTime: The repeated start time of the policy validity period for an access control policy.
For example: 08:00, must be the hour or half time, and less than the repeat end time at least half an hour. Notes: When RepeatType is Permanent and None, RepeatStartTime is empty. When RepeatType is Daily, Weekly, or Monthly, RepeatStartTime must have a value, and you need to set the repeat start time.
repeat_typeOptional
repeat_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property repeatType: The repetition type of the policy validity period for an access control policy.
Valid values:
- Permanent (default)
- None
- Daily
- Weekly
- Monthly.
start_timeOptional
start_time: typing.Union[typing.Union[int, float], IResolvable]
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
Property startTime: The start time of the policy validity period for an access control policy.
It is represented in a second-level timestamp format. It must be the whole hour or half hour, and at least half an hour less than the end time. Notes: When RepeatType is Permanent, StartTime is empty. When RepeatType is None, Daily, Weekly, Monthly, StartTime must have a value, and you need to set the start time.