update_package_scope
¶
update_package_scope(
package_id: PackageID,
operation: PackageScopeOperationEnum,
package_user_list: PackageUserList,
*,
config_overrides: Optional[OpenSearchClientConfig] = None,
) -> UpdatePackageScopeResponse
Updates the scope of a package. Scope of the package defines users who can view and associate a package.
Parameters:
-
package_id(PackageID) –ID of the package whose scope is being updated.
-
operation(PackageScopeOperationEnum) –The operation to perform on the package scope (e.g., add/remove/override users).
-
package_user_list(PackageUserList) –List of users to be added or removed from the package scope.
Raises:
-
BaseException–An error occurred while processing the request.
-
DisabledOperationException–An error occured because the client wanted to access an unsupported operation.
-
InternalException–Request processing failed because of an unknown error, exception, or internal failure.
-
ResourceNotFoundException–An exception for accessing or deleting a resource that doesn't exist.
-
ValidationException–An exception for accessing or deleting a resource that doesn't exist.
-
UnknownServiceError–The service returned an error code this client does not model.