Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::ESA::WaitingRoomRule

Última atualização: Jul 05, 2026

O recurso ALIYUN::ESA::WaitingRoomRule cria uma regra de bypass para sala de espera.

Sintaxe

{
  "Type": "ALIYUN::ESA::WaitingRoomRule",
  "Properties": {
    "RuleEnable": String,
    "Rule": String,
    "RuleName": String,
    "SiteId": Integer,
    "WaitingRoomId": String
  }
}

Propriedades

Parâmetro

Tipo

Obrigatório

Atualizável

Descrição

Restrição

Rule

String

Sim

Sim

Conteúdo da regra.

Política ou expressão condicional definida na regra.

RuleEnable

String

Sim

Sim

Estado da regra.

Não é necessário defina este parâmetro ao adicionar uma configuração global. Valores válidos:

- on: regra ativada.

- off: regra desativada.

RuleName

String

Sim

Sim

Nome da regra.

Opcional. Use este nome para consultar a regra de bypass da sala de espera.

SiteId

Integer

Sim

Não

ID do site.

Nenhuma

WaitingRoomId

String

Sim

Não

ID da sala de espera.

Identifica uma sala de espera específica.

Valores de retorno

Fn::GetAtt

  • RuleEnable: **estado da regra (on ou off).**

  • Rule: política ou expressão condicional definida na regra.

  • RuleName: nome da regra.

  • WaitingRoomRuleId: ID exclusivo da regra.

Exemplos

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  SiteId:
    Type: Number
    Description:
      en: The site ID. You can obtain this ID by calling the ListSites API.
    Required: true
  RuleEnable:
    Type: String
    Description:
      en: |-
        The state of the rule. This parameter is not required when you add a global configuration. Valid values:
        - `on`: Enables the rule.
        - `off`: Disables the rule.
    AllowedValues:
      - 'on'
      - 'off'
    Required: true
  Rule:
    Type: String
    Description:
      en: The policy or conditional expression defined in the rule.
    Required: true
  WaitingRoomId:
    Type: String
    Description:
      en: The ID of the waiting room. You can obtain this ID by calling the `listwaitingroom` API.
    Required: true
  RuleName:
    Type: String
    Description:
      en: The name of the rule. Optional. You can use this name to query the waiting room bypass rule.
    Required: true
Resources:
  ExtensionResource:
    Type: ALIYUN::ESA::WaitingRoomRule
    Properties:
      SiteId:
        Ref: SiteId
      RuleEnable:
        Ref: RuleEnable
      Rule:
        Ref: Rule
      WaitingRoomId:
        Ref: WaitingRoomId
      RuleName:
        Ref: RuleName
Outputs:
  RuleEnable:
    Description: The state of the rule.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - RuleEnable
  Rule:
    Description: The policy or conditional expression defined in the rule.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Rule
  RuleName:
    Description: The name of the rule.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - RuleName
  WaitingRoomRuleId:
    Description: The unique ID of the rule.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - WaitingRoomRuleId
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "SiteId": {
      "Type": "Number",
      "Description": {
        "en": "The site ID. You can obtain this ID by calling the ListSites API."
      },
      "Required": true
    },
    "RuleEnable": {
      "Type": "String",
      "Description": {
        "en": "The state of the rule. This parameter is not required when you add a global configuration. Valid values:\n- `on`: Enables the rule.\n- `off`: Disables the rule."
      },
      "AllowedValues": [
        "on",
        "off"
      ],
      "Required": true
    },
    "Rule": {
      "Type": "String",
      "Description": {
        "en": "The policy or conditional expression defined in the rule."
      },
      "Required": true
    },
    "WaitingRoomId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the waiting room. You can obtain this ID by calling the `listwaitingroom` API."
      },
      "Required": true
    },
    "RuleName": {
      "Type": "String",
      "Description": {
        "en": "The name of the rule. Optional. You can use this name to query the waiting room bypass rule."
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionResource": {
      "Type": "ALIYUN::ESA::WaitingRoomRule",
      "Properties": {
        "SiteId": {
          "Ref": "SiteId"
        },
        "RuleEnable": {
          "Ref": "RuleEnable"
        },
        "Rule": {
          "Ref": "Rule"
        },
        "WaitingRoomId": {
          "Ref": "WaitingRoomId"
        },
        "RuleName": {
          "Ref": "RuleName"
        }
      }
    }
  },
  "Outputs": {
    "RuleEnable": {
      "Description": "The state of the rule.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "RuleEnable"
        ]
      }
    },
    "Rule": {
      "Description": "The policy or conditional expression defined in the rule.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Rule"
        ]
      }
    },
    "RuleName": {
      "Description": "The name of the rule.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "RuleName"
        ]
      }
    },
    "WaitingRoomRuleId": {
      "Description": "The unique ID of the rule.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "WaitingRoomRuleId"
        ]
      }
    }
  }
}