File tree 4 files changed +5
-26
lines changed
aws_lambda_powertools/utilities/data_classes
4 files changed +5
-26
lines changed Original file line number Diff line number Diff line change @@ -34,10 +34,6 @@ class ALBEvent(BaseProxyEvent):
34
34
def request_context (self ) -> ALBEventRequestContext :
35
35
return ALBEventRequestContext (self ["requestContext" ])
36
36
37
- @property
38
- def multi_value_query_string_parameters (self ) -> dict [str , list [str ]]:
39
- return self .get ("multiValueQueryStringParameters" ) or {}
40
-
41
37
@property
42
38
def resolved_query_string_parameters (self ) -> dict [str , list [str ]]:
43
39
return self .multi_value_query_string_parameters or super ().resolved_query_string_parameters
Original file line number Diff line number Diff line change @@ -118,16 +118,9 @@ def resource(self) -> str:
118
118
def multi_value_headers (self ) -> dict [str , list [str ]]:
119
119
return CaseInsensitiveDict (self .get ("multiValueHeaders" ))
120
120
121
- @property
122
- def multi_value_query_string_parameters (self ) -> dict [str , list [str ]]:
123
- return self .get ("multiValueQueryStringParameters" ) or {} # key might exist but can be `null`
124
-
125
121
@property
126
122
def resolved_query_string_parameters (self ) -> dict [str , list [str ]]:
127
- if self .multi_value_query_string_parameters :
128
- return self .multi_value_query_string_parameters
129
-
130
- return super ().resolved_query_string_parameters
123
+ return self .multi_value_query_string_parameters or super ().resolved_query_string_parameters
131
124
132
125
@property
133
126
def resolved_headers_field (self ) -> dict [str , Any ]:
Original file line number Diff line number Diff line change @@ -57,6 +57,8 @@ class BedrockAgentEvent(BaseProxyEvent):
57
57
See https://docs.aws.amazon.com/bedrock/latest/userguide/agents-create.html
58
58
"""
59
59
60
+ # httpMethod is inherited from BaseProxyEvent class.
61
+
60
62
@property
61
63
def message_version (self ) -> str :
62
64
return self ["messageVersion" ]
@@ -77,10 +79,6 @@ def action_group(self) -> str:
77
79
def api_path (self ) -> str :
78
80
return self ["apiPath" ]
79
81
80
- @property
81
- def http_method (self ) -> str :
82
- return self ["httpMethod" ]
83
-
84
82
@property
85
83
def parameters (self ) -> list [BedrockAgentProperty ]:
86
84
parameters = self .get ("parameters" ) or []
Original file line number Diff line number Diff line change 16
16
17
17
18
18
class VPCLatticeEventBase (BaseProxyEvent ):
19
+ # is_base64_encoded and path are inherited from BaseProxyEvent class.
20
+
19
21
@property
20
22
def body (self ) -> str :
21
23
"""The VPC Lattice body."""
@@ -169,16 +171,6 @@ def version(self) -> str:
169
171
"""The VPC Lattice v2 Event version"""
170
172
return self ["version" ]
171
173
172
- @property
173
- def is_base64_encoded (self ) -> bool | None :
174
- """A boolean flag to indicate if the applicable request payload is Base64-encode"""
175
- return self .get ("isBase64Encoded" )
176
-
177
- @property
178
- def path (self ) -> str :
179
- """The VPC Lattice v2 Event path"""
180
- return self ["path" ]
181
-
182
174
@property
183
175
def request_context (self ) -> vpcLatticeEventV2RequestContext :
184
176
"""The VPC Lattice v2 Event request context."""
You can’t perform that action at this time.
0 commit comments