def METHOD_NAME():
    trigger = DeploymentTrigger(
        name="A deployment automation",
    )
    trigger.set_deployment_id(uuid4())
    automation = trigger.as_automation()
    assert automation == Automation(
        name="A deployment automation",
        description="",
        enabled=True,
        trigger=Trigger(
            posture=Posture.Reactive,
            threshold=1,
            within=datetime.timedelta(0),
        ),
        actions=[
            RunDeployment(
                type="run-deployment",
                source="selected",
                parameters=None,
                deployment_id=trigger._deployment_id,
            )
        ],
        owner_resource=f"prefect.deployment.{trigger._deployment_id}",
    )