File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -525,10 +525,10 @@ def _resolve(self) -> ResponseBuilder:
525
525
for route in self ._routes :
526
526
if method != route .method :
527
527
continue
528
- match : Optional [re .Match ] = route .rule .match (path )
529
- if match :
528
+ match_results : Optional [re .Match ] = route .rule .match (path )
529
+ if match_results :
530
530
logger .debug ("Found a registered route. Calling function" )
531
- return self ._call_route (route , match .groupdict ()) # pass fn args
531
+ return self ._call_route (route , match_results .groupdict ()) # pass fn args
532
532
533
533
logger .debug (f"No match found for path { path } and method { method } " )
534
534
return self ._not_found (method )
Original file line number Diff line number Diff line change @@ -68,18 +68,18 @@ class AppSyncAuthorizerResponse:
68
68
is authorized to make calls to the GraphQL API. If this value is
69
69
true, execution of the GraphQL API continues. If this value is false,
70
70
an UnauthorizedException is raised
71
- max_age: Optional[ int]
71
+ max_age: int, optional
72
72
Set the ttlOverride. The number of seconds that the response should be
73
73
cached for. If no value is returned, the value from the API (if configured)
74
74
or the default of 300 seconds (five minutes) is used. If this is 0, the response
75
75
is not cached.
76
- resolver_context: Optional[ Dict[str, Any]]
76
+ resolver_context: Dict[str, Any], optional
77
77
A JSON object visible as `$ctx.identity.resolverContext` in resolver templates
78
78
79
79
The resolverContext object only supports key-value pairs. Nested keys are not supported.
80
80
81
81
Warning: The total size of this JSON object must not exceed 5MB.
82
- deny_fields: Optional[ List[str]]
82
+ deny_fields: List[str], optional
83
83
A list of fields that will be set to `null` regardless of the resolver's return.
84
84
85
85
A field is either `TypeName.FieldName`, or an ARN such as
You can’t perform that action at this time.
0 commit comments