Skip to content

Commit

Permalink
Merge pull request #3543 from aws/release-v1.85.0
Browse files Browse the repository at this point in the history
Release 1.85.0 (to main)
  • Loading branch information
gracelu0 authored Feb 15, 2024
2 parents e8d1da7 + d7af889 commit cf74322
Show file tree
Hide file tree
Showing 7 changed files with 860 additions and 328 deletions.
2 changes: 1 addition & 1 deletion samtranslator/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.84.0"
__version__ = "1.85.0"
1 change: 1 addition & 0 deletions samtranslator/plugins/api/implicit_http_api_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ def _add_route_settings_to_api(

# Handle Resource-level conditions if necessary
api_route_settings = resource.properties.get("RouteSettings", {})
sam_expect(api_route_settings, api_id, "RouteSettings").to_be_a_map()
event_route_settings = event_properties.get("RouteSettings", {})
if condition:
event_route_settings = make_conditional(condition, event_properties.get("RouteSettings", {}))
Expand Down
394 changes: 272 additions & 122 deletions samtranslator/schema/schema.json

Large diffs are not rendered by default.

374 changes: 291 additions & 83 deletions schema_source/cloudformation-docs.json

Large diffs are not rendered by default.

394 changes: 272 additions & 122 deletions schema_source/cloudformation.schema.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Resources:
ChatApi:
Type: AWS::Serverless::HttpApi
Properties:
Name: !Ref 'ChatApiName'
RouteSettings:
- RouteKey: !Sub 'ANY /${ChatApiName}'
ThrottlingBurstLimit: 100
ThrottlingRateLimit: 100
14 changes: 14 additions & 0 deletions tests/translator/output/error_http_api_list_route_settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"_autoGeneratedBreakdownErrorMessage": [
"Invalid Serverless Application Specification document. ",
"Number of errors found: 1. ",
"Resource with id [ChatApi] is invalid. ",
"Property 'RouteSettings' should be a map."
],
"errorMessage": "Invalid Serverless Application Specification document. Number of errors found: 1. Resource with id [ChatApi] is invalid. Property 'RouteSettings' should be a map.",
"errors": [
{
"errorMessage": "Resource with id [ChatApi] is invalid. Property 'RouteSettings' should be a map."
}
]
}

0 comments on commit cf74322

Please sign in to comment.