{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/RestApiId",
  "/properties/StageName"
 ],
 "definitions": {
  "AccessLogSetting": {
   "additionalProperties": false,
   "properties": {
    "DestinationArn": {
     "type": "string"
    },
    "Format": {
     "type": "string"
    }
   },
   "type": "object"
  },
  "CanarySetting": {
   "additionalProperties": false,
   "properties": {
    "DeploymentId": {
     "type": "string"
    },
    "PercentTraffic": {
     "maximum": 100,
     "minimum": 0,
     "type": "number"
    },
    "StageVariableOverrides": {
     "additionalProperties": false,
     "patternProperties": {
      "[a-zA-Z0-9]+": {
       "type": "string"
      }
     },
     "type": "object"
    },
    "UseStageCache": {
     "type": "boolean"
    }
   },
   "type": "object"
  },
  "MethodSetting": {
   "additionalProperties": false,
   "properties": {
    "CacheDataEncrypted": {
     "type": "boolean"
    },
    "CacheTtlInSeconds": {
     "type": "integer"
    },
    "CachingEnabled": {
     "type": "boolean"
    },
    "DataTraceEnabled": {
     "type": "boolean"
    },
    "HttpMethod": {
     "type": "string"
    },
    "LoggingLevel": {
     "type": "string"
    },
    "MetricsEnabled": {
     "type": "boolean"
    },
    "ResourcePath": {
     "pattern": "^/.*$",
     "type": "string"
    },
    "ThrottlingBurstLimit": {
     "minimum": 0,
     "type": "integer"
    },
    "ThrottlingRateLimit": {
     "minimum": 0,
     "type": "number"
    }
   },
   "type": "object"
  },
  "Tag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "maxLength": 128,
     "minLength": 1,
     "type": "string"
    },
    "Value": {
     "maxLength": 256,
     "minLength": 0,
     "type": "string"
    }
   },
   "required": [
    "Key",
    "Value"
   ],
   "type": "object"
  }
 },
 "primaryIdentifier": [
  "/properties/RestApiId",
  "/properties/StageName"
 ],
 "properties": {
  "AccessLogSetting": {
   "$ref": "#/definitions/AccessLogSetting"
  },
  "CacheClusterEnabled": {
   "type": "boolean"
  },
  "CacheClusterSize": {
   "type": "string"
  },
  "CanarySetting": {
   "$ref": "#/definitions/CanarySetting"
  },
  "ClientCertificateId": {
   "type": "string"
  },
  "DeploymentId": {
   "type": "string"
  },
  "Description": {
   "type": "string"
  },
  "DocumentationVersion": {
   "type": "string"
  },
  "MethodSettings": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/MethodSetting"
   },
   "type": "array",
   "uniqueItems": true
  },
  "RestApiId": {
   "type": "string"
  },
  "StageName": {
   "type": "string"
  },
  "Tags": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "type": "array",
   "uniqueItems": false
  },
  "TracingEnabled": {
   "type": "boolean"
  },
  "Variables": {
   "additionalProperties": false,
   "patternProperties": {
    "[a-zA-Z0-9]+": {
     "type": "string"
    }
   },
   "type": "object"
  }
 },
 "required": [
  "RestApiId"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-apigateway",
 "tagging": {
  "cloudFormationSystemTags": true,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::ApiGateway::Stage"
}
