@@ -73,17 +73,15 @@ def get_header_value(
73
73
name : str ,
74
74
default_value : str ,
75
75
case_sensitive : Optional [bool ] = False ,
76
- ) -> str :
77
- ...
76
+ ) -> str : ...
78
77
79
78
@overload
80
79
def get_header_value (
81
80
self ,
82
81
name : str ,
83
82
default_value : Optional [str ] = None ,
84
83
case_sensitive : Optional [bool ] = False ,
85
- ) -> Optional [str ]:
86
- ...
84
+ ) -> Optional [str ]: ...
87
85
88
86
def get_header_value (
89
87
self ,
@@ -140,10 +138,6 @@ def query_string_parameters(self) -> Dict[str, str]:
140
138
"""The request query string parameters."""
141
139
return self ["query_string_parameters" ]
142
140
143
- @property
144
- def resolved_query_string_parameters (self ) -> Optional [Dict [str , str ]]:
145
- return self .query_string_parameters
146
-
147
141
@property
148
142
def resolved_headers_field (self ) -> Optional [Dict [str , Any ]]:
149
143
if self .headers is not None :
@@ -255,17 +249,21 @@ def path(self) -> str:
255
249
256
250
@property
257
251
def request_context (self ) -> vpcLatticeEventV2RequestContext :
258
- """he VPC Lattice v2 Event request context."""
252
+ """The VPC Lattice v2 Event request context."""
259
253
return vpcLatticeEventV2RequestContext (self ["requestContext" ])
260
254
261
255
@property
262
256
def query_string_parameters (self ) -> Optional [Dict [str , str ]]:
263
- """The request query string parameters."""
264
- return self .get ("queryStringParameters" )
257
+ """The request query string parameters.
265
258
266
- @property
267
- def resolved_query_string_parameters (self ) -> Optional [Dict [str , str ]]:
268
- return self .query_string_parameters
259
+ For VPC Lattice V2, the queryStringParameters will contain a Dict[str, List[str]]
260
+ so to keep compatibility with existing utilities, we merge all the values with a comma.
261
+ """
262
+ params = self .get ("queryStringParameters" )
263
+ if params :
264
+ return {key : "," .join (value ) for key , value in params .items ()}
265
+ else :
266
+ return None
269
267
270
268
@property
271
269
def resolved_headers_field (self ) -> Optional [Dict [str , str ]]:
0 commit comments