ALIYUN::ApiGateway::TrafficControl は、ユーザー定義のトラフィックスロットリングポリシーの作成時に使用できます。

構文

  1. { Type : ALIYUN::ApiGateway::TrafficControl”, Properties : { TrafficControlName : String, Description : String, UserDefault : String, AppDefault : String, TrafficControlUnit : String, Special : List, ApiDefault : Integer }}

プロパティ

名前 データ型 必須/省略可能 更新可/不可 説明
TrafficControlName String 必須 トラフィックスロットリングポリシーの名前。 英字、漢字、数字、およびアンダースコア () を含む 4 - 50 文字を使用できます。 先頭文字をアンダースコア () にすることはできません。
TrafficControlUnit String 必須 トラフィックスロットリングポリシーの単位。 省略可能な値 : MINUTE、HOUR、および DAY
ApiDefault integer 必須 各 API のデフォルトのトラフィックスロットリング値
Description String 省略可能 トラフィックスロットリングの説明
UserDefault String 省略可能 各ユーザーのデフォルトのトラフィックスロットリング値
AppDefault String 省略可能 各アプリのデフォルトのトラフィックスロットリング値
Special List 省略可能 指定したユーザー定義のトラフィックスロットリングポリシーを設定します。

Special の構文

  1. Special : { SpecialType : String, SpecialKey : String, TrafficValue : Integer,}

Special のプロパティ

名前 データ型 必須/省略可能 更新可/不可 説明
SpecialType String 必須 不可 指定されたトラフィックスロットリングタイプ。 値 : APP および USER。
SpecialKey String 必須 不可 SpecialType に従って、対応する AppId アカウントまたは Alibaba Cloud アカウントを入力します。
TrafficValue integer 必須 不可 対応するトラフィックスロットリング値

レスポンス値

Fn::GetAtt

TrafficControlId: ユーザー定義のトラフィックスロットリングの ID

コーディング例

  1. { ROSTemplateFormatVersion”: 2015-09-01”, Parameters”: { AppId”: { Type”: String”, Description”: Specified APP ID } }, Resources”: { TrafficControl”: { Type”: ALIYUN::ApiGateway::TrafficControl”, Properties”: { TrafficControlName”: test_traffic_control1”, TrafficControlUnit”: MINUTE”, ApiDefault”: 400, UserDefault”: 200, AppDefault”: 100, Description”: demo2”, Special”: [ { SpecialType”: APP”, SpecialKey”: { Ref”: AppId }, TrafficValue”: 80 } ] } } }}
  1. </article>
  2. </main>