edit-icon download-icon

ALIYUN::ApiGateway::StageConfig

Last Updated: Jun 13, 2018

ALIYUN::ApiGateway::StageConfig can be used to configure variables of test, prerelease, and release stages for API groups.

Syntax

  1. {
  2. "Type" : "ALIYUN::ApiGateway::StageConfig",
  3. "Properties" : {
  4. "Variables" : Map,
  5. "GroupId" : String,
  6. "StageName" : String
  7. }
  8. }

Attributes

Attribute name Type Required Update allowed Description
Variables map Yes Yes Define variables and key pair formats. You can configure up to 50 stage variables
GroupId string Yes Yes API group ID
StageName string Yes Yes Specify the stage name, which is to be configured with variables. Values: TEST, PRE, or RELEASE

Example

  1. {
  2. "ROSTemplateFormatVersion": "2015-09-01",
  3. "Description": "Set variables of a stage",
  4. "Parameters": {
  5. "GroupId": {
  6. "Type": "String",
  7. "Description": "Group ID of the stage variables"
  8. }
  9. },
  10. "Resources": {
  11. "TestStage": {
  12. "Type": "ALIYUN::ApiGateway::StageConfig",
  13. "Properties": {
  14. "GroupId": {
  15. "Ref": "GroupId"
  16. },
  17. "StageName": "PRE",
  18. "Variables": {
  19. "key1": "var1",
  20. "key3": "var3"
  21. }
  22. }
  23. }
  24. }
  25. }
Thank you! We've received your feedback.