Sanity Library Reference Docs
    Preparing search index...

    Interface BlueprintResourceLifecycle

    Defines the lifcycle policy for this resource.

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

    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',
    }
    ownershipAction?: BlueprintOwnershipAction

    A union of all possible ownership actions.