ALIYUN::CLOUDFW::AllFwSwitch

ALIYUN::CLOUDFW::AllFwSwitch类型用于开启所有防火墙开关。

语法

{
  "Type": "ALIYUN::CLOUDFW::AllFwSwitch",
  "Properties": {
    "InstanceId": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

InstanceId

String

云防火墙ID。

返回值

Fn::GetAtt

示例

YAML格式

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  InstanceId:
    Description:
      en: The ID of the cloud firewall instance.
    Required: false
    Type: String
Resources:
  AllFwSwitch:
    Properties:
      InstanceId:
        Ref: InstanceId
    Type: ALIYUN::CLOUDFW::AllFwSwitch
                        

JSON格式

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "InstanceId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the cloud firewall instance."
      },
      "Required": false
    }
  },
  "Resources": {
    "AllFwSwitch": {
      "Type": "ALIYUN::CLOUDFW::AllFwSwitch",
      "Properties": {
        "InstanceId": {
          "Ref": "InstanceId"
        }
      }
    }
  }
}