UNPKG

aws-sdk-eks

Version:
937 lines 128 kB
import {Request} from '../lib/request'; import {Response} from '../lib/response'; import {AWSError} from '../lib/error'; import {Service} from '../lib/service'; import {ServiceConfigurationOptions} from '../lib/service'; import {ConfigBase as Config} from '../lib/config-base'; interface Blob {} declare class QBusiness extends Service { /** * Constructs a service object. This object has one method for each API operation. */ constructor(options?: QBusiness.Types.ClientConfiguration) config: Config & QBusiness.Types.ClientConfiguration; /** * Asynchronously deletes one or more documents added using the BatchPutDocument API from an Amazon Q index. You can see the progress of the deletion, and any error messages related to the process, by using CloudWatch. */ batchDeleteDocument(params: QBusiness.Types.BatchDeleteDocumentRequest, callback?: (err: AWSError, data: QBusiness.Types.BatchDeleteDocumentResponse) => void): Request<QBusiness.Types.BatchDeleteDocumentResponse, AWSError>; /** * Asynchronously deletes one or more documents added using the BatchPutDocument API from an Amazon Q index. You can see the progress of the deletion, and any error messages related to the process, by using CloudWatch. */ batchDeleteDocument(callback?: (err: AWSError, data: QBusiness.Types.BatchDeleteDocumentResponse) => void): Request<QBusiness.Types.BatchDeleteDocumentResponse, AWSError>; /** * Adds one or more documents to an Amazon Q index. You use this API to: ingest your structured and unstructured documents and documents stored in an Amazon S3 bucket into an Amazon Q index. add custom attributes to documents in an Amazon Q index. attach an access control list to the documents added to an Amazon Q index. You can see the progress of the deletion, and any error messages related to the process, by using CloudWatch. */ batchPutDocument(params: QBusiness.Types.BatchPutDocumentRequest, callback?: (err: AWSError, data: QBusiness.Types.BatchPutDocumentResponse) => void): Request<QBusiness.Types.BatchPutDocumentResponse, AWSError>; /** * Adds one or more documents to an Amazon Q index. You use this API to: ingest your structured and unstructured documents and documents stored in an Amazon S3 bucket into an Amazon Q index. add custom attributes to documents in an Amazon Q index. attach an access control list to the documents added to an Amazon Q index. You can see the progress of the deletion, and any error messages related to the process, by using CloudWatch. */ batchPutDocument(callback?: (err: AWSError, data: QBusiness.Types.BatchPutDocumentResponse) => void): Request<QBusiness.Types.BatchPutDocumentResponse, AWSError>; /** * Starts or continues a non-streaming Amazon Q conversation. */ chatSync(params: QBusiness.Types.ChatSyncInput, callback?: (err: AWSError, data: QBusiness.Types.ChatSyncOutput) => void): Request<QBusiness.Types.ChatSyncOutput, AWSError>; /** * Starts or continues a non-streaming Amazon Q conversation. */ chatSync(callback?: (err: AWSError, data: QBusiness.Types.ChatSyncOutput) => void): Request<QBusiness.Types.ChatSyncOutput, AWSError>; /** * Creates an Amazon Q application. */ createApplication(params: QBusiness.Types.CreateApplicationRequest, callback?: (err: AWSError, data: QBusiness.Types.CreateApplicationResponse) => void): Request<QBusiness.Types.CreateApplicationResponse, AWSError>; /** * Creates an Amazon Q application. */ createApplication(callback?: (err: AWSError, data: QBusiness.Types.CreateApplicationResponse) => void): Request<QBusiness.Types.CreateApplicationResponse, AWSError>; /** * Creates a data source connector for an Amazon Q application. CreateDataSource is a synchronous operation. The operation returns 200 if the data source was successfully created. Otherwise, an exception is raised. */ createDataSource(params: QBusiness.Types.CreateDataSourceRequest, callback?: (err: AWSError, data: QBusiness.Types.CreateDataSourceResponse) => void): Request<QBusiness.Types.CreateDataSourceResponse, AWSError>; /** * Creates a data source connector for an Amazon Q application. CreateDataSource is a synchronous operation. The operation returns 200 if the data source was successfully created. Otherwise, an exception is raised. */ createDataSource(callback?: (err: AWSError, data: QBusiness.Types.CreateDataSourceResponse) => void): Request<QBusiness.Types.CreateDataSourceResponse, AWSError>; /** * Creates an Amazon Q index. To determine if index creation has completed, check the Status field returned from a call to DescribeIndex. The Status field is set to ACTIVE when the index is ready to use. Once the index is active, you can index your documents using the BatchPutDocument API or the CreateDataSource API. */ createIndex(params: QBusiness.Types.CreateIndexRequest, callback?: (err: AWSError, data: QBusiness.Types.CreateIndexResponse) => void): Request<QBusiness.Types.CreateIndexResponse, AWSError>; /** * Creates an Amazon Q index. To determine if index creation has completed, check the Status field returned from a call to DescribeIndex. The Status field is set to ACTIVE when the index is ready to use. Once the index is active, you can index your documents using the BatchPutDocument API or the CreateDataSource API. */ createIndex(callback?: (err: AWSError, data: QBusiness.Types.CreateIndexResponse) => void): Request<QBusiness.Types.CreateIndexResponse, AWSError>; /** * Creates an Amazon Q plugin. */ createPlugin(params: QBusiness.Types.CreatePluginRequest, callback?: (err: AWSError, data: QBusiness.Types.CreatePluginResponse) => void): Request<QBusiness.Types.CreatePluginResponse, AWSError>; /** * Creates an Amazon Q plugin. */ createPlugin(callback?: (err: AWSError, data: QBusiness.Types.CreatePluginResponse) => void): Request<QBusiness.Types.CreatePluginResponse, AWSError>; /** * Adds a retriever to your Amazon Q application. */ createRetriever(params: QBusiness.Types.CreateRetrieverRequest, callback?: (err: AWSError, data: QBusiness.Types.CreateRetrieverResponse) => void): Request<QBusiness.Types.CreateRetrieverResponse, AWSError>; /** * Adds a retriever to your Amazon Q application. */ createRetriever(callback?: (err: AWSError, data: QBusiness.Types.CreateRetrieverResponse) => void): Request<QBusiness.Types.CreateRetrieverResponse, AWSError>; /** * Creates a universally unique identifier (UUID) mapped to a list of local user ids within an application. */ createUser(params: QBusiness.Types.CreateUserRequest, callback?: (err: AWSError, data: QBusiness.Types.CreateUserResponse) => void): Request<QBusiness.Types.CreateUserResponse, AWSError>; /** * Creates a universally unique identifier (UUID) mapped to a list of local user ids within an application. */ createUser(callback?: (err: AWSError, data: QBusiness.Types.CreateUserResponse) => void): Request<QBusiness.Types.CreateUserResponse, AWSError>; /** * Creates an Amazon Q web experience. */ createWebExperience(params: QBusiness.Types.CreateWebExperienceRequest, callback?: (err: AWSError, data: QBusiness.Types.CreateWebExperienceResponse) => void): Request<QBusiness.Types.CreateWebExperienceResponse, AWSError>; /** * Creates an Amazon Q web experience. */ createWebExperience(callback?: (err: AWSError, data: QBusiness.Types.CreateWebExperienceResponse) => void): Request<QBusiness.Types.CreateWebExperienceResponse, AWSError>; /** * Deletes an Amazon Q application. */ deleteApplication(params: QBusiness.Types.DeleteApplicationRequest, callback?: (err: AWSError, data: QBusiness.Types.DeleteApplicationResponse) => void): Request<QBusiness.Types.DeleteApplicationResponse, AWSError>; /** * Deletes an Amazon Q application. */ deleteApplication(callback?: (err: AWSError, data: QBusiness.Types.DeleteApplicationResponse) => void): Request<QBusiness.Types.DeleteApplicationResponse, AWSError>; /** * Deletes chat controls configured for an existing Amazon Q application. */ deleteChatControlsConfiguration(params: QBusiness.Types.DeleteChatControlsConfigurationRequest, callback?: (err: AWSError, data: QBusiness.Types.DeleteChatControlsConfigurationResponse) => void): Request<QBusiness.Types.DeleteChatControlsConfigurationResponse, AWSError>; /** * Deletes chat controls configured for an existing Amazon Q application. */ deleteChatControlsConfiguration(callback?: (err: AWSError, data: QBusiness.Types.DeleteChatControlsConfigurationResponse) => void): Request<QBusiness.Types.DeleteChatControlsConfigurationResponse, AWSError>; /** * Deletes an Amazon Q web experience conversation. */ deleteConversation(params: QBusiness.Types.DeleteConversationRequest, callback?: (err: AWSError, data: QBusiness.Types.DeleteConversationResponse) => void): Request<QBusiness.Types.DeleteConversationResponse, AWSError>; /** * Deletes an Amazon Q web experience conversation. */ deleteConversation(callback?: (err: AWSError, data: QBusiness.Types.DeleteConversationResponse) => void): Request<QBusiness.Types.DeleteConversationResponse, AWSError>; /** * Deletes an Amazon Q data source connector. While the data source is being deleted, the Status field returned by a call to the DescribeDataSource API is set to DELETING. */ deleteDataSource(params: QBusiness.Types.DeleteDataSourceRequest, callback?: (err: AWSError, data: QBusiness.Types.DeleteDataSourceResponse) => void): Request<QBusiness.Types.DeleteDataSourceResponse, AWSError>; /** * Deletes an Amazon Q data source connector. While the data source is being deleted, the Status field returned by a call to the DescribeDataSource API is set to DELETING. */ deleteDataSource(callback?: (err: AWSError, data: QBusiness.Types.DeleteDataSourceResponse) => void): Request<QBusiness.Types.DeleteDataSourceResponse, AWSError>; /** * Deletes a group so that all users and sub groups that belong to the group can no longer access documents only available to that group. For example, after deleting the group "Summer Interns", all interns who belonged to that group no longer see intern-only documents in their chat results. If you want to delete, update, or replace users or sub groups of a group, you need to use the PutGroup operation. For example, if a user in the group "Engineering" leaves the engineering team and another user takes their place, you provide an updated list of users or sub groups that belong to the "Engineering" group when calling PutGroup. */ deleteGroup(params: QBusiness.Types.DeleteGroupRequest, callback?: (err: AWSError, data: QBusiness.Types.DeleteGroupResponse) => void): Request<QBusiness.Types.DeleteGroupResponse, AWSError>; /** * Deletes a group so that all users and sub groups that belong to the group can no longer access documents only available to that group. For example, after deleting the group "Summer Interns", all interns who belonged to that group no longer see intern-only documents in their chat results. If you want to delete, update, or replace users or sub groups of a group, you need to use the PutGroup operation. For example, if a user in the group "Engineering" leaves the engineering team and another user takes their place, you provide an updated list of users or sub groups that belong to the "Engineering" group when calling PutGroup. */ deleteGroup(callback?: (err: AWSError, data: QBusiness.Types.DeleteGroupResponse) => void): Request<QBusiness.Types.DeleteGroupResponse, AWSError>; /** * Deletes an Amazon Q index. */ deleteIndex(params: QBusiness.Types.DeleteIndexRequest, callback?: (err: AWSError, data: QBusiness.Types.DeleteIndexResponse) => void): Request<QBusiness.Types.DeleteIndexResponse, AWSError>; /** * Deletes an Amazon Q index. */ deleteIndex(callback?: (err: AWSError, data: QBusiness.Types.DeleteIndexResponse) => void): Request<QBusiness.Types.DeleteIndexResponse, AWSError>; /** * Deletes an Amazon Q plugin. */ deletePlugin(params: QBusiness.Types.DeletePluginRequest, callback?: (err: AWSError, data: QBusiness.Types.DeletePluginResponse) => void): Request<QBusiness.Types.DeletePluginResponse, AWSError>; /** * Deletes an Amazon Q plugin. */ deletePlugin(callback?: (err: AWSError, data: QBusiness.Types.DeletePluginResponse) => void): Request<QBusiness.Types.DeletePluginResponse, AWSError>; /** * Deletes the retriever used by an Amazon Q application. */ deleteRetriever(params: QBusiness.Types.DeleteRetrieverRequest, callback?: (err: AWSError, data: QBusiness.Types.DeleteRetrieverResponse) => void): Request<QBusiness.Types.DeleteRetrieverResponse, AWSError>; /** * Deletes the retriever used by an Amazon Q application. */ deleteRetriever(callback?: (err: AWSError, data: QBusiness.Types.DeleteRetrieverResponse) => void): Request<QBusiness.Types.DeleteRetrieverResponse, AWSError>; /** * Deletes a user by email id. */ deleteUser(params: QBusiness.Types.DeleteUserRequest, callback?: (err: AWSError, data: QBusiness.Types.DeleteUserResponse) => void): Request<QBusiness.Types.DeleteUserResponse, AWSError>; /** * Deletes a user by email id. */ deleteUser(callback?: (err: AWSError, data: QBusiness.Types.DeleteUserResponse) => void): Request<QBusiness.Types.DeleteUserResponse, AWSError>; /** * Deletes an Amazon Q web experience. */ deleteWebExperience(params: QBusiness.Types.DeleteWebExperienceRequest, callback?: (err: AWSError, data: QBusiness.Types.DeleteWebExperienceResponse) => void): Request<QBusiness.Types.DeleteWebExperienceResponse, AWSError>; /** * Deletes an Amazon Q web experience. */ deleteWebExperience(callback?: (err: AWSError, data: QBusiness.Types.DeleteWebExperienceResponse) => void): Request<QBusiness.Types.DeleteWebExperienceResponse, AWSError>; /** * Gets information about an existing Amazon Q application. */ getApplication(params: QBusiness.Types.GetApplicationRequest, callback?: (err: AWSError, data: QBusiness.Types.GetApplicationResponse) => void): Request<QBusiness.Types.GetApplicationResponse, AWSError>; /** * Gets information about an existing Amazon Q application. */ getApplication(callback?: (err: AWSError, data: QBusiness.Types.GetApplicationResponse) => void): Request<QBusiness.Types.GetApplicationResponse, AWSError>; /** * Gets information about an chat controls configured for an existing Amazon Q application. */ getChatControlsConfiguration(params: QBusiness.Types.GetChatControlsConfigurationRequest, callback?: (err: AWSError, data: QBusiness.Types.GetChatControlsConfigurationResponse) => void): Request<QBusiness.Types.GetChatControlsConfigurationResponse, AWSError>; /** * Gets information about an chat controls configured for an existing Amazon Q application. */ getChatControlsConfiguration(callback?: (err: AWSError, data: QBusiness.Types.GetChatControlsConfigurationResponse) => void): Request<QBusiness.Types.GetChatControlsConfigurationResponse, AWSError>; /** * Gets information about an existing Amazon Q data source connector. */ getDataSource(params: QBusiness.Types.GetDataSourceRequest, callback?: (err: AWSError, data: QBusiness.Types.GetDataSourceResponse) => void): Request<QBusiness.Types.GetDataSourceResponse, AWSError>; /** * Gets information about an existing Amazon Q data source connector. */ getDataSource(callback?: (err: AWSError, data: QBusiness.Types.GetDataSourceResponse) => void): Request<QBusiness.Types.GetDataSourceResponse, AWSError>; /** * Describes a group by group name. */ getGroup(params: QBusiness.Types.GetGroupRequest, callback?: (err: AWSError, data: QBusiness.Types.GetGroupResponse) => void): Request<QBusiness.Types.GetGroupResponse, AWSError>; /** * Describes a group by group name. */ getGroup(callback?: (err: AWSError, data: QBusiness.Types.GetGroupResponse) => void): Request<QBusiness.Types.GetGroupResponse, AWSError>; /** * Gets information about an existing Amazon Q index. */ getIndex(params: QBusiness.Types.GetIndexRequest, callback?: (err: AWSError, data: QBusiness.Types.GetIndexResponse) => void): Request<QBusiness.Types.GetIndexResponse, AWSError>; /** * Gets information about an existing Amazon Q index. */ getIndex(callback?: (err: AWSError, data: QBusiness.Types.GetIndexResponse) => void): Request<QBusiness.Types.GetIndexResponse, AWSError>; /** * Gets information about an existing Amazon Q plugin. */ getPlugin(params: QBusiness.Types.GetPluginRequest, callback?: (err: AWSError, data: QBusiness.Types.GetPluginResponse) => void): Request<QBusiness.Types.GetPluginResponse, AWSError>; /** * Gets information about an existing Amazon Q plugin. */ getPlugin(callback?: (err: AWSError, data: QBusiness.Types.GetPluginResponse) => void): Request<QBusiness.Types.GetPluginResponse, AWSError>; /** * Gets information about an existing retriever used by an Amazon Q application. */ getRetriever(params: QBusiness.Types.GetRetrieverRequest, callback?: (err: AWSError, data: QBusiness.Types.GetRetrieverResponse) => void): Request<QBusiness.Types.GetRetrieverResponse, AWSError>; /** * Gets information about an existing retriever used by an Amazon Q application. */ getRetriever(callback?: (err: AWSError, data: QBusiness.Types.GetRetrieverResponse) => void): Request<QBusiness.Types.GetRetrieverResponse, AWSError>; /** * Describes the universally unique identifier (UUID) associated with a local user in a data source. */ getUser(params: QBusiness.Types.GetUserRequest, callback?: (err: AWSError, data: QBusiness.Types.GetUserResponse) => void): Request<QBusiness.Types.GetUserResponse, AWSError>; /** * Describes the universally unique identifier (UUID) associated with a local user in a data source. */ getUser(callback?: (err: AWSError, data: QBusiness.Types.GetUserResponse) => void): Request<QBusiness.Types.GetUserResponse, AWSError>; /** * Gets information about an existing Amazon Q web experience. */ getWebExperience(params: QBusiness.Types.GetWebExperienceRequest, callback?: (err: AWSError, data: QBusiness.Types.GetWebExperienceResponse) => void): Request<QBusiness.Types.GetWebExperienceResponse, AWSError>; /** * Gets information about an existing Amazon Q web experience. */ getWebExperience(callback?: (err: AWSError, data: QBusiness.Types.GetWebExperienceResponse) => void): Request<QBusiness.Types.GetWebExperienceResponse, AWSError>; /** * Lists Amazon Q applications. */ listApplications(params: QBusiness.Types.ListApplicationsRequest, callback?: (err: AWSError, data: QBusiness.Types.ListApplicationsResponse) => void): Request<QBusiness.Types.ListApplicationsResponse, AWSError>; /** * Lists Amazon Q applications. */ listApplications(callback?: (err: AWSError, data: QBusiness.Types.ListApplicationsResponse) => void): Request<QBusiness.Types.ListApplicationsResponse, AWSError>; /** * Lists one or more Amazon Q conversations. */ listConversations(params: QBusiness.Types.ListConversationsRequest, callback?: (err: AWSError, data: QBusiness.Types.ListConversationsResponse) => void): Request<QBusiness.Types.ListConversationsResponse, AWSError>; /** * Lists one or more Amazon Q conversations. */ listConversations(callback?: (err: AWSError, data: QBusiness.Types.ListConversationsResponse) => void): Request<QBusiness.Types.ListConversationsResponse, AWSError>; /** * Get information about an Amazon Q data source connector synchronization. */ listDataSourceSyncJobs(params: QBusiness.Types.ListDataSourceSyncJobsRequest, callback?: (err: AWSError, data: QBusiness.Types.ListDataSourceSyncJobsResponse) => void): Request<QBusiness.Types.ListDataSourceSyncJobsResponse, AWSError>; /** * Get information about an Amazon Q data source connector synchronization. */ listDataSourceSyncJobs(callback?: (err: AWSError, data: QBusiness.Types.ListDataSourceSyncJobsResponse) => void): Request<QBusiness.Types.ListDataSourceSyncJobsResponse, AWSError>; /** * Lists the Amazon Q data source connectors that you have created. */ listDataSources(params: QBusiness.Types.ListDataSourcesRequest, callback?: (err: AWSError, data: QBusiness.Types.ListDataSourcesResponse) => void): Request<QBusiness.Types.ListDataSourcesResponse, AWSError>; /** * Lists the Amazon Q data source connectors that you have created. */ listDataSources(callback?: (err: AWSError, data: QBusiness.Types.ListDataSourcesResponse) => void): Request<QBusiness.Types.ListDataSourcesResponse, AWSError>; /** * A list of documents attached to an index. */ listDocuments(params: QBusiness.Types.ListDocumentsRequest, callback?: (err: AWSError, data: QBusiness.Types.ListDocumentsResponse) => void): Request<QBusiness.Types.ListDocumentsResponse, AWSError>; /** * A list of documents attached to an index. */ listDocuments(callback?: (err: AWSError, data: QBusiness.Types.ListDocumentsResponse) => void): Request<QBusiness.Types.ListDocumentsResponse, AWSError>; /** * Provides a list of groups that are mapped to users. */ listGroups(params: QBusiness.Types.ListGroupsRequest, callback?: (err: AWSError, data: QBusiness.Types.ListGroupsResponse) => void): Request<QBusiness.Types.ListGroupsResponse, AWSError>; /** * Provides a list of groups that are mapped to users. */ listGroups(callback?: (err: AWSError, data: QBusiness.Types.ListGroupsResponse) => void): Request<QBusiness.Types.ListGroupsResponse, AWSError>; /** * Lists the Amazon Q indices you have created. */ listIndices(params: QBusiness.Types.ListIndicesRequest, callback?: (err: AWSError, data: QBusiness.Types.ListIndicesResponse) => void): Request<QBusiness.Types.ListIndicesResponse, AWSError>; /** * Lists the Amazon Q indices you have created. */ listIndices(callback?: (err: AWSError, data: QBusiness.Types.ListIndicesResponse) => void): Request<QBusiness.Types.ListIndicesResponse, AWSError>; /** * Gets a list of messages associated with an Amazon Q web experience. */ listMessages(params: QBusiness.Types.ListMessagesRequest, callback?: (err: AWSError, data: QBusiness.Types.ListMessagesResponse) => void): Request<QBusiness.Types.ListMessagesResponse, AWSError>; /** * Gets a list of messages associated with an Amazon Q web experience. */ listMessages(callback?: (err: AWSError, data: QBusiness.Types.ListMessagesResponse) => void): Request<QBusiness.Types.ListMessagesResponse, AWSError>; /** * Lists configured Amazon Q plugins. */ listPlugins(params: QBusiness.Types.ListPluginsRequest, callback?: (err: AWSError, data: QBusiness.Types.ListPluginsResponse) => void): Request<QBusiness.Types.ListPluginsResponse, AWSError>; /** * Lists configured Amazon Q plugins. */ listPlugins(callback?: (err: AWSError, data: QBusiness.Types.ListPluginsResponse) => void): Request<QBusiness.Types.ListPluginsResponse, AWSError>; /** * Lists the retriever used by an Amazon Q application. */ listRetrievers(params: QBusiness.Types.ListRetrieversRequest, callback?: (err: AWSError, data: QBusiness.Types.ListRetrieversResponse) => void): Request<QBusiness.Types.ListRetrieversResponse, AWSError>; /** * Lists the retriever used by an Amazon Q application. */ listRetrievers(callback?: (err: AWSError, data: QBusiness.Types.ListRetrieversResponse) => void): Request<QBusiness.Types.ListRetrieversResponse, AWSError>; /** * Gets a list of tags associated with a specified resource. Amazon Q applications and data sources can have tags associated with them. */ listTagsForResource(params: QBusiness.Types.ListTagsForResourceRequest, callback?: (err: AWSError, data: QBusiness.Types.ListTagsForResourceResponse) => void): Request<QBusiness.Types.ListTagsForResourceResponse, AWSError>; /** * Gets a list of tags associated with a specified resource. Amazon Q applications and data sources can have tags associated with them. */ listTagsForResource(callback?: (err: AWSError, data: QBusiness.Types.ListTagsForResourceResponse) => void): Request<QBusiness.Types.ListTagsForResourceResponse, AWSError>; /** * Lists one or more Amazon Q Web Experiences. */ listWebExperiences(params: QBusiness.Types.ListWebExperiencesRequest, callback?: (err: AWSError, data: QBusiness.Types.ListWebExperiencesResponse) => void): Request<QBusiness.Types.ListWebExperiencesResponse, AWSError>; /** * Lists one or more Amazon Q Web Experiences. */ listWebExperiences(callback?: (err: AWSError, data: QBusiness.Types.ListWebExperiencesResponse) => void): Request<QBusiness.Types.ListWebExperiencesResponse, AWSError>; /** * Enables your end user to to provide feedback on their Amazon Q generated chat responses. */ putFeedback(params: QBusiness.Types.PutFeedbackRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>; /** * Enables your end user to to provide feedback on their Amazon Q generated chat responses. */ putFeedback(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>; /** * Create, or updates, a mapping of users—who have access to a document—to groups. You can also map sub groups to groups. For example, the group "Company Intellectual Property Teams" includes sub groups "Research" and "Engineering". These sub groups include their own list of users or people who work in these teams. Only users who work in research and engineering, and therefore belong in the intellectual property group, can see top-secret company documents in their Amazon Q chat results. */ putGroup(params: QBusiness.Types.PutGroupRequest, callback?: (err: AWSError, data: QBusiness.Types.PutGroupResponse) => void): Request<QBusiness.Types.PutGroupResponse, AWSError>; /** * Create, or updates, a mapping of users—who have access to a document—to groups. You can also map sub groups to groups. For example, the group "Company Intellectual Property Teams" includes sub groups "Research" and "Engineering". These sub groups include their own list of users or people who work in these teams. Only users who work in research and engineering, and therefore belong in the intellectual property group, can see top-secret company documents in their Amazon Q chat results. */ putGroup(callback?: (err: AWSError, data: QBusiness.Types.PutGroupResponse) => void): Request<QBusiness.Types.PutGroupResponse, AWSError>; /** * Starts a data source connector synchronization job. If a synchronization job is already in progress, Amazon Q returns a ConflictException. */ startDataSourceSyncJob(params: QBusiness.Types.StartDataSourceSyncJobRequest, callback?: (err: AWSError, data: QBusiness.Types.StartDataSourceSyncJobResponse) => void): Request<QBusiness.Types.StartDataSourceSyncJobResponse, AWSError>; /** * Starts a data source connector synchronization job. If a synchronization job is already in progress, Amazon Q returns a ConflictException. */ startDataSourceSyncJob(callback?: (err: AWSError, data: QBusiness.Types.StartDataSourceSyncJobResponse) => void): Request<QBusiness.Types.StartDataSourceSyncJobResponse, AWSError>; /** * Stops an Amazon Q data source connector synchronization job already in progress. */ stopDataSourceSyncJob(params: QBusiness.Types.StopDataSourceSyncJobRequest, callback?: (err: AWSError, data: QBusiness.Types.StopDataSourceSyncJobResponse) => void): Request<QBusiness.Types.StopDataSourceSyncJobResponse, AWSError>; /** * Stops an Amazon Q data source connector synchronization job already in progress. */ stopDataSourceSyncJob(callback?: (err: AWSError, data: QBusiness.Types.StopDataSourceSyncJobResponse) => void): Request<QBusiness.Types.StopDataSourceSyncJobResponse, AWSError>; /** * Adds the specified tag to the specified Amazon Q application or data source resource. If the tag already exists, the existing value is replaced with the new value. */ tagResource(params: QBusiness.Types.TagResourceRequest, callback?: (err: AWSError, data: QBusiness.Types.TagResourceResponse) => void): Request<QBusiness.Types.TagResourceResponse, AWSError>; /** * Adds the specified tag to the specified Amazon Q application or data source resource. If the tag already exists, the existing value is replaced with the new value. */ tagResource(callback?: (err: AWSError, data: QBusiness.Types.TagResourceResponse) => void): Request<QBusiness.Types.TagResourceResponse, AWSError>; /** * Removes a tag from an Amazon Q application or a data source. */ untagResource(params: QBusiness.Types.UntagResourceRequest, callback?: (err: AWSError, data: QBusiness.Types.UntagResourceResponse) => void): Request<QBusiness.Types.UntagResourceResponse, AWSError>; /** * Removes a tag from an Amazon Q application or a data source. */ untagResource(callback?: (err: AWSError, data: QBusiness.Types.UntagResourceResponse) => void): Request<QBusiness.Types.UntagResourceResponse, AWSError>; /** * Updates an existing Amazon Q application. */ updateApplication(params: QBusiness.Types.UpdateApplicationRequest, callback?: (err: AWSError, data: QBusiness.Types.UpdateApplicationResponse) => void): Request<QBusiness.Types.UpdateApplicationResponse, AWSError>; /** * Updates an existing Amazon Q application. */ updateApplication(callback?: (err: AWSError, data: QBusiness.Types.UpdateApplicationResponse) => void): Request<QBusiness.Types.UpdateApplicationResponse, AWSError>; /** * Updates an set of chat controls configured for an existing Amazon Q application. */ updateChatControlsConfiguration(params: QBusiness.Types.UpdateChatControlsConfigurationRequest, callback?: (err: AWSError, data: QBusiness.Types.UpdateChatControlsConfigurationResponse) => void): Request<QBusiness.Types.UpdateChatControlsConfigurationResponse, AWSError>; /** * Updates an set of chat controls configured for an existing Amazon Q application. */ updateChatControlsConfiguration(callback?: (err: AWSError, data: QBusiness.Types.UpdateChatControlsConfigurationResponse) => void): Request<QBusiness.Types.UpdateChatControlsConfigurationResponse, AWSError>; /** * Updates an existing Amazon Q data source connector. */ updateDataSource(params: QBusiness.Types.UpdateDataSourceRequest, callback?: (err: AWSError, data: QBusiness.Types.UpdateDataSourceResponse) => void): Request<QBusiness.Types.UpdateDataSourceResponse, AWSError>; /** * Updates an existing Amazon Q data source connector. */ updateDataSource(callback?: (err: AWSError, data: QBusiness.Types.UpdateDataSourceResponse) => void): Request<QBusiness.Types.UpdateDataSourceResponse, AWSError>; /** * Updates an Amazon Q index. */ updateIndex(params: QBusiness.Types.UpdateIndexRequest, callback?: (err: AWSError, data: QBusiness.Types.UpdateIndexResponse) => void): Request<QBusiness.Types.UpdateIndexResponse, AWSError>; /** * Updates an Amazon Q index. */ updateIndex(callback?: (err: AWSError, data: QBusiness.Types.UpdateIndexResponse) => void): Request<QBusiness.Types.UpdateIndexResponse, AWSError>; /** * Updates an Amazon Q plugin. */ updatePlugin(params: QBusiness.Types.UpdatePluginRequest, callback?: (err: AWSError, data: QBusiness.Types.UpdatePluginResponse) => void): Request<QBusiness.Types.UpdatePluginResponse, AWSError>; /** * Updates an Amazon Q plugin. */ updatePlugin(callback?: (err: AWSError, data: QBusiness.Types.UpdatePluginResponse) => void): Request<QBusiness.Types.UpdatePluginResponse, AWSError>; /** * Updates the retriever used for your Amazon Q application. */ updateRetriever(params: QBusiness.Types.UpdateRetrieverRequest, callback?: (err: AWSError, data: QBusiness.Types.UpdateRetrieverResponse) => void): Request<QBusiness.Types.UpdateRetrieverResponse, AWSError>; /** * Updates the retriever used for your Amazon Q application. */ updateRetriever(callback?: (err: AWSError, data: QBusiness.Types.UpdateRetrieverResponse) => void): Request<QBusiness.Types.UpdateRetrieverResponse, AWSError>; /** * Updates a information associated with a user id. */ updateUser(params: QBusiness.Types.UpdateUserRequest, callback?: (err: AWSError, data: QBusiness.Types.UpdateUserResponse) => void): Request<QBusiness.Types.UpdateUserResponse, AWSError>; /** * Updates a information associated with a user id. */ updateUser(callback?: (err: AWSError, data: QBusiness.Types.UpdateUserResponse) => void): Request<QBusiness.Types.UpdateUserResponse, AWSError>; /** * Updates an Amazon Q web experience. */ updateWebExperience(params: QBusiness.Types.UpdateWebExperienceRequest, callback?: (err: AWSError, data: QBusiness.Types.UpdateWebExperienceResponse) => void): Request<QBusiness.Types.UpdateWebExperienceResponse, AWSError>; /** * Updates an Amazon Q web experience. */ updateWebExperience(callback?: (err: AWSError, data: QBusiness.Types.UpdateWebExperienceResponse) => void): Request<QBusiness.Types.UpdateWebExperienceResponse, AWSError>; } declare namespace QBusiness { export interface AccessConfiguration { /** * A list of AccessControlList objects. */ accessControls: AccessControls; /** * Describes the member relation within the AccessControlList object. */ memberRelation?: MemberRelation; } export interface AccessControl { /** * Describes the member relation within a principal list. */ memberRelation?: MemberRelation; /** * Contains a list of principals, where a principal can be either a USER or a GROUP. Each principal can be have the following type of document access: ALLOW or DENY. */ principals: Principals; } export type AccessControls = AccessControl[]; export interface ActionExecution { /** * A mapping of field names to the field values in input that an end user provides to Amazon Q requests to perform their plugin action. */ payload: ActionExecutionPayload; /** * A string used to retain information about the hierarchical contexts within an action execution event payload. */ payloadFieldNameSeparator: ActionPayloadFieldNameSeparator; /** * The identifier of the plugin the action is attached to. */ pluginId: PluginId; } export type ActionExecutionPayload = {[key: string]: ActionExecutionPayloadField}; export interface ActionExecutionPayloadField { /** * The content of a user input field in an plugin action execution payload. */ value: ActionPayloadFieldValue; } export type ActionPayloadFieldKey = string; export type ActionPayloadFieldNameSeparator = string; export type ActionPayloadFieldType = "STRING"|"NUMBER"|"ARRAY"|"BOOLEAN"|string; export interface ActionPayloadFieldValue { } export interface ActionReview { /** * Field values that an end user needs to provide to Amazon Q for Amazon Q to perform the requested plugin action. */ payload?: ActionReviewPayload; /** * A string used to retain information about the hierarchical contexts within an action review payload. */ payloadFieldNameSeparator?: ActionPayloadFieldNameSeparator; /** * The identifier of the plugin associated with the action review. */ pluginId?: PluginId; /** * The type of plugin. */ pluginType?: PluginType; } export type ActionReviewPayload = {[key: string]: ActionReviewPayloadField}; export interface ActionReviewPayloadField { /** * Information about the field values that an end user can use to provide to Amazon Q for Amazon Q to perform the requested plugin action. */ allowedValues?: ActionReviewPayloadFieldAllowedValues; /** * The name of the field. */ displayName?: String; /** * The display order of fields in a payload. */ displayOrder?: Integer; /** * Information about whether the field is required. */ required?: Boolean; /** * The type of field. */ type?: ActionPayloadFieldType; /** * The field value. */ value?: ActionPayloadFieldValue; } export interface ActionReviewPayloadFieldAllowedValue { /** * The name of the field. */ displayValue?: ActionPayloadFieldValue; /** * The field value. */ value?: ActionPayloadFieldValue; } export type ActionReviewPayloadFieldAllowedValues = ActionReviewPayloadFieldAllowedValue[]; export type AmazonResourceName = string; export interface Application { /** * The identifier for the Amazon Q application. */ applicationId?: ApplicationId; /** * The Unix timestamp when the Amazon Q application was created. */ createdAt?: Timestamp; /** * The name of the Amazon Q application. */ displayName?: ApplicationName; /** * The status of the Amazon Q application. The application is ready to use when the status is ACTIVE. */ status?: ApplicationStatus; /** * The Unix timestamp when the Amazon Q application was last updated. */ updatedAt?: Timestamp; } export type ApplicationArn = string; export type ApplicationId = string; export type ApplicationName = string; export type ApplicationStatus = "CREATING"|"ACTIVE"|"DELETING"|"FAILED"|"UPDATING"|string; export type Applications = Application[]; export interface AppliedAttachmentsConfiguration { /** * Information about whether file upload during chat functionality is activated for your application. */ attachmentsControlMode?: AttachmentsControlMode; } export interface AttachmentInput { /** * The data contained within the uploaded file. */ data: _Blob; /** * The name of the file. */ name: AttachmentName; } export type AttachmentName = string; export interface AttachmentOutput { /** * An error associated with a file uploaded during chat. */ error?: ErrorDetail; /** * The name of a file uploaded during chat. */ name?: AttachmentName; /** * The status of a file uploaded during chat. */ status?: AttachmentStatus; } export type AttachmentStatus = "FAILED"|"SUCCEEDED"|string; export interface AttachmentsConfiguration { /** * Status information about whether file upload functionality is activated or deactivated for your end user. */ attachmentsControlMode: AttachmentsControlMode; } export type AttachmentsControlMode = "ENABLED"|"DISABLED"|string; export type AttachmentsInput = AttachmentInput[]; export type AttachmentsOutput = AttachmentOutput[]; export interface AttributeFilter { /** * Performs a logical AND operation on all supplied filters. */ andAllFilters?: AttributeFilters; /** * Returns true when a document contains all the specified document attributes or metadata fields. */ containsAll?: DocumentAttribute; /** * Returns true when a document contains any of the specified document attributes or metadata fields. */ containsAny?: DocumentAttribute; /** * Performs an equals operation on two document attributes or metadata fields. */ equalsTo?: DocumentAttribute; /** * Performs a greater than operation on two document attributes or metadata fields. Use with a document attribute of type Date or Long. */ greaterThan?: DocumentAttribute; /** * Performs a greater or equals than operation on two document attributes or metadata fields. Use with a document attribute of type Date or Long. */ greaterThanOrEquals?: DocumentAttribute; /** * Performs a less than operation on two document attributes or metadata fields. Use with a document attribute of type Date or Long. */ lessThan?: DocumentAttribute; /** * Performs a less than or equals operation on two document attributes or metadata fields. Use with a document attribute of type Date or Long. */ lessThanOrEquals?: DocumentAttribute; /** * Performs a logical NOT operation on all supplied filters. */ notFilter?: AttributeFilter; /** * Performs a logical OR operation on all supplied filters. */ orAllFilters?: AttributeFilters; } export type AttributeFilters = AttributeFilter[]; export type AttributeType = "STRING"|"STRING_LIST"|"NUMBER"|"DATE"|string; export type AttributeValueOperator = "DELETE"|string; export interface BasicAuthConfiguration { /** * The ARN of an IAM role used by Amazon Q to access the basic authentication credentials stored in a Secrets Manager secret. */ roleArn: RoleArn; /** * The ARN of the Secrets Manager secret that stores the basic authentication credentials used for plugin configuration.. */ secretArn: SecretArn; } export interface BatchDeleteDocumentRequest { /** * The identifier of the Amazon Q application. */ applicationId: ApplicationId; /** * The identifier of the data source sync during which the documents were deleted. */ dataSourceSyncId?: ExecutionId; /** * Documents deleted from the Amazon Q index. */ documents: DeleteDocuments; /** * The identifier of the Amazon Q index that contains the documents to delete. */ indexId: IndexId; } export interface BatchDeleteDocumentResponse { /** * A list of documents that couldn't be removed from the Amazon Q index. Each entry contains an error message that indicates why the document couldn't be removed from the index. */ failedDocuments?: FailedDocuments; } export interface BatchPutDocumentRequest { /** * The identifier of the Amazon Q application. */ applicationId: ApplicationId; /** * The identifier of the data source sync during which the documents were added. */ dataSourceSyncId?: ExecutionId; /** * One or more documents to add to the index. */ documents: Documents; /** * The identifier of the Amazon Q index to add the documents to. */ indexId: IndexId; /** * The Amazon Resource Name (ARN) of an IAM role with permission to access your S3 bucket. */ roleArn?: RoleArn; } export interface BatchPutDocumentResponse { /** * A list of documents that were not added to the Amazon Q index because the document failed a validation check. Each document contains an error message that indicates why the document couldn't be added to the index. */ failedDocuments?: FailedDocuments; } export type _Blob = Buffer|Uint8Array|Blob|string; export type BlockedPhrase = string; export type BlockedPhrases = BlockedPhrase[]; export interface BlockedPhrasesConfiguration { /** * A list of phrases blocked from a Amazon Q web experience chat. */ blockedPhrases?: BlockedPhrases; /** * The configured custom message displayed to an end user informing them that they've used a blocked phrase during chat. */ systemMessageOverride?: SystemMessageOverride; } export interface BlockedPhrasesConfigurationUpdate { /** * Creates or updates a blocked phrases configuration in your Amazon Q application. */ blockedPhrasesToCreateOrUpdate?: BlockedPhrases; /** * Deletes a blocked phrases configuration in your Amazon Q application. */ blockedPhrasesToDelete?: BlockedPhrases; /** * The configured custom message displayed to your end user when they use blocked phrase during chat. */ systemMessageOverride?: SystemMessageOverride; } export type Boolean = boolean; export interface ChatSyncInput { /** * A request from an end user to perform an Amazon Q plugin action. */ actionExecution?: ActionExecution; /** * The identifier of the Amazon Q application linked to the Amazon Q conversation. */ applicationId: ApplicationId; /** * A list of files uploaded directly during chat. You can upload a maximum of 5 files of upto 10 MB each. */ attachments?: AttachmentsInput; /** * Enables filtering of Amazon Q web experience responses based on document attributes or metadata fields. */ attributeFilter?: AttributeFilter; /** * A token that you provide to identify a chat request. */ clientToken?: ClientToken; /** * The identifier of the Amazon Q conversation. */ conversationId?: ConversationId; /** * The identifier of the previous end user text input message in a conversation. */ parentMessageId?: MessageId; /** * The groups that a user associated with the chat input belongs to. */ userGroups?: UserGroups; /** * The identifier of the user attached to the chat input. */ userId: UserId; /** * A end user message in a conversation. */ userMessage?: UserMessage; } export interface ChatSyncOutput { /** * A request from Amazon Q to the end user for information Amazon Q needs to successfully complete a requested plugin action. */ actionReview?: ActionReview; /** * The identifier of the Amazon Q conversation. */ conversationId?: ConversationId; /** * A list of files which failed to upload during chat. */ failedAttachments?: AttachmentsOutput; /** * The source documents used to generate the conversation response. */ sourceAttributions?: SourceAttributions; /** * An AI-generated message in a conversation. */ systemMessage?: String; /** * The identifier of an Amazon Q AI generated message within the conversation. */ systemMessageId?: MessageId; /** * The identifier of an Amazon Q end user text input message within the conversation. */ userMessageId?: MessageId; } export type ClientToken = string; export interface ContentBlockerRule { /** * The configured custom message displayed to an end user informing them that they've used a blocked phrase during chat. */ systemMessageOverride?: SystemMessageOverride; } export interface ContentRetrievalRule { /** * Specifies data sources in a Amazon Q application to use for content generation. */ eligibleDataSources?: EligibleDataSources; } export type ContentType = "PDF"|"HTML"|"MS_WORD"|"PLAIN_TEXT"|"PPT"|"RTF"|"XML"|"XSLT"|"MS_EXCEL"|"CSV"|"JSON"|"MD"|string; export interface Conversation { /** * The identifier of the Amazon Q conversation. */ conversationId?: ConversationId; /** * The start time of the conversation. */ startTime?: Timestamp; /** * The title of the conversation. */ title?: ConversationTitle; } export type ConversationId = string; export type ConversationTitle = string; export type Conversations = Conversation[]; export interface CreateApplicationRequest { /** * An option to allow end users to upload files directly during chat. */ attachmentsConfiguration?: AttachmentsConfiguration; /** * A token that you provide to identify the request to create your Amazon Q application. */ clientToken?: ClientToken; /** * A description for the Amazon Q application. */ description?: Description; /** * A name for the Amazon Q application. */ displayName: ApplicationName; /** * The identifier of the KMS key that is used to encrypt your data. Amazon Q doesn't support asymmetric keys. */ encryptionConfiguration?: EncryptionConfiguration; /** * The Amazon Resource Name (ARN) of an IAM role with permissions to access your Amazon CloudWatch logs and metrics. */ roleArn: RoleArn; /** * A list of key-value pairs that identify or categorize your Amazon Q application. You can also use tags to help control access to the application. Tag keys and values can consist of Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @. */ tags?: Tags; } export interface CreateApplicationResponse { /** * The Amazon Resource Name (ARN) of the Amazon Q application. */ applicationArn?: ApplicationArn; /** * The identifier of the Amazon Q application. */ applicationId?: ApplicationId; } export interface CreateDataSourceRequest { /** * The identifier of the Amazon Q application the data source will be attached to. */ applicationId: ApplicationId; /** * A token you provide to identify a request to create a data source connector. Multiple calls to the CreateDataSource API with the same client token will create only one data source connector. */ clientToken?: ClientToken; /** * Configuration information to connect to your data source repository. For configuration templates for your specific data source, see Supported connectors. */ configuration: DataSourceConfiguration; /** * A description for the data source connector. */ description?: Description; /** * A name for the data source connector. */ displayName: DataSourceName; documentEnrichmentConfiguration?: DocumentEnrichmentConfiguration; /** * The identifier of the index that you want to use with the data source connector. */ indexId: IndexId; /** * The Amazon Resource Name (ARN) of an IAM role with permission to access the data source and required resources. */ roleArn?: RoleArn; /** * Sets the frequency for Amazon Q to check the documents in your data source repository and update your index. If you don't set a schedule, Amazon Q won't periodically update the index. Specify a cron- forma