全部產品
Search
文件中心

:ALIYUN::WAF::Instance

更新時間:Feb 05, 2024

ALIYUN::WAF::Instance類型用於建立Web Application Firewall執行個體2.0。

說明

支援的地區為亞太地區東南1(新加坡):ap-southeast-1。

文法

{
  "Type": "ALIYUN::WAF::Instance",
  "Properties": {
    "BigScreen": String,
    "PrefessionalService": String,
    "ExtDomainPackage": String,
    "LogTime": String,
    "RenewalStatus": String,
    "RenewPeriod": String,
    "Period": String,
    "ExclusiveIpPackage": String,
    "LogStorage": String,
    "SubscriptionType": String,
    "ExtBandwidth": String,
    "WafLog": String,
    "PackageCode": String
  }
}

屬性

屬性名稱

類型

必須

允許更新

描述

約束

BigScreen

String

可視化大屏服務。

取值:

  • 0:不開啟服務。

  • 1:單屏服務。

  • all:多屏服務。

PrefessionalService

String

是否使用產品專家服務。

說明

專家服務:提供DingTalk群交流,負責產品配置、策略最佳化、日常監控。

取值:

  • false:不使用。

  • true:使用。

ExtDomainPackage

String

網域名稱擴充包數量。

取值範圍:0~1000。

LogTime

String

日誌儲存時間長度。

取值:

  • 180

  • 360

單位:天。

RenewalStatus

String

自動續約狀態。

取值:

  • AutoRenewal:自動續約。

  • ManualRenewal(預設值):手動續約。

RenewPeriod

String

自動續約周期 。

當設定RenewalStatus為AutoRenewal時,必須指定該參數。

單位:月。

Period

String

預付費周期。

單位:月。

ExclusiveIpPackage

String

網域名稱獨享資源套件數量。

取值範圍:0~100。

LogStorage

String

日誌儲存容量。

取值:

  • 3

  • 5

  • 10

  • 20

  • 50

  • 100

單位:TiB 。

SubscriptionType

String

付費類型。

取值:

Subscription:預付費。

ExtBandwidth

String

頻寬擴充包。

取值範圍:0~20,000。

單位:Mbps。

WafLog

String

是否啟用Log Service。

取值:

  • true

  • false

PackageCode

String

套餐。

取值:

  • version_pro_asia:進階版。

  • version_business_asia:企業版。

  • version_enterprise_asia:旗艦版。

  • version_exclusive_cluster_asia:獨享版。

傳回值

Fn::GetAtt

  • SubscriptionType:付費類型。

  • InstanceId:WAF執行個體ID。

  • EndDate:執行個體到期時間。

樣本

JSON格式

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "PrefessionalService": {
      "Type": "String",
      "Description": ""
    },
    "BigScreen": {
      "Type": "String",
      "Description": ""
    },
    "ExtDomainPackage": {
      "Type": "String",
      "Description": ""
    },
    "LogTime": {
      "Type": "String",
      "Description": ""
    },
    "RenewalStatus": {
      "Type": "String",
      "Description": ""
    },
    "RenewPeriod": {
      "Type": "String",
      "Description": ""
    },
    "Period": {
      "Type": "String",
      "Description": ""
    },
    "ExclusiveIpPackage": {
      "Type": "String",
      "Description": ""
    },
    "LogStorage": {
      "Type": "String",
      "Description": ""
    },
    "SubscriptionType": {
      "Type": "String",
      "Description": "Subscription type of the instance"
    },
    "ExtBandwidth": {
      "Type": "String",
      "Description": ""
    },
    "WafLog": {
      "Type": "String",
      "Description": ""
    },
    "PackageCode": {
      "Type": "String",
      "Description": ""
    }
  },
  "Resources": {
    "WAFInstance": {
      "Type": "ALIYUN::WAF::Instance",
      "Properties": {
        "PrefessionalService": {
          "Ref": "PrefessionalService"
        },
        "BigScreen": {
          "Ref": "BigScreen"
        },
        "ExtDomainPackage": {
          "Ref": "ExtDomainPackage"
        },
        "LogTime": {
          "Ref": "LogTime"
        },
        "RenewalStatus": {
          "Ref": "RenewalStatus"
        },
        "RenewPeriod": {
          "Ref": "RenewPeriod"
        },
        "Period": {
          "Ref": "Period"
        },
        "ExclusiveIpPackage": {
          "Ref": "ExclusiveIpPackage"
        },
        "LogStorage": {
          "Ref": "LogStorage"
        },
        "SubscriptionType": {
          "Ref": "SubscriptionType"
        },
        "ExtBandwidth": {
          "Ref": "ExtBandwidth"
        },
        "WafLog": {
          "Ref": "WafLog"
        },
        "PackageCode": {
          "Ref": "PackageCode"
        }
      }
    }
  },
  "Outputs": {
    "SubscriptionType": {
      "Description": "Subscription type of the instance",
      "Value": {
        "Fn::GetAtt": [
          "WAFInstance",
          "SubscriptionType"
        ]
      }
    },
    "Trial": {
      "Description": "Trial version",
      "Value": {
        "Fn::GetAtt": [
          "WAFInstance",
          "Trial"
        ]
      }
    },
    "InstanceId": {
      "Description": "Instance ID",
      "Value": {
        "Fn::GetAtt": [
          "WAFInstance",
          "InstanceId"
        ]
      }
    },
    "InDebt": {
      "Description": "Instance is overdue",
      "Value": {
        "Fn::GetAtt": [
          "WAFInstance",
          "InDebt"
        ]
      }
    },
    "RemainDay": {
      "Description": "Number of available days for WAF Trial version",
      "Value": {
        "Fn::GetAtt": [
          "WAFInstance",
          "RemainDay"
        ]
      }
    },
    "EndDate": {
      "Description": "Due date of the instance",
      "Value": {
        "Fn::GetAtt": [
          "WAFInstance",
          "EndDate"
        ]
      }
    }
  }
}

YAML格式

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
 PrefessionalService:
  Type: String
  Description: ''
 BigScreen:
  Type: String
  Description: ''
 ExtDomainPackage:
  Type: String
  Description: ''
 LogTime:
  Type: String
  Description: ''
 RenewalStatus:
  Type: String
  Description: ''
 RenewPeriod:
  Type: String
  Description: ''
 Period:
  Type: String
  Description: ''
 ExclusiveIpPackage:
  Type: String
  Description: ''
 LogStorage:
  Type: String
  Description: ''
 SubscriptionType:
  Type: String
  Description: Subscription type of the instance
 ExtBandwidth:
  Type: String
  Description: ''
 WafLog:
  Type: String
  Description: ''
 PackageCode:
  Type: String
  Description: ''
Resources:
 WAFInstance:
  Type: 'ALIYUN::WAF::Instance'
  Properties:
   PrefessionalService:
    Ref: PrefessionalService
   BigScreen:
    Ref: BigScreen
   ExtDomainPackage:
    Ref: ExtDomainPackage
   LogTime:
    Ref: LogTime
   RenewalStatus:
    Ref: RenewalStatus
   RenewPeriod:
    Ref: RenewPeriod
   Period:
    Ref: Period
   ExclusiveIpPackage:
    Ref: ExclusiveIpPackage
   LogStorage:
    Ref: LogStorage
   SubscriptionType:
    Ref: SubscriptionType
   ExtBandwidth:
    Ref: ExtBandwidth
   WafLog:
    Ref: WafLog
   PackageCode:
    Ref: PackageCode
Outputs:
 SubscriptionType:
  Description: Subscription type of the instance
  Value:
   'Fn::GetAtt':
    - WAFInstance
    - SubscriptionType
 Trial:
  Description: Trial version
  Value:
   'Fn::GetAtt':
    - WAFInstance
    - Trial
 InstanceId:
  Description: Instance ID
  Value:
   'Fn::GetAtt':
    - WAFInstance
    - InstanceId
 InDebt:
  Description: Instance is overdue
  Value:
   'Fn::GetAtt':
    - WAFInstance
    - InDebt
 RemainDay:
  Description: Number of available days for WAF Trial version
  Value:
   'Fn::GetAtt':
    - WAFInstance
    - RemainDay
 EndDate:
  Description: Due date of the instance
  Value:
   'Fn::GetAtt':
    - WAFInstance
    - EndDate