update_library_item
async
¶
update_library_item(
instance_id: InstanceId,
library_item_id: UUID,
*,
config_overrides: Optional[AsyncQAppsClientConfig] = None,
status: Optional[LibraryItemStatus] = None,
categories: Optional[CategoryIdList] = None,
) -> UpdateLibraryItemOutput
Updates the library item for an Amazon Q App.
Parameters:
-
instance_id(InstanceId) –The unique identifier of the Amazon Q Business application environment instance.
-
library_item_id(UUID) –The unique identifier of the library item to update.
-
status(Optional[LibraryItemStatus], default:None) –The new status to set for the library item, such as "Published" or "Hidden".
-
categories(Optional[CategoryIdList], default:None) –The new categories to associate with the library item.
Raises:
-
AccessDeniedException–The client is not authorized to perform the requested operation.
-
ConflictException–The requested operation could not be completed due to a conflict with the current state of the resource.
-
InternalServerException–An internal service error occurred while processing the request.
-
ResourceNotFoundException–The requested resource could not be found.
-
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:
Sets the status of a library item to DISABLED
>>> await client.update_library_item(instance_id='0b95c9c4-89cc-4aa8-9aae-aa91cbec699f', library_item_id='cb9ecf72-8563-450d-9db9-994f98297316', status='DISABLED')
Source code in docs_src/capo_qapps/_services/async_q_apps.py
2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 | |