Skip to content

Commit be4af22

Browse files
FullyTypedAstraea Quinn S
authored andcommitted
Remove factory method
1 parent 1bafbf0 commit be4af22

File tree

1 file changed

+0
-20
lines changed
  • src/aws_durable_execution_sdk_python_testing

1 file changed

+0
-20
lines changed

src/aws_durable_execution_sdk_python_testing/model.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -46,26 +46,6 @@ def get_remaining_time_in_millis(self) -> int:
4646
def log(self, msg) -> None:
4747
pass # No-op for testing
4848

49-
@classmethod
50-
def from_dict(cls, data: dict[str, Any]):
51-
required_fields = ["aws_request_id"]
52-
for field in required_fields:
53-
if field not in data:
54-
msg: str = f"Missing required field: {field}"
55-
raise InvalidParameterValueException(msg)
56-
return cls(
57-
aws_request_id=data["aws_request_id"],
58-
log_group_name=data.get("log_group_name"),
59-
log_stream_name=data.get("log_stream_name"),
60-
function_name=data.get("function_name"),
61-
memory_limit_in_mb=data.get("memory_limit_in_mb"),
62-
function_version=data.get("function_version"),
63-
invoked_function_arn=data.get("invoked_function_arn"),
64-
tenant_id=data.get("tenant_id"),
65-
client_context=data.get("client_context"),
66-
identity=data.get("identity"),
67-
)
68-
6949

7050
# Web API specific models (not in Smithy but needed for web interface)
7151
@dataclass(frozen=True)

0 commit comments

Comments
 (0)