UpsertResourceInput

UpsertResourceInput

UpsertResourceInput

Upsert a resource for the given parent and type and with the given data. Optionally provide custom metadata, tags and akas. If akas are passed, the first one in the array will be used to look up if the resource already exists. If no akas are passed, the first resource type AKA metadata template will be rendered using the resource data and used to look up if the resource already exists

akas [String!] Optional akas for the resource to upsert
data Scalar! The data of the resource to upsert
metadata Scalar Optional custom metadata of the resource to upsert
parent ID Optional: The parent of the resource to upsert, either as an id, or an AKA
tags Scalar Optional tags for the resource to upsert
type ID! The type of the resource to upsert, either as an id, or an AKA