VpcFirewallControlPolicyProps
Properties for defining a VpcFirewallControlPolicy
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-cloudfw-vpcfirewallcontrolpolicy
Initializer
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkcloudfw"
&alicloudroscdkcloudfw.VpcFirewallControlPolicyProps {
AclAction: interface{},
Description: interface{},
Destination: interface{},
DestinationType: interface{},
NewOrder: interface{},
Proto: interface{},
Source: interface{},
SourceType: interface{},
VpcFirewallId: interface{},
ApplicationName: interface{},
ApplicationNameList: interface{},
DestPort: interface{},
DestPortGroup: interface{},
DestPortType: interface{},
EndTime: interface{},
Lang: interface{},
MemberUid: interface{},
RegionId: interface{},
Release: interface{},
RepeatDays: interface{},
RepeatEndTime: interface{},
RepeatStartTime: interface{},
RepeatType: interface{},
StartTime: interface{},
}
Properties
Name | Type | Description |
---|---|---|
AclAction |
interface{} |
Property aclAction: The action that Cloud Firewall performs on the traffic. |
Description |
interface{} |
Property description: The description of the access control policy. |
Destination |
interface{} |
Property destination: The destination address in the access control policy. |
DestinationType |
interface{} |
Property destinationType: The type of the destination address in the access control policy. |
NewOrder |
interface{} |
Property newOrder: The priority of the access control policy. |
Proto |
interface{} |
Property proto: The type of the security protocol in the access control policy. |
Source |
interface{} |
Property source: The source address in the access control policy. |
SourceType |
interface{} |
Property sourceType: The type of the source address in the access control policy. |
VpcFirewallId |
interface{} |
Property vpcFirewallId: The ID of the policy group to which you want to add the access control policy. |
ApplicationName |
interface{} |
Property applicationName: The application type that the access control policy supports. |
ApplicationNameList |
interface{} |
Property applicationNameList: List of application types supported by the access control policy. |
DestPort |
interface{} |
Property destPort: The destination port in the access control policy. |
DestPortGroup |
interface{} |
Property destPortGroup: The address book of destination ports in the access control policy. |
DestPortType |
interface{} |
Property destPortType: The type of the destination port in the access control policy. |
EndTime |
interface{} |
Property endTime: The end time of the policy validity period for an access control policy. |
Lang |
interface{} |
Property lang: The natural language of the request and response. |
MemberUid |
interface{} |
Property memberUid: Member account UID of current Alibaba Cloud account. |
RegionId |
interface{} |
Property regionId: Region ID. |
Release |
interface{} |
Property release: The enabled state of the access control policy. |
RepeatDays |
interface{} |
Property repeatDays: A collection of repeated dates of policy validity for an access control policy. |
RepeatEndTime |
interface{} |
Property repeatEndTime: The repeated end time of the policy validity period for an access control policy. |
RepeatStartTime |
interface{} |
Property repeatStartTime: The repeated start time of the policy validity period for an access control policy. |
RepeatType |
interface{} |
Property repeatType: The repetition type of the policy validity period for an access control policy. |
StartTime |
interface{} |
Property startTime: The start time of the policy validity period for an access control policy. |
AclAction
Required
AclAction interface{}
- Type: interface{}
Property aclAction: The action that Cloud Firewall performs on the traffic.
Valid values: accept: allows the traffic. drop: denies the traffic. log: monitors the traffic.
Description
Required
Description interface{}
- Type: interface{}
Property description: The description of the access control policy.
Destination
Required
Destination interface{}
- Type: interface{}
Property destination: The destination address in the access control policy.
Set this parameter in the following way: If the DestinationType parameter is set to net, set the value to a Classless Inter-Domain Routing (CIDR) block. Example: 10.2.3.0/24. If the DestinationType parameter is set to group, set the value to the name of an address book. Example: db_group. If the DestinationType parameter is set to domain, set the value to a domain name. Example: *.aliyuncs.com.
DestinationType
Required
DestinationType interface{}
- Type: interface{}
Property destinationType: The type of the destination address in the access control policy.
Valid values: net: CIDR block group: address book domain: domain name
NewOrder
Required
NewOrder interface{}
- Type: interface{}
Property newOrder: The priority of the access control policy.
The priority value starts from 1. A smaller priority value indicates a higher priority. Note The value of -1 indicates the lowest priority.
Proto
Required
Proto interface{}
- Type: interface{}
Property proto: The type of the security protocol in the access control policy.
Source
Required
Source interface{}
- Type: interface{}
Property source: The source address in the access control policy.
If the SourceType parameter is set to net, set the value to a CIDR block. Example: 10.2.3.0/24. If the SourceType parameter is set to group, set the value to the name of an address book. Example: db_group.
SourceType
Required
SourceType interface{}
- Type: interface{}
Property sourceType: The type of the source address in the access control policy.
Valid values: net: CIDR block group: address book
VpcFirewallId
Required
VpcFirewallId interface{}
- Type: interface{}
Property vpcFirewallId: The ID of the policy group to which you want to add the access control policy.
If the VPC firewall is used to protect CEN, set the value to the ID of the CEN instance that the VPC firewall protects. Example: cen-ervw5jbw1234*. If the VPC firewall is used to protect Express Connect, set the value to the ID of the VPC firewall instance. Example: vfw-a42bbb748c91234***. Note You can call the DescribeVpcFirewallAclGroupList operation to query the ID of the policy group.
ApplicationName
Optional
ApplicationName interface{}
- Type: interface{}
Property applicationName: The application type that the access control policy supports.
Valid values: ANY (indicates that all application types are supported) FTP HTTP HTTPS MySQL SMTP SMTPS RDP VNC SSH Redis MQTT MongoDB Memcache SSL
ApplicationNameList
Optional
ApplicationNameList interface{}
- Type: interface{}
Property applicationNameList: List of application types supported by the access control policy.
DestPort
Optional
DestPort interface{}
- Type: interface{}
Property destPort: The destination port in the access control policy.
Note This parameter must be specified if the DestPortType parameter is set to port.
DestPortGroup
Optional
DestPortGroup interface{}
- Type: interface{}
Property destPortGroup: The address book of destination ports in the access control policy.
Note This parameter must be specified if the DestPortType parameter is set to group.
DestPortType
Optional
DestPortType interface{}
- Type: interface{}
Property destPortType: The type of the destination port in the access control policy.
Valid values: port: port group: address book
EndTime
Optional
EndTime interface{}
- Type: interface{}
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.
Lang
Optional
Lang interface{}
- Type: interface{}
Property lang: The natural language of the request and response.
Valid values: zh: Chinese en: English
MemberUid
Optional
MemberUid interface{}
- Type: interface{}
Property memberUid: Member account UID of current Alibaba Cloud account.
RegionId
Optional
RegionId interface{}
- Type: interface{}
Property regionId: Region ID.
Default to cn-hangzhou.
Release
Optional
Release interface{}
- Type: interface{}
Property release: The enabled state of the access control policy.
This policy is enabled by default when it is created. Value:
- true: Access control policy is enabled
- false: Access control policy is not enabled
RepeatDays
Optional
RepeatDays interface{}
- Type: interface{}
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.
RepeatEndTime
Optional
RepeatEndTime interface{}
- Type: interface{}
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.
RepeatStartTime
Optional
RepeatStartTime interface{}
- Type: interface{}
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.
RepeatType
Optional
RepeatType interface{}
- Type: interface{}
Property repeatType: The repetition type of the policy validity period for an access control policy.
Valid values:
- Permanent (default)
- None
- Daily
- Weekly
- Monthly.
StartTime
Optional
StartTime interface{}
- Type: interface{}
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.