Module aws_lambda_powertools.utilities.data_classes.code_deploy_lifecycle_hook_event

Classes

class CodeDeployLifecycleHookEvent (data: dict[str, Any], json_deserializer: Callable | None = None)

Provides a single read only access to a wrapper dict

Parameters

data : dict[str, Any]
Lambda Event Source Event payload
json_deserializer : Callable, optional
function to deserialize str, bytes, bytearray containing a JSON document to a Python obj, by default json.loads
Expand source code
class CodeDeployLifecycleHookEvent(DictWrapper):
    @property
    def deployment_id(self) -> str:
        """The unique ID of the calling CodeDeploy Deployment."""
        return self["DeploymentId"]

    @property
    def lifecycle_event_hook_execution_id(self) -> str:
        """The unique ID of a deployments lifecycle hook."""
        return self["LifecycleEventHookExecutionId"]

Ancestors

  • DictWrapper
  • collections.abc.Mapping
  • collections.abc.Collection
  • collections.abc.Sized
  • collections.abc.Iterable
  • collections.abc.Container
  • typing.Generic

Instance variables

prop deployment_id : str

The unique ID of the calling CodeDeploy Deployment.

Expand source code
@property
def deployment_id(self) -> str:
    """The unique ID of the calling CodeDeploy Deployment."""
    return self["DeploymentId"]
prop lifecycle_event_hook_execution_id : str

The unique ID of a deployments lifecycle hook.

Expand source code
@property
def lifecycle_event_hook_execution_id(self) -> str:
    """The unique ID of a deployments lifecycle hook."""
    return self["LifecycleEventHookExecutionId"]

Inherited members