create_retriever
¶
create_retriever(
application_id: ApplicationId,
type: RetrieverType,
display_name: RetrieverName,
configuration: RetrieverConfiguration,
*,
config_overrides: Optional[QBusinessClientConfig] = None,
role_arn: Optional[RoleArn] = None,
client_token: Optional[ClientToken] = None,
tags: Optional[Tags] = None,
) -> CreateRetrieverResponse
Adds a retriever to your Amazon Q Business application.
Parameters:
-
application_id(ApplicationId) –The identifier of your Amazon Q Business application.
-
type(RetrieverType) –The type of retriever you are using.
-
display_name(RetrieverName) –The name of your retriever.
-
role_arn(Optional[RoleArn], default:None) –The ARN of an IAM role used by Amazon Q Business to access the basic authentication credentials stored in a Secrets Manager secret.
-
client_token(Optional[ClientToken], default:None) –A token that you provide to identify the request to create your Amazon Q Business application retriever.
-
tags(Optional[Tags], default:None) –A list of key-value pairs that identify or categorize the retriever. You can also use tags to help control access to the retriever. Tag keys and values can consist of Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @.
Raises:
-
AccessDeniedException–You don't have access to perform this action. Make sure you have the required permission policies and user accounts and try again.
-
ConflictException–You are trying to perform an action that conflicts with the current status of your resource. Fix any inconsistencies with your resources and try again.
-
InternalServerException–An issue occurred with the internal server used for your Amazon Q Business service. Wait some minutes and try again, or contact Support for help.
-
ResourceNotFoundException–The application or plugin resource you want to use doesn’t exist. Make sure you have provided the correct resource and try again.
-
ServiceQuotaExceededException–You have exceeded the set limits for your Amazon Q Business service.
-
ThrottlingException–The request was denied due to throttling. Reduce the number of requests and try again.
-
ValidationException–The input doesn't meet the constraints set by the Amazon Q Business service. Provide the correct input and try again.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_qbusiness/_services/q_business.py
5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 | |