ALIYUN::CLOUDFW::NatFirewallControlPolicy is used to add an access control policy for a NAT firewall.
Syntax
{
"Type": "ALIYUN::CLOUDFW::NatFirewallControlPolicy",
"Properties": {
"ApplicationNameList": List,
"AclAction": String,
"Destination": String,
"Description": String,
"DestinationType": String,
"Direction": String,
"NatGatewayId": String,
"NewOrder": Integer,
"Proto": String,
"SourceType": String,
"Source": String,
"DestPort": Integer,
"DestPortType": String,
"DomainResolveType": Integer,
"DestPortGroup": String,
"EndTime": String,
"IpVersion": Integer,
"RepeatEndTime": String,
"RepeatDays": List,
"RepeatType": String,
"RepeatStartTime": String,
"Release": Boolean,
"StartTime": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
ApplicationNameList | List | Yes | Yes | The application types supported by the access control policy. | None. |
AclAction | String | Yes | Yes | The action that Cloud Firewall performs on the traffic. | Valid values:
|
Destination | String | Yes | Yes | The destination address in the access control policy. | Valid values:
|
Description | String | Yes | Yes | The description of the access control policy. | None. |
DestinationType | String | Yes | Yes | The type of the destination address in the access control policy. | Valid values:
|
Direction | String | Yes | No | The direction of the traffic to which the access control policy applies. |
|
NatGatewayId | String | Yes | No | The ID of the NAT gateway. | None. |
NewOrder | Integer | Yes | Yes | The priority of the access control policy. | The priority value starts from 1. A smaller priority value indicates a higher priority. |
Proto | String | Yes | Yes | The protocol type in the access control policy. | Valid values:
|
SourceType | String | Yes | Yes | The type of the source address in the access control policy. | Valid values:
|
Source | String | Yes | Yes | The source address in the access control policy. | Valid values:
|
DestPort | Integer | No | Yes | The destination port in the access control policy. | Valid values:
Note If Proto is set to ICMP, access control does not take effect on the destination port.
Note If DestPortType is set to group, you do not need to specify destination ports. A value of group specifies a destination port address book. All ports that the access control policy controls are included in the destination port address book.
|
DestPortType | String | No | Yes | The type of the destination port in the access control policy. | Valid values:
|
DomainResolveType | Integer | No | Yes | The domain name resolution method of the access control policy. | Valid values:
|
DestPortGroup | String | No | Yes | The name of the destination port address book in the access control policy. | Note You must specify this property when DestPortType is set to group. |
EndTime | String | No | Yes | The point in time when the validity period of the access control policy ends. | The value is a timestamp in seconds. The value must be on the hour or on the half hour, and at least 30 minutes later than the start time. Note If RepeatType is set to Permanent, the value of EndTime is empty. If RepeatType is set to None, Daily, Weekly, or Monthly, the value of EndTime must be a specified time point. |
IpVersion | Integer | No | Yes | The supported IP address version. | Set the value to 4, which specifies IPv4. Default value: 4. |
RepeatEndTime | String | No | Yes | The point in time when the recurrence of the access control policy ends. | Example: 23:30. The value must be on the hour or on the half hour, and at least 30 minutes later than the start time. Note If RepeatType is set to Permanent or None, the value of RepeatEndTime is empty. If RepeatType is set to Daily, Weekly, or Monthly, the value of RepeatEndTime must be a specified time point. |
RepeatDays | List | No | Yes | The days of a week or of a month on which the access control policy takes effect. |
Note The values specified for RepeatDays cannot be repeated if RepeatType is set to Weekly.
Note The values specified for RepeatDays cannot be repeated if RepeatType is set to Monthly. |
RepeatType | String | No | Yes | The recurrence type of the access control policy. | Valid values:
|
RepeatStartTime | String | No | Yes | The point in time when the recurrence of the access control policy starts. | Example: 08:00. The value must be on the hour or on the half hour, and at least 30 minutes earlier than the end time. Note If RepeatType is set to Permanent or None, the value of RepeatStartTime is empty. If RepeatType is set to Daily, Weekly, or Monthly, the value of RepeatStartTime must be specified. |
Release | Boolean | No | Yes | Specifies whether to enable the access control policy. | By default, an access control policy is enabled after it is created. Valid values:
|
StartTime | String | No | Yes | The point in time when the validity period of the access control policy starts. | The value is a timestamp in seconds. The value must be on the hour or on the half hour, and at least 30 minutes earlier than the end time. Note If RepeatType is set to Permanent, the value of StartTime is empty. If RepeatType is set to None, Daily, Weekly, or Monthly, the value of StartTime must be specified. |
Return values
Fn::GetAtt
AclUuid: the unique ID of the access control policy.
Direction: the direction of the traffic to which the access control policy applies.
NatGatewayId: the ID of the NAT gateway.