Sanity Library Reference Docs
    Preparing search index...

    Interface BlueprintResourceLifecycle

    Defines the lifcycle policy for this resource.

    interface BlueprintResourceLifecycle {
        deletionPolicy?: BlueprintResourceDeletionPolicy;
        dependsOn?: string | string[];
        ownershipAction?: BlueprintOwnershipAction;
    }

    Hierarchy (View Summary)

    Index

    Properties

    dependsOn?: string | string[]

    Declares a dependency on another resource or list of resources in the blueprint. The referenced resources will be deployed before this one.

    The values must be resource references starting with $.resources. followed by the name of the resources this resource depends on.

    // single dependency
    lifecycle: {
    dependsOn: '$.resources.my-dataset',
    }

    // multiple dependencies
    lifecycle: {
    dependsOn: ['$.resources.my-project', '$.resources.my-dataset'],
    }
    ownershipAction?: BlueprintOwnershipAction

    A union of all possible ownership actions.