ALIYUN::CLOUDFW::FwSwitch类型用于开启防火墙开关。
语法
{
"Type": "ALIYUN::CLOUDFW::FwSwitch",
"Properties": {
"IpaddrList": List,
"ResourceTypeList": List,
"RegionList": List
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
IpaddrList | List | 否 | 否 | IP地址列表。 | 说明 IpaddrList、RegionList、ResourceTypeList 三个参数不允许同时为空,必须为其中一个参数设置取值。 示例值:["192.0.X.X","192.0.X.X"] |
RegionList | List | 否 | 否 | 区域列表。 | 说明 IpaddrList、RegionList、ResourceTypeList 三个参数不允许同时为空,必须为其中一个参数设置取值。 示例值:["cn-hangzhou","cn-shanghai"] |
ResourceTypeList | List | 否 | 否 | 资产类型列表。 | 取值:
说明 IpaddrList、RegionList、ResourceTypeList 三个参数不允许同时为空,必须为其中一个参数设置取值。 示例值:["EcsPublicIp","NatEip"] |
返回值
Fn::GetAtt
无
示例
YAML
格式
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
IpaddrList:
Description:
en: 'The IP address list.
**Note**: The IpaddrList, RegionList, and ResourceTypeList arguments are not
allowed to be empty at the same time. A value must be set for one of the three
arguments.'
MaxLength: 200
Required: false
Type: Json
RegionList:
Description:
en: 'The region list.
**Note**: The IpaddrList, RegionList, and ResourceTypeList arguments are not
allowed to be empty at the same time. A value must be set for one of the three
arguments.'
MaxLength: 200
Required: false
Type: Json
ResourceTypeList:
Description:
en: 'The asset type list. Valid values:
- BastionHostIP: Bastion machine exit IP.
- BastionHostIngressIP: The entrance IP of the fortress machine.
- EcsEIP: ECS EIP.
- EcsPublicIP: ECS public network IP.
- EIP: Elastic Public IP.
- EniEIP: Elastic Network card EIP.
- NatEIP: NAT EIP.
- SlbEIP: SLB EIP.
- SlbPublicIP: SLB public network IP.
- NatPublicIP: NAT public IP
- HAVIP: High Availability Virtual IP.
**Note**: The IpaddrList, RegionList, and ResourceTypeList arguments are not
allowed to be empty at the same time. A value must be set for one of the three
arguments.'
MaxLength: 200
Required: false
Type: Json
Resources:
FwSwitch:
Properties:
IpaddrList:
Ref: IpaddrList
RegionList:
Ref: RegionList
ResourceTypeList:
Ref: ResourceTypeList
Type: ALIYUN::CLOUDFW::FwSwitch
JSON
格式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"IpaddrList": {
"Type": "Json",
"Description": {
"en": "The IP address list.\n**Note**: The IpaddrList, RegionList, and ResourceTypeList arguments are not allowed to be empty at the same time. A value must be set for one of the three arguments."
},
"Required": false,
"MaxLength": 200
},
"ResourceTypeList": {
"Type": "Json",
"Description": {
"en": "The asset type list. Valid values:\n- BastionHostIP: Bastion machine exit IP.\n- BastionHostIngressIP: The entrance IP of the fortress machine.\n- EcsEIP: ECS EIP.\n- EcsPublicIP: ECS public network IP.\n- EIP: Elastic Public IP.\n- EniEIP: Elastic Network card EIP.\n- NatEIP: NAT EIP.\n- SlbEIP: SLB EIP.\n- SlbPublicIP: SLB public network IP.\n- NatPublicIP: NAT public IP\n- HAVIP: High Availability Virtual IP.\n**Note**: The IpaddrList, RegionList, and ResourceTypeList arguments are not allowed to be empty at the same time. A value must be set for one of the three arguments."
},
"Required": false,
"MaxLength": 200
},
"RegionList": {
"Type": "Json",
"Description": {
"en": "The region list.\n**Note**: The IpaddrList, RegionList, and ResourceTypeList arguments are not allowed to be empty at the same time. A value must be set for one of the three arguments."
},
"Required": false,
"MaxLength": 200
}
},
"Resources": {
"FwSwitch": {
"Type": "ALIYUN::CLOUDFW::FwSwitch",
"Properties": {
"IpaddrList": {
"Ref": "IpaddrList"
},
"ResourceTypeList": {
"Ref": "ResourceTypeList"
},
"RegionList": {
"Ref": "RegionList"
}
}
}
}
}
文档内容是否对您有帮助?