ALIYUN::CLOUDFW::FwSwitch は、ファイアウォールを有効にするために使用されます。
構文
{
"Type": "ALIYUN::CLOUDFW::FwSwitch",
"Properties": {
"IpaddrList": List,
"ResourceTypeList": List,
"RegionList": List
}
}プロパティ
プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
IpaddrList | List | いいえ | いいえ | IP アドレス。 | 説明 IpaddrList、RegionList、ResourceTypeList のいずれか 1 つ以上のプロパティを指定する必要があります。 例: ["192.0.X.X","192.0.X.X"]。 |
RegionList | List | いいえ | いいえ | リージョン。 | 説明 IpaddrList、RegionList、ResourceTypeList のいずれか 1 つ以上のプロパティを指定する必要があります。 例: ["cn-hangzhou","cn-shanghai"]。 |
ResourceTypeList | List | いいえ | いいえ | アセットタイプ。 | 有効な値:
説明 IpaddrList、RegionList、ResourceTypeList のいずれか 1 つ以上のプロパティを指定する必要があります。 例: ["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"
}
}
}
}
}