DATASOURCE::DirectMail::Ipfilter类型用于获取单个IP筛选器详情。
语法
{
"Type": "DATASOURCE::DirectMail::Ipfilter",
"Properties": {
"IpfilterId": String,
"RefreshOptions": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
IpfilterId | String | 是 | 是 | IP记录的ID。 | 无 |
RefreshOptions | String | 否 | 是 | 当资源栈更新时,数据源资源的刷新策略。 | 取值:
|
返回值
Fn::GetAtt
CreateTime:时间戳。
IpAddress:IP地址、IP区间或IP段。
IpfilterId:记录ID。
示例
YAML
JSON
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
IpfilterId:
Type: String
Description:
en: The ID of the resource.
Required: true
Resources:
ExtensionDataSource:
Type: DATASOURCE::DirectMail::Ipfilter
Properties:
IpfilterId:
Ref: IpfilterId
Outputs:
CreateTime:
Description: The creation time of the resource.
Value:
Fn::GetAtt:
- ExtensionDataSource
- CreateTime
IpAddress:
Description: The IP address of the resource.
Value:
Fn::GetAtt:
- ExtensionDataSource
- IpAddress
IpfilterId:
Description: The ID of the resource.
Value:
Fn::GetAtt:
- ExtensionDataSource
- IpfilterId
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"IpfilterId": {
"Type": "String",
"Description": {
"en": "The ID of the resource."
},
"Required": true
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::DirectMail::Ipfilter",
"Properties": {
"IpfilterId": {
"Ref": "IpfilterId"
}
}
}
},
"Outputs": {
"CreateTime": {
"Description": "The creation time of the resource.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"CreateTime"
]
}
},
"IpAddress": {
"Description": "The IP address of the resource.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"IpAddress"
]
}
},
"IpfilterId": {
"Description": "The ID of the resource.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"IpfilterId"
]
}
}
}
}
该文章对您有帮助吗?
- 本页导读 (1)
- 语法
- 属性
- 返回值
- 示例