Sanity Library Reference Docs
    Preparing search index...

    Interface BlueprintProjectResourceLifecycleExperimental

    Defines the lifcycle policy for this resource.

    interface BlueprintProjectResourceLifecycle {
        deletionPolicy?: BlueprintResourceDeletionPolicy;
        dependsOn?: string;
        ownershipAction?: BlueprintProjectOwnershipAction;
    }

    Hierarchy (View Summary)

    Index

    Properties

    dependsOn?: string

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

    The value must be a resource reference starting with $.resources. followed by the name of the resource this resource depends on.

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

    A union of all possible ownership actions for resources belonging to projects.