Skip to content

Commit d8f865a

Browse files
committed
feat: Add CodeDeploy Lifecycle Hook event definition
1 parent b482152 commit d8f865a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
from aws_lambda_powertools.utilities.data_classes.common import DictWrapper
2+
3+
4+
class CodeDeployLifeCycleHookLambdaEvent(DictWrapper):
5+
@property
6+
def deployment_id(self) -> str:
7+
"""The unique ID of the calling CodeDeploy Deployment."""
8+
return self["DeploymentId"]
9+
10+
@property
11+
def lifecycle_event_hook_execution_id(self) -> str:
12+
"""The unique ID of a deployments lifecycle hook."""
13+
return self["LifecycleEventHookExecutionId"]

0 commit comments

Comments
 (0)