Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::WAF3::Instance

Última atualização: Jun 27, 2026

Crie uma instância do Web Application Firewall (WAF) 3.0.

Sintaxe

{
  "Type": "ALIYUN::WAF3::Instance",
  "Properties": {
    "IgnoreExisting": Boolean,
    "IntelligentLoadBalancing": Boolean,
    "AutoRenew": Boolean,
    "Period": Integer,
    "BotWebProtection": Boolean,
    "ApiSecurity": Boolean,
    "AutoPay": Boolean,
    "TrafficBillingProtectionThreshold": Integer,
    "PayType": String,
    "LogStorage": Integer,
    "ElasticQps": Integer,
    "DomainsExtension": Integer,
    "WafVersion": String,
    "ExclusiveIPAddress": Integer,
    "AdditionalProtectionNodes": Integer,
    "Region": String,
    "QpsExtension": Integer,
    "FraudDetection": Boolean,
    "BotAppProtection": Boolean,
    "LogService": Boolean,
    "PeriodUnit": String
  }
}

Propriedades

Propriedade

Tipo

Obrigatório

Editável

Descrição

Restrição

IgnoreExisting

Boolean

Não

Não

Indica se o sistema deve ignorar uma instância existente do WAF 3.0.

Valores válidos:

  • false: o ROS verifica a unicidade da instância. Se já existir uma instância do WAF 3.0, o ROS relata um erro ao criar uma nova instância.

  • true: o ROS ignora as verificações de unicidade. Se já existir uma instância do WAF 3.0, o ROS a ignora durante a criação.

Se a instância existente do WAF 3.0 não tiver sido criada pelo ROS, ele a ignorará durante operações de atualização ou exclusão.

IntelligentLoadBalancing

Boolean

Não

Não

Indica se o balanceamento de carga inteligente está ativado.

Valores válidos:

  • true

  • false

AutoRenew

Boolean

Não

Não

Indica se a renovação automática está habilitada.

Valores válidos:

  • true

  • false

Period

Integer

Não

Não

Duração da assinatura.

Valores válidos quando PeriodUnit é definido como Month: 1, 3 e 6.

Valores válidos quando PeriodUnit é definido como Year: 1, 2 e 3.

BotWebProtection

Boolean

Não

Não

Indica se o gerenciamento de bots para proteção de aplicações web está ativado.

Valores válidos:

  • true

  • false

ApiSecurity

Boolean

Não

Não

Indica se a segurança de API está habilitada.

A segurança de API detecta respostas com características específicas para identificar riscos de vazamento de dados nas APIs. Ao ativar este recurso, você autoriza o WAF a analisar os dados relevantes. Se Region estiver definido como ChineseMainland, o serviço será implantado e os dados processados na China continental.

AutoPay

Boolean

Não

Não

Indica se o pagamento automático está ativo.

Valores válidos:

  • true

  • false

TrafficBillingProtectionThreshold

Integer

Não

Não

Limiar de proteção de faturamento de tráfego.

A proteção de faturamento de tráfego vem ativada por padrão em instâncias do WAF 3.0 com pagamento conforme o uso para evitar cobranças excessivas causadas por fatores inesperados, como ataques de inundação HTTP. Caso o pico de tráfego ultrapasse o limiar, a instância do WAF entra em sandbox e nenhuma taxa é cobrada naquela hora. Se o pico de tráfego ficar abaixo do limiar na hora seguinte, a instância sai automaticamente da sandbox. Para mais informações, consulte Visão geral da sandbox. Valores válidos: 1.000 a 100.000.

PayType

String

Sim

Não

Método de faturamento.

Valores válidos:

  • Subscription

  • PayAsYouGo

LogStorage

Integer

Não

Não

Capacidade de armazenamento de logs.

Valores válidos: 3 a 150. Unidade: TB.

ElasticQps

Integer

Não

Não

Capacidade elástica de QPS (pagamento conforme o uso).

Durante picos de tráfego de curta duração, como eventos promocionais, o QPS real pode exceder a soma do QPS da sua edição do WAF e qualquer QPS estendido adquirido. Ativar o QPS elástico gera cobrança baseada no uso excedente, mas impede que sua instância entre em sandbox e garante a continuidade do serviço. Valores válidos: 0 a 60.000.

DomainsExtension

Integer

Não

Não

Quantidade de domínios adicionais.

Utilize esta propriedade para adicionar domínios além da cota gratuita inclusa na sua edição do WAF.

A contagem de domínios independe do tipo: cada domínio de segundo nível, subdomínio ou domínio curinga conta como um domínio. Valores válidos: 1 a 5.000.

WafVersion

String

Não

Não

Edição do WAF 3.0.

Valores válidos:

  • Basic

  • Pro

  • Enterprise

  • Ultimate

ExclusiveIPAddress

Integer

Não

Não

Número de endereços IP exclusivos.

Valores válidos: 0 a 100.

AdditionalProtectionNodes

Integer

Não

Não

Quantidade de nós de proteção para ambientes multicloud ou de nuvem híbrida.

Adquira nós de proteção para proteger serviços em ambientes onde o acesso via CNAME ao WAF de nuvem pública não está disponível, como configurações multicloud, data centers, redes privadas ou nuvens privadas.

No modo de proxy reverso, cada nó de proteção suporta até 5.000 QPS para requisições HTTP ou 3.000 QPS para requisições HTTPS.

No modo de espelhamento de tráfego via SDK, cada nó suporta até 15.000 QPS para requisições HTTP ou HTTPS. Aumente o número de nós de proteção para melhorar a capacidade de proteção. Valores válidos: 0 a 500.

Region

String

Sim

Não

Região da instância do WAF 3.0.

Valores válidos:

  • OutsideChineseMainland

  • ChineseMainland

QpsExtension

Integer

Não

Não

QPS estendido.

Valores válidos: 0 a 30.000.

FraudDetection

Boolean

Não

Não

Indica se a identificação de riscos está ativada.

Requer o módulo de gerenciamento de bots. Quando números de telefone correspondem a tags de comportamento suspeito em cenários como login ou registro, o WAF bloqueia as requisições ou aciona a verificação CAPTCHA. As cobranças são baseadas no número de correspondências de tags. Valores válidos:

  • true

  • false

BotAppProtection

Boolean

Não

Não

Indica se o gerenciamento de bots para proteção de aplicativos está habilitado.

Valores válidos:

  • true

  • false

LogService

Boolean

Não

Não

Indica se a instância do WAF 3.0 oferece suporte ao Simple Log Service.

Valores válidos:

  • true

  • false

PeriodUnit

String

Não

Não

Unidade da duração da assinatura.

Valores válidos:

  • Month

  • Year

Valores de retorno

Fn::GetAtt

InstanceId: o ID da instância do WAF 3.0.

Exemplos

  • YAML format

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      AdditionalProtectionNodes:
        Default: 0
        Description:
          en: 'Each protection cluster has at least two protection nodes, and each node
            provides the protection capabilities of up to 5.000 QPS for HTTP requests
            or up to 3.000 QPS for HTTPS requests. You can add protection nodes to increase
            protection capabilities. '
        MaxValue: 500
        MinValue: 0
        Required: false
        Type: Number
      ApiSecurity:
        Description:
          en: The API security feature detects responses with specified characteristics
            to check whether data leaks occur. After you enable the feature, WAF is authorized
            to perform related analysis on your data. If you select Chinese Mainland,
            service deployment and data processing are performed in the Chinese mainland.
        Required: false
        Type: Boolean
      AutoPay:
        Default: false
        Description:
          en: Whether to auto pay the bill.
        Required: false
        Type: Boolean
      AutoRenew:
        Description:
          en: Whether to auto renew the prepay instance.
        Required: false
        Type: Boolean
      BotAppProtection:
        Default: true
        Description:
          en: Bot management module for App protection.
        Required: false
        Type: Boolean
      BotWebProtection:
        Default: true
        Description:
          en: Bot management module for Web application protection.
        Required: false
        Type: Boolean
      DomainsExtension:
        Default: 0
        Description:
          en: If the actual number of required access domain names exceeds the number
            of free domain names in the version, the number of domain names can be expanded
            according to this specification. Domain name counting does not differentiate
            between domain name types. The main domain name, sub-domain name, and pan-domain
            name are each counted as one domain name.
        MaxValue: 5000
        MinValue: 0
        Required: false
        Type: Number
      ElasticQps:
        Default: 0
        Description:
          en: The burstable QPS (pay-as-you-go) feature is suitable for scenarios that
            involve short-term or sudden traffic surges, for example, during promotions.
            In these scenarios, the traffic peak may exceed the sum of the maximum QPS
            that is supported by your WAF edition and the extended QPS. If you enable
            the feature, you are charged based on the amount of excess QPS resources that
            you use. This helps prevent your domain names from being added to a sandbox
            when QPS resources are excessively used and helps ensure service continuity.
        MaxValue: 60000
        MinValue: 0
        Required: false
        Type: Number
      ExclusiveIPAddress:
        Default: 0
        Description:
          en: Excluesive IP address number.
        MaxValue: 100
        MinValue: 0
        Required: false
        Type: Number
      FraudDetection:
        Default: true
        Description:
          en: 'You can enable this feature only after you enable the bot management module.
            If abnormal phone numbers are used in logon or registration scenarios, anomaly
            tags are matched. Requests from the abnormal phone numbers are blocked or
            CAPTCHA verification is required. You are charged based on the number of times
            that anomaly tags are matched. '
        Required: false
        Type: Boolean
      IgnoreExisting:
        Default: false
        Description:
          en: 'Whether to ignore existing WAF3 instance
    
            False: ROS will perform a uniqueness check.If the WAF3 instance exists, an
            error will be reported when creating it.
    
            True: ROS will not check the uniqueness.If the WAF3 instance exists, the creation
            process will be ignored.
    
            If the WAF3 instance is not created by ROS, it will be ignored during update
            and delete stage.'
        Required: false
        Type: Boolean
      IntelligentLoadBalancing:
        Description:
          en: Intelligent load balancer for WAF instance.
        Required: false
        Type: Boolean
      LogService:
        Description:
          en: Log service for WAF instance.
        Required: false
        Type: Boolean
      LogStorage:
        Description:
          en: Log storage capacity.
        MaxValue: 150
        MinValue: 3
        Required: false
        Type: Number
      PayType:
        AllowedValues:
        - PayAsYouGo
        - Subscription
        Description:
          en: 'The billing method of the firewall instance. Valid values:
    
            PayAsYouGo: pay-as-you-go
    
            Subscription: subscription'
        Required: true
        Type: String
      Period:
        AllowedValues:
        - 1
        - 2
        - 3
        - 6
        AssociationProperty: PayPeriod
        Description:
          en: 'The subscription period of the firewallIf PeriodUnit is month, the valid
            range is 1, 3, 6
    
            If periodUnit is year, the valid range is 1, 2, 3'
        Required: false
        Type: Number
      PeriodUnit:
        AllowedValues:
        - Month
        - Year
        AssociationProperty: PayPeriodUnit
        Description:
          en: 'The unit of the subscription duration. Valid values:
    
            Month
    
            Year
    
            Default value: Month.'
        Required: false
        Type: String
      QpsExtension:
        Default: 0
        Description:
          en: Extended QPS.
        MaxValue: 30000
        MinValue: 0
        Required: false
        Type: Number
      Region:
        AllowedValues:
        - OutsideChineseMainland
        - ChineseMainland
        Description:
          en: "Web Application Firewall is available in the following regions: regions\
            \ in the Chinese mainland, China (Hong Kong), Singapore (Singapore), Malaysia\
            \ (Kuala Lumpur), US (Silicon Valley), Germany (Frankfurt),\
            \ Indonesia (Jakarta), UAE (Dubai), and Japan (Tokyo).\n If\
            \ your origin server is deployed within the Chinese mainland, select Chinese\
            \ Mainland. If your origin server is deployed outside the Chinese mainland,\
            \ select Outside Chinese mainland. Intelligent region selection is supported."
        Required: true
        Type: String
      TrafficBillingProtectionThreshold:
        Description:
          en: In pay-as-you-go WAF 3.0, the traffic billing protection feature is automatically
            enabled to prevent unexpected and unusually high bills that result from unpredictable
            factors such as HTTP flood attacks. A bill is not generated for an hour if
            the peak traffic exceeds the traffic billing protection threshold within the
            hour. Then, your WAF instance is added to a sandbox. If the peak traffic is
            lower than the traffic billing protection threshold the next hour, your WAF
            instance is removed from the sandbox.
        MaxValue: 100000
        MinValue: 1000
        Required: false
        Type: Number
      WafVersion:
        AllowedValues:
        - Basic
        - Pro
        - Enterprise
        - Ultimate
        Description:
          en: 'The version of WAF3.0.
    
            '
        Required: false
        Type: String
    Resources:
      Instance:
        Properties:
          AdditionalProtectionNodes:
            Ref: AdditionalProtectionNodes
          ApiSecurity:
            Ref: ApiSecurity
          AutoPay:
            Ref: AutoPay
          AutoRenew:
            Ref: AutoRenew
          BotAppProtection:
            Ref: BotAppProtection
          BotWebProtection:
            Ref: BotWebProtection
          DomainsExtension:
            Ref: DomainsExtension
          ElasticQps:
            Ref: ElasticQps
          ExclusiveIPAddress:
            Ref: ExclusiveIPAddress
          FraudDetection:
            Ref: FraudDetection
          IgnoreExisting:
            Ref: IgnoreExisting
          IntelligentLoadBalancing:
            Ref: IntelligentLoadBalancing
          LogService:
            Ref: LogService
          LogStorage:
            Ref: LogStorage
          PayType:
            Ref: PayType
          Period:
            Ref: Period
          PeriodUnit:
            Ref: PeriodUnit
          QpsExtension:
            Ref: QpsExtension
          Region:
            Ref: Region
          TrafficBillingProtectionThreshold:
            Ref: TrafficBillingProtectionThreshold
          WafVersion:
            Ref: WafVersion
        Type: ALIYUN::WAF3::Instance
    Outputs:
      InstanceId:
        Description: Instance Id.
        Value:
          Fn::GetAtt:
          - Instance
          - InstanceId
                            
  • JSON format

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "IgnoreExisting": {
          "Type": "Boolean",
          "Description": {
            "en": "Whether to ignore existing WAF3 instance\nFalse: ROS will perform a uniqueness check.If the WAF3 instance exists, an error will be reported when creating it.\nTrue: ROS will not check the uniqueness.If the WAF3 instance exists, the creation process will be ignored.\nIf the WAF3 instance is not created by ROS, it will be ignored during update and delete stage."
          },
          "Required": false,
          "Default": false
        },
        "AutoRenew": {
          "Type": "Boolean",
          "Description": {
            "en": "Whether to auto renew the prepay instance."
          },
          "Required": false
        },
        "IntelligentLoadBalancing": {
          "Type": "Boolean",
          "Description": {
            "en": "Intelligent load balancer for WAF instance."
          },
          "Required": false
        },
        "Period": {
          "AssociationProperty": "PayPeriod",
          "Type": "Number",
          "Description": {
            "en": "The subscription period of the firewallIf PeriodUnit is month, the valid range is 1, 3, 6\nIf periodUnit is year, the valid range is 1, 2, 3"
          },
          "AllowedValues": [
            1,
            2,
            3,
            6
          ],
          "Required": false
        },
        "BotWebProtection": {
          "Type": "Boolean",
          "Description": {
            "en": "Bot management module for Web application protection."
          },
          "Required": false,
          "Default": true
        },
        "TrafficBillingProtectionThreshold": {
          "Type": "Number",
          "Description": {
            "en": "In pay-as-you-go WAF 3.0, the traffic billing protection feature is automatically enabled to prevent unexpected and unusually high bills that result from unpredictable factors such as HTTP flood attacks. A bill is not generated for an hour if the peak traffic exceeds the traffic billing protection threshold within the hour. Then, your WAF instance is added to a sandbox. If the peak traffic is lower than the traffic billing protection threshold the next hour, your WAF instance is removed from the sandbox."
          },
          "Required": false,
          "MinValue": 1000,
          "MaxValue": 100000
        },
        "ApiSecurity": {
          "Type": "Boolean",
          "Description": {
            "en": "The API security feature detects responses with specified characteristics to check whether data leaks occur. After you enable the feature, WAF is authorized to perform related analysis on your data. If you select Chinese Mainland, service deployment and data processing are performed in the Chinese mainland."
          },
          "Required": false
        },
        "PayType": {
          "Type": "String",
          "Description": {
            "en": "The billing method of the firewall instance. Valid values:\nPayAsYouGo: pay-as-you-go\nSubscription: subscription"
          },
          "AllowedValues": [
            "PayAsYouGo",
            "Subscription"
          ],
          "Required": true
        },
        "AutoPay": {
          "Type": "Boolean",
          "Description": {
            "en": "Whether to auto pay the bill."
          },
          "Required": false,
          "Default": false
        },
        "LogStorage": {
          "Type": "Number",
          "Description": {
            "en": "Log storage capacity."
          },
          "Required": false,
          "MinValue": 3,
          "MaxValue": 150
        },
        "ElasticQps": {
          "Type": "Number",
          "Description": {
            "en": "The burstable QPS (pay-as-you-go) feature is suitable for scenarios that involve short-term or sudden traffic surges, for example, during promotions. In these scenarios, the traffic peak may exceed the sum of the maximum QPS that is supported by your WAF edition and the extended QPS. If you enable the feature, you are charged based on the amount of excess QPS resources that you use. This helps prevent your domain names from being added to a sandbox when QPS resources are excessively used and helps ensure service continuity."
          },
          "Required": false,
          "MinValue": 0,
          "MaxValue": 60000,
          "Default": 0
        },
        "DomainsExtension": {
          "Type": "Number",
          "Description": {
            "en": "If the actual number of required access domain names exceeds the number of free domain names in the version, the number of domain names can be expanded according to this specification. Domain name counting does not differentiate between domain name types. The main domain name, sub-domain name, and pan-domain name are each counted as one domain name."
          },
          "Required": false,
          "MinValue": 0,
          "MaxValue": 5000,
          "Default": 0
        },
        "WafVersion": {
          "Type": "String",
          "Description": {
            "en": "The version of WAF3.0.\n"
          },
          "AllowedValues": [
            "Basic",
            "Pro",
            "Enterprise",
            "Ultimate"
          ],
          "Required": false
        },
        "AdditionalProtectionNodes": {
          "Type": "Number",
          "Description": {
            "en": "Each protection cluster has at least two protection nodes, and each node provides the protection capabilities of up to 5.000 QPS for HTTP requests or up to 3.000 QPS for HTTPS requests. You can add protection nodes to increase protection capabilities. "
          },
          "Required": false,
          "MinValue": 0,
          "MaxValue": 500,
          "Default": 0
        },
        "ExclusiveIPAddress": {
          "Type": "Number",
          "Description": {
            "en": "Excluesive IP address number."
          },
          "Required": false,
          "MinValue": 0,
          "MaxValue": 100,
          "Default": 0
        },
        "Region": {
          "Type": "String",
          "Description": {
            "en": "Web Application Firewall is available in the following regions: regions in the Chinese mainland, China (Hong Kong), Singapore (Singapore), Malaysia (Kuala Lumpur), US (Silicon Valley), Germany (Frankfurt), Indonesia (Jakarta), UAE (Dubai), and Japan (Tokyo).\n If your origin server is deployed within the Chinese mainland, select Chinese Mainland. If your origin server is deployed outside the Chinese mainland, select Outside Chinese mainland. Intelligent region selection is supported."
          },
          "AllowedValues": [
            "OutsideChineseMainland",
            "ChineseMainland"
          ],
          "Required": true
        },
        "QpsExtension": {
          "Type": "Number",
          "Description": {
            "en": "Extended QPS."
          },
          "Required": false,
          "MinValue": 0,
          "MaxValue": 30000,
          "Default": 0
        },
        "FraudDetection": {
          "Type": "Boolean",
          "Description": {
            "en": "You can enable this feature only after you enable the bot management module. If abnormal phone numbers are used in logon or registration scenarios, anomaly tags are matched. Requests from the abnormal phone numbers are blocked or CAPTCHA verification is required. You are charged based on the number of times that anomaly tags are matched. "
          },
          "Required": false,
          "Default": true
        },
        "BotAppProtection": {
          "Type": "Boolean",
          "Description": {
            "en": "Bot management module for App protection."
          },
          "Required": false,
          "Default": true
        },
        "LogService": {
          "Type": "Boolean",
          "Description": {
            "en": "Log service for WAF instance."
          },
          "Required": false
        },
        "PeriodUnit": {
          "AssociationProperty": "PayPeriodUnit",
          "Type": "String",
          "Description": {
            "en": "The unit of the subscription duration. Valid values:\nMonth\nYear\nDefault value: Month."
          },
          "AllowedValues": [
            "Month",
            "Year"
          ],
          "Required": false
        }
      },
      "Resources": {
        "Instance": {
          "Type": "ALIYUN::WAF3::Instance",
          "Properties": {
            "IgnoreExisting": {
              "Ref": "IgnoreExisting"
            },
            "AutoRenew": {
              "Ref": "AutoRenew"
            },
            "IntelligentLoadBalancing": {
              "Ref": "IntelligentLoadBalancing"
            },
            "Period": {
              "Ref": "Period"
            },
            "BotWebProtection": {
              "Ref": "BotWebProtection"
            },
            "TrafficBillingProtectionThreshold": {
              "Ref": "TrafficBillingProtectionThreshold"
            },
            "ApiSecurity": {
              "Ref": "ApiSecurity"
            },
            "PayType": {
              "Ref": "PayType"
            },
            "AutoPay": {
              "Ref": "AutoPay"
            },
            "LogStorage": {
              "Ref": "LogStorage"
            },
            "ElasticQps": {
              "Ref": "ElasticQps"
            },
            "DomainsExtension": {
              "Ref": "DomainsExtension"
            },
            "WafVersion": {
              "Ref": "WafVersion"
            },
            "AdditionalProtectionNodes": {
              "Ref": "AdditionalProtectionNodes"
            },
            "ExclusiveIPAddress": {
              "Ref": "ExclusiveIPAddress"
            },
            "Region": {
              "Ref": "Region"
            },
            "QpsExtension": {
              "Ref": "QpsExtension"
            },
            "FraudDetection": {
              "Ref": "FraudDetection"
            },
            "BotAppProtection": {
              "Ref": "BotAppProtection"
            },
            "LogService": {
              "Ref": "LogService"
            },
            "PeriodUnit": {
              "Ref": "PeriodUnit"
            }
          }
        }
      },
      "Outputs": {
        "InstanceId": {
          "Description": "Instance Id.",
          "Value": {
            "Fn::GetAtt": [
              "Instance",
              "InstanceId"
            ]
          }
        }
      }
    }