Skip to content

CreateLibraryItem

Source: src/AWS/QApps/CreateLibraryItem.ts

Runtime binding for qapps:CreateLibraryItem.

Publishes a version of the bound Q App into the instance’s library so other users can discover and run it. Provide the implementation with Effect.provide(AWS.QApps.CreateLibraryItemHttp).

// init — bind the operation to the Q App
const createLibraryItem = yield* AWS.QApps.CreateLibraryItem(app);
// runtime
const item = yield* createLibraryItem({
appVersion: 1,
categories: [categoryId],
});
console.log(item.libraryItemId);