def METHOD_NAME(
    self,
    resource_identifier: ResourceIdentifier,
    resource_type: str,
    resource: Dict[str, Any],
    on_code_change: Callable,
):
    package_type = resource.get("Properties", dict()).get("PackageType", ZIP)
    if package_type == ZIP:
        return LambdaZipCodeTrigger(resource_identifier, self._stacks, self.base_dir, on_code_change)
    if package_type == IMAGE:
        return LambdaImageCodeTrigger(resource_identifier, self._stacks, self.base_dir, on_code_change)
    return None