ACLRuleProps
Properties for defining a ACLRule.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-sag-aclrule
Initializer
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdksag"
&alicloudroscdksag.ACLRuleProps {
AclId: interface{},
DestCidr: interface{},
DestPortRange: interface{},
Direction: interface{},
IpProtocol: interface{},
Policy: interface{},
SourceCidr: interface{},
SourcePortRange: interface{},
Description: interface{},
DpiGroupIds: interface{},
DpiSignatureIds: interface{},
Name: interface{},
Priority: interface{},
Type: interface{},
}
Properties
| Name | Type | Description |
|---|---|---|
AclId | interface{} | Property aclId: Access control ID. |
DestCidr | interface{} | Property destCidr: Destination address, CIDR format and IP address range in IPv4 format. |
DestPortRange | interface{} | Property destPortRange: The destination port range. |
Direction | interface{} | Property direction: The direction of traffic to which the ACL rule applies. |
IpProtocol | interface{} | Property ipProtocol: Protocol, not case sensitive. |
Policy | interface{} | Property policy: Access: accept|drop. |
SourceCidr | interface{} | Property sourceCidr: Source address, CIDR format and IP address range in IPv4 format. |
SourcePortRange | interface{} | Property sourcePortRange: The source port range. |
Description | interface{} | Property description: Rule description information, ranging from 1 to 512 characters. |
DpiGroupIds | interface{} | Property dpiGroupIds: The ID of the application group. |
DpiSignatureIds | interface{} | Property dpiSignatureIds: The ID of the application. |
Name | interface{} | Property name: The name of the ACL rule. |
Priority | interface{} | Property priority: The priority of the ACL rule. |
Type | interface{} | Property type: The type of the ACL rule: Valid values: LAN: The ACL rule controls traffic of private IP addresses. |
AclIdRequired
AclId interface{}
- Type: interface{}
Property aclId: Access control ID.
DestCidrRequired
DestCidr interface{}
- Type: interface{}
Property destCidr: Destination address, CIDR format and IP address range in IPv4 format.
DestPortRangeRequired
DestPortRange interface{}
- Type: interface{}
Property destPortRange: The destination port range.
Valid values: -1 and 1 to 65535. Use the format 1/200 or 80/80. A value of -1/-1 means all ports.
DirectionRequired
Direction interface{}
- Type: interface{}
Property direction: The direction of traffic to which the ACL rule applies.
Valid values:
- in: inbound. Traffic from an external network to the local branch where the SAG instance is deployed.
- out: outbound. Traffic from the local branch where the SAG instance is deployed to an external network.
IpProtocolRequired
IpProtocol interface{}
- Type: interface{}
Property ipProtocol: Protocol, not case sensitive.
PolicyRequired
Policy interface{}
- Type: interface{}
Property policy: Access: accept|drop.
SourceCidrRequired
SourceCidr interface{}
- Type: interface{}
Property sourceCidr: Source address, CIDR format and IP address range in IPv4 format.
SourcePortRangeRequired
SourcePortRange interface{}
- Type: interface{}
Property sourcePortRange: The source port range.
Valid values: -1 and 1 to 65535. Use the format 1/200 or 80/80. A value of -1/-1 means all ports.
DescriptionOptional
Description interface{}
- Type: interface{}
Property description: Rule description information, ranging from 1 to 512 characters.
DpiGroupIdsOptional
DpiGroupIds interface{}
- Type: interface{}
Property dpiGroupIds: The ID of the application group.
You can enter at most 100 application group IDs at a time. You can call the ListDpiGroups operation to query application group IDs and information about the applications.
DpiSignatureIdsOptional
DpiSignatureIds interface{}
- Type: interface{}
Property dpiSignatureIds: The ID of the application.
You can enter at most 100 application IDs at a time. You can call the ListDpiSignatures operation to query application IDs and information about the applications.
NameOptional
Name interface{}
- Type: interface{}
Property name: The name of the ACL rule.
The name must be 2 to 100 characters in length, start with a letter, and can contain digits, periods (.), underscores (_), and hyphens (-).
PriorityOptional
Priority interface{}
- Type: interface{}
Property priority: The priority of the ACL rule.
A smaller value indicates a higher priority. If multiple rules have the same priority, the rule that is first delivered to the Smart Access Gateway device takes precedence. Valid values: 1 to 100. Default value: 1.
TypeOptional
Type interface{}
- Type: interface{}
Property type: The type of the ACL rule: Valid values: LAN: The ACL rule controls traffic of private IP addresses.
This is the default value. WAN: The ACL rule controls traffic of public IP addresses.