语法
{
"Type": "ALIYUN::DirectMail::Ipfilter",
"Properties": {
"IpAddress": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
IpAddress | String | 是 | 否 | IP地址、IP区间或IP段。 | 单个IP格式。例如:xxx.xxx.xxx.xxx 。 IP区间格式。例如:xxx.xxx.xxx.xxx-xxx.xxx.xxx.xxx 。 IP段格式,例如:xxx.xxx.xxx.xxx/xxx 。 |
返回值
Fn::GetAtt
CreateTime:创建时间。
IpAddress:IP地址白名单。
IpfilterId:IP对应的ID。
示例
YAML
格式
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
Resources:
ExtensionResource:
Properties:
IpAddress: 192.168.0.1
Type: ALIYUN::DirectMail::Ipfilter
Outputs:
CreateTime:
Description: Creation time.
Value:
Fn::GetAtt:
- ExtensionResource
- CreateTime
IpAddress:
Description: The whitelist IP address.
Value:
Fn::GetAtt:
- ExtensionResource
- IpAddress
IpfilterId:
Description: The ID of the IP filter.
Value:
Fn::GetAtt:
- ExtensionResource
- IpfilterId
JSON
格式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::DirectMail::Ipfilter",
"Properties": {
"IpAddress": "192.168.0.1"
}
}
},
"Outputs": {
"CreateTime": {
"Description": "Creation time.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"CreateTime"
]
}
},
"IpAddress": {
"Description": "The whitelist IP address.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"IpAddress"
]
}
},
"IpfilterId": {
"Description": "The ID of the IP filter.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"IpfilterId"
]
}
}
}
}