Skip to content

Commit 8a357d1

Browse files
committed
Add sign_empty method to EventSigner protocol
1 parent 5e093f8 commit 8a357d1

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "enhancement",
3+
"description": "Added sign_empty method to EventSigner protocol for signing empty events."
4+
}

packages/smithy-core/src/smithy_core/aio/interfaces/auth.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,17 @@ async def sign(self, *, event: Any, identity: I, properties: SP) -> Any:
3131
"""Get a signed version of the event.
3232
3333
:param event: The event to be signed.
34+
:param identity: The identity to use to sign the event.
35+
:param properties: Additional properties used to sign the event.
36+
"""
37+
...
38+
39+
async def sign_empty(self, *, event: Any, identity: I, properties: SP) -> Any:
40+
"""Get a signed version of an empty event.
41+
42+
:param event: The empty event to be signed.
43+
:param identity: The identity to use to sign the event.
44+
:param properties: Additional properties used to sign the event.
3445
"""
3546
...
3647

0 commit comments

Comments
 (0)