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

Resource Orchestration Service:ALIYUN::ApiGateway::StageConfig

最終更新日:Jan 16, 2025

ALIYUN::ApiGateway::StageConfig は、API グループのテスト、ステージング、または本番環境変数を設定するために使用されます。

構文

{
  "Type": "ALIYUN::ApiGateway::StageConfig",
  "Properties": {
    "Variables": Map,
    "GroupId": String,
    "StageName": String
  }
}

プロパティ

プロパティ

タイプ

必須

編集可能

説明

制約

GroupId

String

はい

はい

API グループの ID。

なし。

StageName

String

はい

はい

API グループを設定する環境の名前。

有効な値:

  • TEST

  • PRE

  • RELEASE

Variables

Map

はい

はい

環境変数。

key-pair 形式で環境変数を指定します。最大 50 個の環境変数を指定できます。

戻り値

Fn::GetAtt

なし。

説明

GroupId パラメーターの Default フィールドなど、マスクされたパラメーターの値は、ビジネス要件に基づいて変更してください。

YAML 形式

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  Variables:
    Default:
      env: test
    Type: Json
  GroupId:
    Default: c22139c9e5e04d32b90a*******
    Type: String
Description: ApiGateway StageConfig のテスト
Resources:
  StageConfig:
    Type: 'ALIYUN::ApiGateway::StageConfig'
    Properties:
      Variables:
        Ref: Variables
      GroupId:
        Ref: GroupId
      StageName: TEST

JSON 形式

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Description": "ApiGateway StageConfig のテスト",
  "Parameters": {
    "Variables": {
      "Type": "Json",
      "Default": {
        "env": "test"
      }
    },
    "GroupId": {
      "Type": "String",
      "Default": "c22139c9e5e04d32b90a*******"
    }
  },
  "Resources": {
    "StageConfig": {
      "Type": "ALIYUN::ApiGateway::StageConfig",
      "Properties": {
        "Variables": {
          "Ref": "Variables"
        },
        "GroupId": {
          "Ref": "GroupId"
        },
        "StageName": "TEST"
      }
    }
  }
}