ALIYUN::Memcache::Whitelist is used to create a Whitelist.
Syntax
{
"Type": "ALIYUN::Memcache::Whitelist",
"Properties": {
"InstanceId": String,
"SecurityIpGroupName": String,
"SecurityIpGroupAttribute": String,
"SecurityIps": String
}
}
Properties
Parameter | Type | Required | Editable | Description | Constraint |
---|---|---|---|---|---|
InstanceId | String | Yes | Not supported | The ID of the instance. | None |
SecurityIpGroupName | String | No | Released | The name of the IP address whitelist. | None |
SecurityIpGroupAttribute | String | No | Released | Properties of the IP address whitelist | This parameter is not specified by default. If you set this parameter to hidden, the IP address whitelist will not be displayed in the console. |
SecurityIps | String | Yes | Yes | IP addresses in the IP whitelist group. | Up to 1,000 IP addresses. Separate multiple IP addresses with commas (,). Supported formats include 0.0.0.0/0,10.23.12.24, and 10.23.12.24/24(CIDR mode). " /24 "indicates the length of the prefix in the address, ranging from 1 to 32. |
Return value
Fn::GetAtt
- SecurityIpGroupName: The name of the IP address whitelist.
- SecurityIpGroupAttribute: The attribute of the IP address whitelist.
- SecurityIps: The list of IP addresses in the IP address whitelist.
Examples
JSON
format
{
"ROSTemplateFormatVersion": "2015-09-01",
"Resources": {
"Whitelist": {
"Type": "ALIYUN::Memcache::Whitelist",
"Properties": {
"InstanceId": {
"Ref": "InstanceId"
},
"SecurityIpGroupName": {
"Ref": "SecurityIpGroupName"
},
"SecurityIpGroupAttribute": {
"Ref": "SecurityIpGroupAttribute"
},
"SecurityIps": {
"Ref": "SecurityIps"
}
}
}
},
"Parameters": {
"InstanceId": {
"Type": "String",
"Description": "Instance ID (globally unique)"
},
"SecurityIpGroupName": {
"AllowedPattern": "[a-z][a-zA-Z0-9_]*[a-zA-Z0-9]",
"MinLength": 2,
"Type": "String",
"Description": "Whitelist group",
"MaxLength": 32
},
"SecurityIpGroupAttribute": {
"Type": "String",
"Description": "The default is empty. For distinguishing between different attribute values, the console will not display the value of hidden whitelist packet."
},
"SecurityIps": {
"Type": "String",
"Description": "IP address whitelist to be modified"
}
},
"Outputs": {
"SecurityIpGroupName": {
"Description": "Whitelist group",
"Value": {
"Fn::GetAtt": [
"Whitelist",
"SecurityIpGroupName"
]
}
},
"SecurityIpGroupAttribute": {
"Description": "The default is empty. For distinguishing between different attribute values, the console will not display the value of hidden whitelist packet.",
"Value": {
"Fn::GetAtt": [
"Whitelist",
"SecurityIpGroupAttribute"
]
}
},
"SecurityIps": {
"Description": "IP address whitelist to be modified",
"Value": {
"Fn::GetAtt": [
"Whitelist",
"SecurityIps"
]
}
}
}
}
YAML
format
ROSTemplateFormatVersion: '2015-09-01'
Resources:
Whitelist:
Type: 'ALIYUN::Memcache::Whitelist'
Properties:
InstanceId:
Ref: InstanceId
SecurityIpGroupName:
Ref: SecurityIpGroupName
SecurityIpGroupAttribute:
Ref: SecurityIpGroupAttribute
SecurityIps:
Ref: SecurityIps
Parameters:
InstanceId:
Type: String
Description: Instance ID (globally unique)
SecurityIpGroupName:
AllowedPattern: '[a-z][a-zA-Z0-9_]*[a-zA-Z0-9]'
MinLength: 2
Type: String
Description: Whitelist group
MaxLength: 32
SecurityIpGroupAttribute:
Type: String
Description: >-
The default is empty. For distinguishing between different attribute
values, the console will not display the value of hidden whitelist packet.
SecurityIps:
Type: String
Description: IP address whitelist to be modified
Outputs:
SecurityIpGroupName:
Description: Whitelist group
Value:
'Fn::GetAtt':
- Whitelist
- SecurityIpGroupName
SecurityIpGroupAttribute:
Description: >-
The default is empty. For distinguishing between different attribute
values, the console will not display the value of hidden whitelist packet.
Value:
'Fn::GetAtt':
- Whitelist
- SecurityIpGroupAttribute
SecurityIps:
Description: IP address whitelist to be modified
Value:
'Fn::GetAtt':
- Whitelist
- SecurityIps