すべてのプロダクト
Search
ドキュメントセンター

Resource Orchestration Service:ALIYUN::WAF::AclRule

最終更新日:Jan 16, 2025

ALIYUN::WAF::AclRule は、指定されたドメイン名に HTTP アクセス制御リスト(ACL)ルールを追加するために使用されます。

構文

{
  "Type": "ALIYUN::WAF::AclRule",
  "Properties": {
    "Rules": String,
    "InstanceId": String,
    "Domain": String,
    "Region": String,
    "RuleId": Integer
  }
}

プロパティ

プロパティタイプ必須編集可能説明制約
RulesStringはいいいえJSON 形式の HTTP ACL ルールの詳細情報。なし
InstanceIdStringはいいいえWeb Application Firewall(WAF)インスタンスの ID。なし
DomainStringはいいいえドメイン名。なし
RegionStringいいえいいえWAF インスタンスが存在するリージョン。デフォルト値:cn。有効な値:
  • cn: 中国本土
  • cn-hongkong: 中国(香港)地域および中国国外の地域
RuleIdIntegerいいえいいえHTTP ACL ルールの ID。なし

レスポンスパラメーター

Fn::GetAtt

なし

JSON 形式

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Resources": {
    "AclRule": {
      "Type": "ALIYUN::WAF::AclRule",
      "Properties": {
        "Rules": {
          "Ref": "Rules"
        },
        "InstanceId": {
          "Ref": "InstanceId"
        },
        "Domain": {
          "Ref": "Domain"
        },
        "Region": {
          "Ref": "Region"
        },
        "RuleId": {
          "Ref": "RuleId"
        }
      }
    }
  },
  "Parameters": {
    "Rules": {
      "Type": "String",
      "Description": "詳細なアクセス制御ルールの情報。JSON 形式の文字列で表されます。" //Translated comment
    },
    "InstanceId": {
      "Type": "String",
      "Description": "WAF インスタンス ID。説明インターフェース DescribePayInfo を呼び出すことで、現在の WAF インスタンス ID を表示できます。" //Translated comment
    },
    "Domain": {
      "Type": "String",
      "Description": "ドメイン名。" //Translated comment
    },
    "Region": {
      "Type": "String",
      "Description": "WAF インスタンスが配置されているリージョン。デフォルト値:cn。有効な値:cn:中国本土 cn-hongkong:香港(中国)および中国以外" //Translated comment
      "AllowedValues": [
        "cn",
        "cn-hongkong"
      ]
    },
    "RuleId": {
      "Type": "Number",
      "Description": "詳細なアクセス制御ルール ID" //Translated comment
    }
  }
}

YAML 形式

ROSTemplateFormatVersion: '2015-09-01'
Resources:
  AclRule:
    Type: ALIYUN::WAF::AclRule
    Properties:
      Rules:
        Ref: Rules
      InstanceId:
        Ref: InstanceId
      Domain:
        Ref: Domain
      Region:
        Ref: Region
      RuleId:
        Ref: RuleId
Parameters:
  Rules:
    Type: String
    Description: 詳細なアクセス制御ルールの情報。JSON 形式の文字列で表されます。 //Translated comment
  InstanceId:
    Type: String
    Description: WAF インスタンス ID。説明インターフェース DescribePayInfo を呼び出すことで、現在の WAF インスタンス ID を表示できます。 //Translated comment
  Domain:
    Type: String
    Description: ドメイン名。 //Translated comment
  Region:
    Type: String
    Description: 'WAF インスタンスが配置されているリージョン。デフォルト値:cn。有効な値:cn:中国本土 cn-hongkong:香港(中国)および中国以外' //Translated comment
    AllowedValues:
    - cn
    - cn-hongkong
  RuleId:
    Type: Number
    Description: 詳細なアクセス制御ルール ID //Translated comment