ALIYUN::ApiGateway::StageConfig は、API グループのテスト、プレリリース、およびリリースステージの変数を設定する場合に使用できます。

構文

  1. { Type : ALIYUN::ApiGateway::StageConfig”, Properties : { Variables : Map, GroupId : String, StageName : String }}

プロパティ

名前 データ型 必須/省略可能 更新可/不可 説明
Variables Map 必須 変数とキーペア形式を定義します。 最大 50 個のステージ変数を設定できます。
GroupId String 必須 API グループ ID
StageName String 必須 変数で構成するステージ名を指定します。 値 : TEST、PRE、または RELEASE

コーディング例

  1. { ROSTemplateFormatVersion”: 2015-09-01”, Description”: Set variables of a stage”, Parameters”: { GroupId”: { Type”: String”, Description”: Group ID of the stage variables } }, Resources”: { TestStage”: { Type”: ALIYUN::ApiGateway::StageConfig”, Properties”: { GroupId”: { Ref”: GroupId }, StageName”: PRE”, Variables”: { key1”: var1”, key3”: var3 } } } }}
  1. </article>
  2. </main>