Sanity Library Reference Docs
    Preparing search index...
    interface DefineWorkflowsOptions {
        lifecycle?: WorkflowsResourceLifecycle;
        name?: string;
    }
    Index

    Properties

    Properties

    Blueprint lifecycle controls. Defaults to {deletionPolicy: 'retain'}. Set deletionPolicy: 'protect' to reject detach. Set ownershipAction to {type: 'attach', id} to adopt an existing resource or {type: 'detach'} to remove Stack ownership without deleting definitions. Deletion policies that promise deletion (allow, replace) are rejected.

    name?: string

    Blueprint resource name — the identity blueprints matches deploys on. Defaults to workflows-<deployment name> (the deployment's name is unique per config; its tag may repeat, so a tag-derived default could collide). Keep the name stable after deployment: a retained resource cannot be renamed because removing the old name is rejected.