policy
module provides return values for the policy function, allowing you to control deployment behavior based on conditions.
inputs
: Dictionary mapping string names to input values from static()
or dependency()
valid
: Time at which this deployment will be considered valid (future deployments will be paused until this time)msg
: Message explaining what is blocking the deploymentvalue
: The static value to pass into the ready functionready()
package
: Package name of the dependency (cannot be current package)repo_id
: Optional repository ID containing the dependency (defaults to current repository)environment
: Optional environment where dependency was builtsecret_name
: Name of secret to use as input value (mutually exclusive with output
)output
: Name of deployment output to use as input value (mutually exclusive with secret_name
)ready()