create_library_item
async
¶
create_library_item(
instance_id: InstanceId,
app_id: UUID,
app_version: AppVersion,
categories: CategoryIdList,
*,
config_overrides: Optional[AsyncQAppsClientConfig] = None,
) -> CreateLibraryItemOutput
Creates a new library item for an Amazon Q App, allowing it to be discovered and used by other allowed users.
Parameters:
-
instance_id(InstanceId) –The unique identifier of the Amazon Q Business application environment instance.
-
app_id(UUID) –The unique identifier of the Amazon Q App to publish to the library.
-
app_version(AppVersion) –The version of the Amazon Q App to publish to the library.
-
categories(CategoryIdList) –The categories to associate with the library item for easier discovery.
Raises:
-
AccessDeniedException–The client is not authorized to perform the requested operation.
-
InternalServerException–An internal service error occurred while processing the request.
-
ResourceNotFoundException–The requested resource could not be found.
-
ServiceQuotaExceededException–The requested operation could not be completed because it would exceed the service's quota or limit.
-
ThrottlingException–The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
-
UnauthorizedException–The client is not authenticated or authorized to perform the requested operation.
-
ValidationException–The input failed to satisfy the constraints specified by the service.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Create a Library Item
>>> await client.create_library_item(instance_id='0b95c9c4-89cc-4aa8-9aae-aa91cbec699f', app_id='7a11f34b-42d4-4bc8-b668-ae4a788dae1e', app_version=6, categories=['9c871ed4-1c41-4065-aefe-321cd4b61cf8'])