ALIYUN::ApiGateway::StageConfig は、API グループのテスト、ステージング、または本番環境変数を設定するために使用されます。
構文
{
"Type": "ALIYUN::ApiGateway::StageConfig",
"Properties": {
"Variables": Map,
"GroupId": String,
"StageName": String
}
}プロパティ
プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
GroupId | String | はい | はい | API グループの ID。 | なし。 |
StageName | String | はい | はい | API グループを設定する環境の名前。 | 有効な値:
|
Variables | Map | はい | はい | 環境変数。 |
|
戻り値
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: TESTJSON 形式
{
"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"
}
}
}
}