<@ULVA73B9P> What are all the actions allowed for ...
# ask-marvin
a
@Marvin What are all the actions allowed for type in terraform for prefect_automation
m
thought for 34.6 seconds
Here are all the allowed actions for type in Terraform for Prefect automations: 1.
CallWebhook
- Triggers a webhook call 2.
CancelFlowRun
- Cancels a specific flow run 3.
ChangeFlowRunState
- Modifies the state of a flow run 4.
DeclareIncident
- Creates an incident report 5.
DoNothing
- A no-op action 6.
PauseAutomation
- Pauses an automation 7.
PauseDeployment
- Pauses a deployment 8.
PauseWorkPool
- Pauses a work pool 9.
PauseWorkQueue
- Pauses a work queue 10.
ResumeAutomation
- Resumes a paused automation 11.
ResumeDeployment
- Resumes a paused deployment 12.
ResumeWorkPool
- Resumes a paused work pool 13.
ResumeWorkQueue
- Resumes a paused work queue 14.
RunDeployment
- Triggers a deployment run 15.
SendNotification
- Sends a notification 16.
SuspendFlowRun
- Suspends a flow run These actions can be used in your Terraform configurations to automate responses to various conditions in your Prefect environment. Each action serves a specific purpose in managing your workflows, deployments, and infrastructure. You can find more details about automations in the Prefect documentation and see practical examples in the Prefect blog about automations and observability.
a
@Marvin This is incorrect
m
a
Thanks! It might be helpful to put this list somewhere easily accessible from the terraform docs.
m
agreed! looking into this. I see we have a validator for that field that enumerates the options: https://github.com/PrefectHQ/terraform-provider-prefect/blob/746ec265ddb34edeb5a4b4d57428ca805fb27076/internal/utils/constants.go#L16-L32 but that doesn't seem to get generated into the documentation - let me look into that more