ALIYUN::ApiGateway::StageConfig is used to set the test, pre-release, and release environment variables for API groups.

Syntax

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

Properties

Name Type Required Editable Description
Variables Map Yes Yes The environment variables defined in the key-pair format. A maximum of 50 environment variables can be set.
GroupId String Yes Yes The ID of the API group.
StageName String Yes Yes The name of the environment for which to configure variables. Valid values: TEST, PRE, and RELEASE.

Response parameters

Fn::GetAtt

None

Examples

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Description": "Set variables of a stage",
  "Parameters": {
    "GroupId": {
      "Type": "String",
      "Description": "Group ID of the environment variables"
    }
  },
  "Resources": {
    "TestStage": {
      "Type": "ALIYUN::ApiGateway::StageConfig",
      "Properties": {
        "GroupId": {
          "Ref": "GroupId"
        },
        "StageName": "PRE",
        "Variables": {
          "key1": "var1",
          "key3": "var3"
        }
      }
    }
  }
}