AWS::ApiGateway::Deployment CanarySetting
CanarySetting
属性类型为该阶段中的金丝雀部署指定设置。
CanarySetting
是 StageDescription 属性类型的属性。
语法
要在 AWS CloudFormation 模板中声明此实体,请使用以下语法:
JSON
{ "PercentTraffic" :
Double
, "StageVariableOverrides" :{
, "UseStageCache" :Key
:Value
, ...}Boolean
}
YAML
PercentTraffic:
Double
StageVariableOverrides:UseStageCache:
Key
:Value
Boolean
属性
PercentTraffic
-
转换到金丝雀部署的流量百分比 (0-100)。
必需:否
类型:双精度
Update requires: No interruption
StageVariableOverrides
-
为金丝雀版本部署覆盖的阶段变量,包括在金丝雀部署中引入的新阶段变量。这些阶段变量表示为阶段变量名称及其值之间的字符串到字符串映射。
必需:否
类型:字符串的映射
Update requires: No interruption
UseStageCache
-
金丝雀部署是否使用阶段缓存。
必需:否
类型:布尔值
Update requires: No interruption
另请参阅
-
Amazon API Gateway REST API 参考中的阶段