Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::CLOUDFW::FwSwitch

Última atualização: Jun 27, 2026

Ativa um switch do Cloud Firewall.

Sintaxe

{
  "Type": "ALIYUN::CLOUDFW::FwSwitch",
  "Properties": {
    "IpaddrList": List,
    "IpVersion": String,
    "MemberUid": String,
    "ResourceTypeList": List,
    "RegionList": List
  }
}

Propriedades

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

IpaddrList

List

Não

Não

Endereços IP.

Nota

Especifique pelo menos uma das seguintes propriedades: IpaddrList, RegionList ou ResourceTypeList.

Exemplo: ["192,0.X.X","192,0.X.X"].

IpVersion

String

Não

Não

Versão do IP.

Nenhuma

MemberUid

String

Não

Não

ID exclusivo da conta de membro.

Nenhuma

RegionList

List

Não

Não

Regiões.

Nota

Especifique pelo menos uma das seguintes propriedades: IpaddrList, RegionList ou ResourceTypeList.

Exemplo: ["cn-hangzhou","cn-shanghai"].

ResourceTypeList

List

Não

Não

Tipos de ativo.

Valores válidos:

  • BastionHostIP: endereço IP de saída de um bastion host.

  • BastionHostIngressIP: endereço IP de entrada de um bastion host.

  • EcsEIP: Elastic IP Address (EIP) de uma instância do Elastic Compute Service (ECS).

  • EcsPublicIP: endereço IP público de uma instância do ECS.

  • EIP: o EIP.

  • EniEIP: EIP de uma elastic network interface (ENI).

  • NatEIP: EIP de um NAT gateway.

  • SlbEIP: EIP de uma instância do Server Load Balancer (SLB).

  • SlbPublicIP: endereço IP público de uma instância do SLB.

  • NatPublicIP: endereço IP público de um NAT gateway.

  • HAVIP: endereço IP virtual de alta disponibilidade (HAVIP).

Nota

Especifique pelo menos uma das seguintes propriedades: IpaddrList, RegionList ou ResourceTypeList.

Exemplo: ["EcsPublicIp","NatEip"].

Valores de retorno

Fn::GetAtt

Nenhum.

Exemplos

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  IpaddrList:
    Description:
      en: 'The list of IP addresses.

        **Note**: You must specify at least one of the following parameters: `IpaddrList`, `RegionList`, or `ResourceTypeList`.'
    MaxLength: 200
    Required: false
    Type: Json
  RegionList:
    Description:
      en: 'The list of regions.

        **Note**: You must specify at least one of the following parameters: `IpaddrList`, `RegionList`, or `ResourceTypeList`.'
    MaxLength: 200
    Required: false
    Type: Json
  ResourceTypeList:
    Description:
      en: 'The list of resource types. Valid values:

        - BastionHostIP: The egress IP address of a bastion host.

        - BastionHostIngressIP: The ingress IP address of a bastion host.

        - EcsEIP: The EIP of an ECS instance.

        - EcsPublicIP: The public IP address of an ECS instance.

        - EIP: An Elastic IP address (EIP).

        - EniEIP: The EIP of an elastic network interface.

        - NatEIP: The EIP of a NAT Gateway.

        - SlbEIP: The EIP of an SLB instance.

        - SlbPublicIP: The public IP address of an SLB instance.

        - NatPublicIP: The public IP address of a NAT Gateway.

        - HAVIP: A high-availability virtual IP address (HAVIP).

        **Note**: You must specify at least one of the following parameters: `IpaddrList`, `RegionList`, or `ResourceTypeList`.'
    MaxLength: 200
    Required: false
    Type: Json
Resources:
  FwSwitch:
    Properties:
      IpaddrList:
        Ref: IpaddrList
      RegionList:
        Ref: RegionList
      ResourceTypeList:
        Ref: ResourceTypeList
    Type: ALIYUN::CLOUDFW::FwSwitch
                        
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "IpaddrList": {
      "Type": "Json",
      "Description": {
        "en": "The list of IP addresses.\n**Note**: You must specify at least one of the following parameters: `IpaddrList`, `RegionList`, or `ResourceTypeList`."
      },
      "Required": false,
      "MaxLength": 200
    },
    "ResourceTypeList": {
      "Type": "Json",
      "Description": {
        "en": "The list of resource types. Valid values:\n- BastionHostIP: The egress IP address of a bastion host.\n- BastionHostIngressIP: The ingress IP address of a bastion host.\n- EcsEIP: The EIP of an ECS instance.\n- EcsPublicIP: The public IP address of an ECS instance.\n- EIP: An Elastic IP address (EIP).\n- EniEIP: The EIP of an elastic network interface.\n- NatEIP: The EIP of a NAT Gateway.\n- SlbEIP: The EIP of an SLB instance.\n- SlbPublicIP: The public IP address of an SLB instance.\n- NatPublicIP: The public IP address of a NAT Gateway.\n- HAVIP: A high-availability virtual IP address (HAVIP).\n**Note**: You must specify at least one of the following parameters: `IpaddrList`, `RegionList`, or `ResourceTypeList`."
      },
      "Required": false,
      "MaxLength": 200
    },
    "RegionList": {
      "Type": "Json",
      "Description": {
        "en": "The list of regions.\n**Note**: You must specify at least one of the following parameters: `IpaddrList`, `RegionList`, or `ResourceTypeList`."
      },
      "Required": false,
      "MaxLength": 200
    }
  },
  "Resources": {
    "FwSwitch": {
      "Type": "ALIYUN::CLOUDFW::FwSwitch",
      "Properties": {
        "IpaddrList": {
          "Ref": "IpaddrList"
        },
        "ResourceTypeList": {
          "Ref": "ResourceTypeList"
        },
        "RegionList": {
          "Ref": "RegionList"
        }
      }
    }
  }
}