We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44589bb commit eb4bef7Copy full SHA for eb4bef7
aws_lambda_powertools/utilities/data_classes/kinesis_stream_event.py
@@ -128,7 +128,11 @@ def records(self) -> Iterator[KinesisStreamRecord]:
128
129
@property
130
def window(self) -> KinesisStreamWindow | None:
131
- return KinesisStreamWindow(self["window"])
+ window = self.get("window")
132
+ if window:
133
+ return KinesisStreamWindow(window)
134
+
135
+ return window
136
137
138
def state(self) -> dict[str, Any]:
0 commit comments