Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tests/translator/input/http_api_explicit_stage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ Resources:
Type: AWS::Serverless::HttpApi
Properties:
StageName: Prod
StageVariables:
VarName: VarValue
RouteSettings:
"$default":
ThrottlingBurstLimit: 200
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@
"MyApiProdStage": {
"Type": "AWS::ApiGatewayV2::Stage",
"Properties": {
"AutoDeploy": true,
"AutoDeploy": true,
"StageVariables": {
"VarName": "VarValue"
},
"ApiId": {
"Ref": "MyApi"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@
"MyApiProdStage": {
"Type": "AWS::ApiGatewayV2::Stage",
"Properties": {
"AutoDeploy": true,
"AutoDeploy": true,
"StageVariables": {
"VarName": "VarValue"
},
"ApiId": {
"Ref": "MyApi"
},
Expand Down
3 changes: 3 additions & 0 deletions tests/translator/output/http_api_explicit_stage.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@
"Type": "AWS::ApiGatewayV2::Stage",
"Properties": {
"AutoDeploy": true,
"StageVariables": {
"VarName": "VarValue"
},
"ApiId": {
"Ref": "MyApi"
},
Expand Down
1 change: 1 addition & 0 deletions versions/2016-10-31.md
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ CorsConfiguration | `boolean` or [CorsConfiguration Object](#cors-configuration-
DefaultRouteSettings | [RouteSettings](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-stage-routesettings.html) | The default route settings for this HTTP API.
RouteSettings | [RouteSettings](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-stage-routesettings.html) | Per-route route settings for this HTTP API.
Domain | [Domain Configuration Object](#domain-configuration-object) | Configuration settings for custom domains on API. Must contain `DomainName` and `CertificateArn`
StageVariables | Map of `string` to `string` | A map that defines the stage variables for a Stage. Variable names can have alphanumeric and underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+.

##### Return values

Expand Down