ALIYUN::ApiGateway::Authorization は、アプリにアクセス権限を与えることで API に権限を付与する場合に使用できます。

構文

  1. { Type : ALIYUN::ApiGateway::Authorization”, Properties : { ApiIds : List, AppIds : List, GroupId : String, StageName : String, Description : String }}

プロパティ

名前 データ型 必須/省略可能 更新可/不可 説明
ApiIds List 必須 操作する API ID を指定します。 最大 100 個の API ID を入力できます。
AppIds List 必須 一意およびシステム生成のアプリ ID 一覧。 複数の ID をサポートしています。
GroupId String 必須 一意およびシステム生成の API グループ ID
StageName String 必須 ステージ名 値 : TEST、PRE、および RELEASE
Description String 省略可能 権限の説明

コーディング例

  1. { ROSTemplateFormatVersion”: 2015-09-01”, Parameters”: { GroupId”: { Type”: String”, Default”: xxxx10b1b4dc7a2e6ba8ca3xxxx”, Description”: API group ID }, AppId”: { Type”: Number”, Default”: 5778174, Description”: APP ID }, ApiId”: { Type”: String”, Default”: xxxxx2a8b6d4ce2ad1f95cbxxxxx”, Description”: API ID } }, Resources”: { Authorization”: { Type”: ALIYUN::ApiGateway::Authorization”, Properties”: { GroupId”: { Ref”: GroupId }, StageName”: TEST”, AppIds”: [ { Ref”: AppId } ], ApiIds”: [ { Ref”: ApiId } ], Description”: demo } } }}
  1. </article>
  2. </main>