aws-sdk
Version:
AWS SDK for JavaScript
2,007 lines • 68.2 kB
JSON
{
"version": "2.0",
"metadata": {
"apiVersion": "2020-10-19",
"endpointPrefix": "wisdom",
"jsonVersion": "1.1",
"protocol": "rest-json",
"serviceFullName": "Amazon Q Connect",
"serviceId": "QConnect",
"signatureVersion": "v4",
"signingName": "wisdom",
"uid": "qconnect-2020-10-19"
},
"operations": {
"CreateAssistant": {
"http": {
"requestUri": "/assistants",
"responseCode": 200
},
"input": {
"type": "structure",
"required": [
"name",
"type"
],
"members": {
"clientToken": {
"idempotencyToken": true
},
"description": {},
"name": {},
"serverSideEncryptionConfiguration": {
"shape": "S5"
},
"tags": {
"shape": "S7"
},
"type": {}
}
},
"output": {
"type": "structure",
"members": {
"assistant": {
"shape": "Sc"
}
}
},
"idempotent": true
},
"CreateAssistantAssociation": {
"http": {
"requestUri": "/assistants/{assistantId}/associations",
"responseCode": 200
},
"input": {
"type": "structure",
"required": [
"assistantId",
"association",
"associationType"
],
"members": {
"assistantId": {
"location": "uri",
"locationName": "assistantId"
},
"association": {
"type": "structure",
"members": {
"knowledgeBaseId": {}
},
"union": true
},
"associationType": {},
"clientToken": {
"idempotencyToken": true
},
"tags": {
"shape": "S7"
}
}
},
"output": {
"type": "structure",
"members": {
"assistantAssociation": {
"shape": "Sp"
}
}
},
"idempotent": true
},
"CreateContent": {
"http": {
"requestUri": "/knowledgeBases/{knowledgeBaseId}/contents",
"responseCode": 200
},
"input": {
"type": "structure",
"required": [
"knowledgeBaseId",
"name",
"uploadId"
],
"members": {
"clientToken": {
"idempotencyToken": true
},
"knowledgeBaseId": {
"location": "uri",
"locationName": "knowledgeBaseId"
},
"metadata": {
"shape": "St"
},
"name": {},
"overrideLinkOutUri": {},
"tags": {
"shape": "S7"
},
"title": {},
"uploadId": {}
}
},
"output": {
"type": "structure",
"members": {
"content": {
"shape": "Sy"
}
}
},
"idempotent": true
},
"CreateContentAssociation": {
"http": {
"requestUri": "/knowledgeBases/{knowledgeBaseId}/contents/{contentId}/associations",
"responseCode": 200
},
"input": {
"type": "structure",
"required": [
"association",
"associationType",
"contentId",
"knowledgeBaseId"
],
"members": {
"association": {
"shape": "S14"
},
"associationType": {},
"clientToken": {
"idempotencyToken": true
},
"contentId": {
"location": "uri",
"locationName": "contentId"
},
"knowledgeBaseId": {
"location": "uri",
"locationName": "knowledgeBaseId"
},
"tags": {
"shape": "S7"
}
}
},
"output": {
"type": "structure",
"members": {
"contentAssociation": {
"shape": "S18"
}
}
}
},
"CreateKnowledgeBase": {
"http": {
"requestUri": "/knowledgeBases",
"responseCode": 200
},
"input": {
"type": "structure",
"required": [
"knowledgeBaseType",
"name"
],
"members": {
"clientToken": {
"idempotencyToken": true
},
"description": {},
"knowledgeBaseType": {},
"name": {},
"renderingConfiguration": {
"shape": "S1b"
},
"serverSideEncryptionConfiguration": {
"shape": "S5"
},
"sourceConfiguration": {
"shape": "S1c"
},
"tags": {
"shape": "S7"
}
}
},
"output": {
"type": "structure",
"members": {
"knowledgeBase": {
"shape": "S1g"
}
}
},
"idempotent": true
},
"CreateQuickResponse": {
"http": {
"requestUri": "/knowledgeBases/{knowledgeBaseId}/quickResponses",
"responseCode": 200
},
"input": {
"type": "structure",
"required": [
"content",
"knowledgeBaseId",
"name"
],
"members": {
"channels": {
"shape": "S1j"
},
"clientToken": {
"idempotencyToken": true
},
"content": {
"shape": "S1l"
},
"contentType": {},
"description": {},
"groupingConfiguration": {
"shape": "S1p"
},
"isActive": {
"type": "boolean"
},
"knowledgeBaseId": {
"location": "uri",
"locationName": "knowledgeBaseId"
},
"language": {},
"name": {},
"shortcutKey": {},
"tags": {
"shape": "S7"
}
}
},
"output": {
"type": "structure",
"members": {
"quickResponse": {
"shape": "S1y"
}
}
},
"idempotent": true
},
"CreateSession": {
"http": {
"requestUri": "/assistants/{assistantId}/sessions",
"responseCode": 200
},
"input": {
"type": "structure",
"required": [
"assistantId",
"name"
],
"members": {
"assistantId": {
"location": "uri",
"locationName": "assistantId"
},
"clientToken": {
"idempotencyToken": true
},
"description": {},
"name": {},
"tagFilter": {
"shape": "S23"
},
"tags": {
"shape": "S7"
}
}
},
"output": {
"type": "structure",
"members": {
"session": {
"shape": "S29"
}
}
},
"idempotent": true
},
"DeleteAssistant": {
"http": {
"method": "DELETE",
"requestUri": "/assistants/{assistantId}",
"responseCode": 204
},
"input": {
"type": "structure",
"required": [
"assistantId"
],
"members": {
"assistantId": {
"location": "uri",
"locationName": "assistantId"
}
}
},
"output": {
"type": "structure",
"members": {}
},
"idempotent": true
},
"DeleteAssistantAssociation": {
"http": {
"method": "DELETE",
"requestUri": "/assistants/{assistantId}/associations/{assistantAssociationId}",
"responseCode": 204
},
"input": {
"type": "structure",
"required": [
"assistantAssociationId",
"assistantId"
],
"members": {
"assistantAssociationId": {
"location": "uri",
"locationName": "assistantAssociationId"
},
"assistantId": {
"location": "uri",
"locationName": "assistantId"
}
}
},
"output": {
"type": "structure",
"members": {}
},
"idempotent": true
},
"DeleteContent": {
"http": {
"method": "DELETE",
"requestUri": "/knowledgeBases/{knowledgeBaseId}/contents/{contentId}",
"responseCode": 204
},
"input": {
"type": "structure",
"required": [
"contentId",
"knowledgeBaseId"
],
"members": {
"contentId": {
"location": "uri",
"locationName": "contentId"
},
"knowledgeBaseId": {
"location": "uri",
"locationName": "knowledgeBaseId"
}
}
},
"output": {
"type": "structure",
"members": {}
},
"idempotent": true
},
"DeleteContentAssociation": {
"http": {
"method": "DELETE",
"requestUri": "/knowledgeBases/{knowledgeBaseId}/contents/{contentId}/associations/{contentAssociationId}",
"responseCode": 204
},
"input": {
"type": "structure",
"required": [
"contentAssociationId",
"contentId",
"knowledgeBaseId"
],
"members": {
"contentAssociationId": {
"location": "uri",
"locationName": "contentAssociationId"
},
"contentId": {
"location": "uri",
"locationName": "contentId"
},
"knowledgeBaseId": {
"location": "uri",
"locationName": "knowledgeBaseId"
}
}
},
"output": {
"type": "structure",
"members": {}
},
"idempotent": true
},
"DeleteImportJob": {
"http": {
"method": "DELETE",
"requestUri": "/knowledgeBases/{knowledgeBaseId}/importJobs/{importJobId}",
"responseCode": 204
},
"input": {
"type": "structure",
"required": [
"importJobId",
"knowledgeBaseId"
],
"members": {
"importJobId": {
"location": "uri",
"locationName": "importJobId"
},
"knowledgeBaseId": {
"location": "uri",
"locationName": "knowledgeBaseId"
}
}
},
"output": {
"type": "structure",
"members": {}
},
"idempotent": true
},
"DeleteKnowledgeBase": {
"http": {
"method": "DELETE",
"requestUri": "/knowledgeBases/{knowledgeBaseId}",
"responseCode": 204
},
"input": {
"type": "structure",
"required": [
"knowledgeBaseId"
],
"members": {
"knowledgeBaseId": {
"location": "uri",
"locationName": "knowledgeBaseId"
}
}
},
"output": {
"type": "structure",
"members": {}
},
"idempotent": true
},
"DeleteQuickResponse": {
"http": {
"method": "DELETE",
"requestUri": "/knowledgeBases/{knowledgeBaseId}/quickResponses/{quickResponseId}",
"responseCode": 204
},
"input": {
"type": "structure",
"required": [
"knowledgeBaseId",
"quickResponseId"
],
"members": {
"knowledgeBaseId": {
"location": "uri",
"locationName": "knowledgeBaseId"
},
"quickResponseId": {
"location": "uri",
"locationName": "quickResponseId"
}
}
},
"output": {
"type": "structure",
"members": {}
},
"idempotent": true
},
"GetAssistant": {
"http": {
"method": "GET",
"requestUri": "/assistants/{assistantId}",
"responseCode": 200
},
"input": {
"type": "structure",
"required": [
"assistantId"
],
"members": {
"assistantId": {
"location": "uri",
"locationName": "assistantId"
}
}
},
"output": {
"type": "structure",
"members": {
"assistant": {
"shape": "Sc"
}
}
}
},
"GetAssistantAssociation": {
"http": {
"method": "GET",
"requestUri": "/assistants/{assistantId}/associations/{assistantAssociationId}",
"responseCode": 200
},
"input": {
"type": "structure",
"required": [
"assistantAssociationId",
"assistantId"
],
"members": {
"assistantAssociationId": {
"location": "uri",
"locationName": "assistantAssociationId"
},
"assistantId": {
"location": "uri",
"locationName": "assistantId"
}
}
},
"output": {
"type": "structure",
"members": {
"assistantAssociation": {
"shape": "Sp"
}
}
}
},
"GetContent": {
"http": {
"method": "GET",
"requestUri": "/knowledgeBases/{knowledgeBaseId}/contents/{contentId}",
"responseCode": 200
},
"input": {
"type": "structure",
"required": [
"contentId",
"knowledgeBaseId"
],
"members": {
"contentId": {
"location": "uri",
"locationName": "contentId"
},
"knowledgeBaseId": {
"location": "uri",
"locationName": "knowledgeBaseId"
}
}
},
"output": {
"type": "structure",
"members": {
"content": {
"shape": "Sy"
}
}
}
},
"GetContentAssociation": {
"http": {
"method": "GET",
"requestUri": "/knowledgeBases/{knowledgeBaseId}/contents/{contentId}/associations/{contentAssociationId}",
"responseCode": 200
},
"input": {
"type": "structure",
"required": [
"contentAssociationId",
"contentId",
"knowledgeBaseId"
],
"members": {
"contentAssociationId": {
"location": "uri",
"locationName": "contentAssociationId"
},
"contentId": {
"location": "uri",
"locationName": "contentId"
},
"knowledgeBaseId": {
"location": "uri",
"locationName": "knowledgeBaseId"
}
}
},
"output": {
"type": "structure",
"members": {
"contentAssociation": {
"shape": "S18"
}
}
}
},
"GetContentSummary": {
"http": {
"method": "GET",
"requestUri": "/knowledgeBases/{knowledgeBaseId}/contents/{contentId}/summary",
"responseCode": 200
},
"input": {
"type": "structure",
"required": [
"contentId",
"knowledgeBaseId"
],
"members": {
"contentId": {
"location": "uri",
"locationName": "contentId"
},
"knowledgeBaseId": {
"location": "uri",
"locationName": "knowledgeBaseId"
}
}
},
"output": {
"type": "structure",
"members": {
"contentSummary": {
"shape": "S2z"
}
}
}
},
"GetImportJob": {
"http": {
"method": "GET",
"requestUri": "/knowledgeBases/{knowledgeBaseId}/importJobs/{importJobId}",
"responseCode": 200
},
"input": {
"type": "structure",
"required": [
"importJobId",
"knowledgeBaseId"
],
"members": {
"importJobId": {
"location": "uri",
"locationName": "importJobId"
},
"knowledgeBaseId": {
"location": "uri",
"locationName": "knowledgeBaseId"
}
}
},
"output": {
"type": "structure",
"members": {
"importJob": {
"shape": "S32"
}
}
}
},
"GetKnowledgeBase": {
"http": {
"method": "GET",
"requestUri": "/knowledgeBases/{knowledgeBaseId}",
"responseCode": 200
},
"input": {
"type": "structure",
"required": [
"knowledgeBaseId"
],
"members": {
"knowledgeBaseId": {
"location": "uri",
"locationName": "knowledgeBaseId"
}
}
},
"output": {
"type": "structure",
"members": {
"knowledgeBase": {
"shape": "S1g"
}
}
}
},
"GetQuickResponse": {
"http": {
"method": "GET",
"requestUri": "/knowledgeBases/{knowledgeBaseId}/quickResponses/{quickResponseId}",
"responseCode": 200
},
"input": {
"type": "structure",
"required": [
"knowledgeBaseId",
"quickResponseId"
],
"members": {
"knowledgeBaseId": {
"location": "uri",
"locationName": "knowledgeBaseId"
},
"quickResponseId": {
"location": "uri",
"locationName": "quickResponseId"
}
}
},
"output": {
"type": "structure",
"members": {
"quickResponse": {
"shape": "S1y"
}
}
}
},
"GetRecommendations": {
"http": {
"method": "GET",
"requestUri": "/assistants/{assistantId}/sessions/{sessionId}/recommendations",
"responseCode": 200
},
"input": {
"type": "structure",
"required": [
"assistantId",
"sessionId"
],
"members": {
"assistantId": {
"location": "uri",
"locationName": "assistantId"
},
"maxResults": {
"location": "querystring",
"locationName": "maxResults",
"type": "integer"
},
"sessionId": {
"location": "uri",
"locationName": "sessionId"
},
"waitTimeSeconds": {
"location": "querystring",
"locationName": "waitTimeSeconds",
"type": "integer"
}
}
},
"output": {
"type": "structure",
"required": [
"recommendations"
],
"members": {
"recommendations": {
"type": "list",
"member": {
"type": "structure",
"required": [
"recommendationId"
],
"members": {
"data": {
"shape": "S3j"
},
"document": {
"shape": "S43"
},
"recommendationId": {},
"relevanceLevel": {},
"relevanceScore": {
"type": "double"
},
"type": {}
}
}
},
"triggers": {
"type": "list",
"member": {
"type": "structure",
"required": [
"data",
"id",
"recommendationIds",
"source",
"type"
],
"members": {
"data": {
"type": "structure",
"members": {
"query": {
"type": "structure",
"members": {
"text": {
"shape": "S4a"
}
}
}
},
"union": true
},
"id": {},
"recommendationIds": {
"shape": "S4b"
},
"source": {},
"type": {}
}
}
}
}
},
"deprecated": true,
"deprecatedMessage": "GetRecommendations API will be discontinued starting June 1, 2024. To receive generative responses after March 1, 2024 you will need to create a new Assistant in the Connect console and integrate the Amazon Q in Connect JavaScript library (amazon-q-connectjs) into your applications."
},
"GetSession": {
"http": {
"method": "GET",
"requestUri": "/assistants/{assistantId}/sessions/{sessionId}",
"responseCode": 200
},
"input": {
"type": "structure",
"required": [
"assistantId",
"sessionId"
],
"members": {
"assistantId": {
"location": "uri",
"locationName": "assistantId"
},
"sessionId": {
"location": "uri",
"locationName": "sessionId"
}
}
},
"output": {
"type": "structure",
"members": {
"session": {
"shape": "S29"
}
}
}
},
"ListAssistantAssociations": {
"http": {
"method": "GET",
"requestUri": "/assistants/{assistantId}/associations",
"responseCode": 200
},
"input": {
"type": "structure",
"required": [
"assistantId"
],
"members": {
"assistantId": {
"location": "uri",
"locationName": "assistantId"
},
"maxResults": {
"location": "querystring",
"locationName": "maxResults",
"type": "integer"
},
"nextToken": {
"location": "querystring",
"locationName": "nextToken"
}
}
},
"output": {
"type": "structure",
"required": [
"assistantAssociationSummaries"
],
"members": {
"assistantAssociationSummaries": {
"type": "list",
"member": {
"type": "structure",
"required": [
"assistantArn",
"assistantAssociationArn",
"assistantAssociationId",
"assistantId",
"associationData",
"associationType"
],
"members": {
"assistantArn": {},
"assistantAssociationArn": {},
"assistantAssociationId": {},
"assistantId": {},
"associationData": {
"shape": "Sq"
},
"associationType": {},
"tags": {
"shape": "S7"
}
}
}
},
"nextToken": {}
}
}
},
"ListAssistants": {
"http": {
"method": "GET",
"requestUri": "/assistants",
"responseCode": 200
},
"input": {
"type": "structure",
"members": {
"maxResults": {
"location": "querystring",
"locationName": "maxResults",
"type": "integer"
},
"nextToken": {
"location": "querystring",
"locationName": "nextToken"
}
}
},
"output": {
"type": "structure",
"required": [
"assistantSummaries"
],
"members": {
"assistantSummaries": {
"type": "list",
"member": {
"type": "structure",
"required": [
"assistantArn",
"assistantId",
"name",
"status",
"type"
],
"members": {
"assistantArn": {},
"assistantId": {},
"capabilityConfiguration": {
"shape": "Sf"
},
"description": {},
"integrationConfiguration": {
"shape": "Sh"
},
"name": {},
"serverSideEncryptionConfiguration": {
"shape": "S5"
},
"status": {},
"tags": {
"shape": "S7"
},
"type": {}
}
}
},
"nextToken": {}
}
}
},
"ListContentAssociations": {
"http": {
"method": "GET",
"requestUri": "/knowledgeBases/{knowledgeBaseId}/contents/{contentId}/associations",
"responseCode": 200
},
"input": {
"type": "structure",
"required": [
"contentId",
"knowledgeBaseId"
],
"members": {
"contentId": {
"location": "uri",
"locationName": "contentId"
},
"knowledgeBaseId": {
"location": "uri",
"locationName": "knowledgeBaseId"
},
"maxResults": {
"location": "querystring",
"locationName": "maxResults",
"type": "integer"
},
"nextToken": {
"location": "querystring",
"locationName": "nextToken"
}
}
},
"output": {
"type": "structure",
"required": [
"contentAssociationSummaries"
],
"members": {
"contentAssociationSummaries": {
"type": "list",
"member": {
"type": "structure",
"required": [
"associationData",
"associationType",
"contentArn",
"contentAssociationArn",
"contentAssociationId",
"contentId",
"knowledgeBaseArn",
"knowledgeBaseId"
],
"members": {
"associationData": {
"shape": "S14"
},
"associationType": {},
"contentArn": {},
"contentAssociationArn": {},
"contentAssociationId": {},
"contentId": {},
"knowledgeBaseArn": {},
"knowledgeBaseId": {},
"tags": {
"shape": "S7"
}
}
}
},
"nextToken": {}
}
}
},
"ListContents": {
"http": {
"method": "GET",
"requestUri": "/knowledgeBases/{knowledgeBaseId}/contents",
"responseCode": 200
},
"input": {
"type": "structure",
"required": [
"knowledgeBaseId"
],
"members": {
"knowledgeBaseId": {
"location": "uri",
"locationName": "knowledgeBaseId"
},
"maxResults": {
"location": "querystring",
"locationName": "maxResults",
"type": "integer"
},
"nextToken": {
"location": "querystring",
"locationName": "nextToken"
}
}
},
"output": {
"type": "structure",
"required": [
"contentSummaries"
],
"members": {
"contentSummaries": {
"shape": "S4v"
},
"nextToken": {}
}
}
},
"ListImportJobs": {
"http": {
"method": "GET",
"requestUri": "/knowledgeBases/{knowledgeBaseId}/importJobs",
"responseCode": 200
},
"input": {
"type": "structure",
"required": [
"knowledgeBaseId"
],
"members": {
"knowledgeBaseId": {
"location": "uri",
"locationName": "knowledgeBaseId"
},
"maxResults": {
"location": "querystring",
"locationName": "maxResults",
"type": "integer"
},
"nextToken": {
"location": "querystring",
"locationName": "nextToken"
}
}
},
"output": {
"type": "structure",
"required": [
"importJobSummaries"
],
"members": {
"importJobSummaries": {
"type": "list",
"member": {
"type": "structure",
"required": [
"createdTime",
"importJobId",
"importJobType",
"knowledgeBaseArn",
"knowledgeBaseId",
"lastModifiedTime",
"status",
"uploadId"
],
"members": {
"createdTime": {
"shape": "S12"
},
"externalSourceConfiguration": {
"shape": "S33"
},
"importJobId": {},
"importJobType": {},
"knowledgeBaseArn": {},
"knowledgeBaseId": {},
"lastModifiedTime": {
"shape": "S12"
},
"metadata": {
"shape": "St"
},
"status": {},
"uploadId": {}
}
}
},
"nextToken": {}
}
}
},
"ListKnowledgeBases": {
"http": {
"method": "GET",
"requestUri": "/knowledgeBases",
"responseCode": 200
},
"input": {
"type": "structure",
"members": {
"maxResults": {
"location": "querystring",
"locationName": "maxResults",
"type": "integer"
},
"nextToken": {
"location": "querystring",
"locationName": "nextToken"
}
}
},
"output": {
"type": "structure",
"required": [
"knowledgeBaseSummaries"
],
"members": {
"knowledgeBaseSummaries": {
"type": "list",
"member": {
"type": "structure",
"required": [
"knowledgeBaseArn",
"knowledgeBaseId",
"knowledgeBaseType",
"name",
"status"
],
"members": {
"description": {},
"knowledgeBaseArn": {},
"knowledgeBaseId": {},
"knowledgeBaseType": {},
"name": {},
"renderingConfiguration": {
"shape": "S1b"
},
"serverSideEncryptionConfiguration": {
"shape": "S5"
},
"sourceConfiguration": {
"shape": "S1c"
},
"status": {},
"tags": {
"shape": "S7"
}
}
}
},
"nextToken": {}
}
}
},
"ListQuickResponses": {
"http": {
"method": "GET",
"requestUri": "/knowledgeBases/{knowledgeBaseId}/quickResponses",
"responseCode": 200
},
"input": {
"type": "structure",
"required": [
"knowledgeBaseId"
],
"members": {
"knowledgeBaseId": {
"location": "uri",
"locationName": "knowledgeBaseId"
},
"maxResults": {
"location": "querystring",
"locationName": "maxResults",
"type": "integer"
},
"nextToken": {
"location": "querystring",
"locationName": "nextToken"
}
}
},
"output": {
"type": "structure",
"required": [
"quickResponseSummaries"
],
"members": {
"nextToken": {},
"quickResponseSummaries": {
"type": "list",
"member": {
"type": "structure",
"required": [
"contentType",
"createdTime",
"knowledgeBaseArn",
"knowledgeBaseId",
"lastModifiedTime",
"name",
"quickResponseArn",
"quickResponseId",
"status"
],
"members": {
"channels": {
"shape": "S1j"
},
"contentType": {},
"createdTime": {
"shape": "S12"
},
"description": {},
"isActive": {
"type": "boolean"
},
"knowledgeBaseArn": {},
"knowledgeBaseId": {},
"lastModifiedBy": {},
"lastModifiedTime": {
"shape": "S12"
},
"name": {},
"quickResponseArn": {},
"quickResponseId": {},
"status": {},
"tags": {
"shape": "S7"
}
}
}
}
}
}
},
"ListTagsForResource": {
"http": {
"method": "GET",
"requestUri": "/tags/{resourceArn}",
"responseCode": 200
},
"input": {
"type": "structure",
"required": [
"resourceArn"
],
"members": {
"resourceArn": {
"location": "uri",
"locationName": "resourceArn"
}
}
},
"output": {
"type": "structure",
"members": {
"tags": {
"shape": "S7"
}
}
}
},
"NotifyRecommendationsReceived": {
"http": {
"requestUri": "/assistants/{assistantId}/sessions/{sessionId}/recommendations/notify",
"responseCode": 200
},
"input": {
"type": "structure",
"required": [
"assistantId",
"recommendationIds",
"sessionId"
],
"members": {
"assistantId": {
"location": "uri",
"locationName": "assistantId"
},
"recommendationIds": {
"shape": "S4b"
},
"sessionId": {
"location": "uri",
"locationName": "sessionId"
}
}
},
"output": {
"type": "structure",
"members": {
"errors": {
"type": "list",
"member": {
"type": "structure",
"members": {
"message": {},
"recommendationId": {}
}
}
},
"recommendationIds": {
"shape": "S4b"
}
}
},
"idempotent": true
},
"PutFeedback": {
"http": {
"method": "PUT",
"requestUri": "/assistants/{assistantId}/feedback",
"responseCode": 200
},
"input": {
"type": "structure",
"required": [
"assistantId",
"contentFeedback",
"targetId",
"targetType"
],
"members": {
"assistantId": {
"location": "uri",
"locationName": "assistantId"
},
"contentFeedback": {
"shape": "S5g"
},
"targetId": {},
"targetType": {}
}
},
"output": {
"type": "structure",
"required": [
"assistantArn",
"assistantId",
"contentFeedback",
"targetId",
"targetType"
],
"members": {
"assistantArn": {},
"assistantId": {},
"contentFeedback": {
"shape": "S5g"
},
"targetId": {},
"targetType": {}
}
},
"idempotent": true
},
"QueryAssistant": {
"http": {
"requestUri": "/assistants/{assistantId}/query",
"responseCode": 200
},
"input": {
"type": "structure",
"required": [
"assistantId",
"queryText"
],
"members": {
"assistantId": {
"location": "uri",
"locationName": "assistantId"
},
"maxResults": {
"type": "integer"
},
"nextToken": {},
"queryCondition": {
"type": "list",
"member": {
"type": "structure",
"members": {
"single": {
"type": "structure",
"required": [
"comparator",
"field",
"value"
],
"members": {
"comparator": {},
"field": {},
"value": {}
}
}
},
"union": true
}
},
"queryText": {
"shape": "S4a"
},
"sessionId": {}
}
},
"output": {
"type": "structure",
"required": [
"results"
],
"members": {
"nextToken": {},
"results": {
"type": "list",
"member": {
"type": "structure",
"required": [
"resultId"
],
"members": {
"data": {
"shape": "S3j"
},
"document": {
"shape": "S43"
},
"relevanceScore": {
"type": "double"
},
"resultId": {},
"type": {}
}
}
}
}
},
"deprecated": true,
"deprecatedMessage": "QueryAssistant API will be discontinued starting June 1, 2024. To receive generative responses after March 1, 2024 you will need to create a new Assistant in the Connect console and integrate the Amazon Q in Connect JavaScript library (amazon-q-connectjs) into your applications."
},
"RemoveKnowledgeBaseTemplateUri": {
"http": {
"method": "DELETE",
"requestUri": "/knowledgeBases/{knowledgeBaseId}/templateUri",
"responseCode": 204
},
"input": {
"type": "structure",
"required": [
"knowledgeBaseId"
],
"members": {
"knowledgeBaseId": {
"location": "uri",
"locationName": "knowledgeBaseId"
}
}
},
"output": {
"type": "structure",
"members": {}
}
},
"SearchContent": {
"http": {
"requestUri": "/knowledgeBases/{knowledgeBaseId}/search",
"responseCode": 200
},
"input": {
"type": "structure",
"required": [
"knowledgeBaseId",
"searchExpression"
],
"members": {
"knowledgeBaseId": {
"location": "uri",
"locationName": "knowledgeBaseId"
},
"maxResults": {
"location": "querystring",
"locationName": "maxResults",
"type": "integer"
},
"nextToken": {
"location": "querystring",
"locationName": "nextToken"
},
"searchExpression": {
"shape": "S5y"
}
}
},
"output": {
"type": "structure",
"required": [
"contentSummaries"
],
"members": {
"contentSummaries": {
"shape": "S4v"
},
"nextToken": {}
}
}
},
"SearchQuickResponses": {
"http": {
"requestUri": "/knowledgeBases/{knowledgeBaseId}/search/quickResponses",
"responseCode": 200
},
"input": {
"type": "structure",
"required": [
"knowledgeBaseId",
"searchExpression"
],
"members": {
"attributes": {
"type": "map",
"key": {},
"value": {},
"sensitive": true
},
"knowledgeBaseId": {
"location": "uri",
"locationName": "knowledgeBaseId"
},
"maxResults": {
"location": "querystring",
"locationName": "maxResults",
"type": "integer"
},
"nextToken": {
"location": "querystring",
"locationName": "nextToken"
},
"searchExpression": {
"type": "structure",
"members": {
"filters": {
"type": "list",
"member": {
"type": "structure",
"required": [
"name",
"operator"
],
"members": {
"includeNoExistence": {
"type": "boolean"
},
"name": {},
"operator": {},
"values": {
"type": "list",
"member": {}
}
}
}
},
"orderOnField": {
"type": "structure",
"required": [
"name"
],
"members": {
"name": {},
"order": {}
}
},
"queries": {
"type": "list",
"member": {
"type": "structure",
"required": [
"name",
"operator",
"values"
],
"members": {
"allowFuzziness": {
"type": "boolean"
},
"name": {},
"operator": {},
"priority": {},
"values": {
"type": "list",
"member": {}
}
}
}
}
}
}
}
},
"output": {
"type": "structure",
"required": [
"results"
],
"members": {
"nextToken": {},
"results": {
"type": "list",
"member": {
"type": "structure",
"required": [
"contentType",
"contents",
"createdTime",
"isActive",
"knowledgeBaseArn",
"knowledgeBaseId",
"lastModifiedTime",
"name",
"quickResponseArn",
"quickResponseId",
"status"
],
"members": {
"attributesInterpolated": {
"shape": "S6p"
},
"attributesNotInterpolated": {
"shape": "S6p"
},
"channels": {
"shape": "S1j"
},
"contentType": {},
"contents": {
"shape": "S1z"
},
"createdTime": {
"shape": "S12"
},
"description": {},
"groupingConfiguration": {
"shape": "S1p"
},
"isActive": {
"type": "boolean"
},
"knowledgeBaseArn": {},
"knowledgeBaseId": {},
"language": {},
"lastModifiedBy": {},
"lastModifiedTime": {
"shape": "S12"
},
"name": {},
"quickResponseArn": {},
"quickResponseId": {},
"shortcutKey": {},
"status": {},
"tags": {
"shape": "S7"
}
}
}
}
}
}
},
"SearchSessions": {
"http": {
"requestUri": "/assistants/{assistantId}/searchSessions",
"responseCode": 200
},
"input": {
"type": "structure",
"required": [
"assistantId",
"searchExpression"
],
"members": {
"assistantId": {
"location": "uri",
"locationName": "assistantId"
},
"maxResults": {
"location": "querystring",
"locationName": "maxResults",
"type": "integer"
},
"nextToken": {
"location": "querystring",
"locationName": "nextToken"
},
"searchExpression": {
"shape": "S5y"
}
}
},
"output": {
"type": "structure",
"required": [
"sessionSummaries"
],
"members": {
"nextToken": {},
"sessionSummaries": {
"type": "list",
"member": {
"type": "structure",
"required": [
"assistantArn",
"assistantId",
"sessionArn",
"sessionId"
],
"members": {
"assistantArn": {},
"assistantId": {},
"sessionArn": {},
"sessionId": {}
}
}
}
}
}
},
"StartContentUpload": {
"http": {
"requestUri": "/knowledgeBases/{knowledgeBaseId}/upload",
"responseCode": 200
},
"input": {
"type": "structure",
"required": [
"contentType",
"knowledgeBaseId"
],
"members": {
"contentType": {},
"knowledgeBaseId": {
"location": "uri",
"locationName": "knowledgeBaseId"
},
"presignedUrlTimeToLive": {
"type": "integer"
}
}
},
"output": {
"type": "structure",
"required": [
"headersToInclude",
"uploadId",
"url",
"urlExpiry"
],
"members": {
"headersToInclude": {
"type": "map",
"key": {},
"value": {}
},
"uploadId": {},
"url": {
"shape": "S11"
},
"urlExpiry": {
"shape": "S12"
}
}
}
},
"StartImportJob": {
"http": {
"requestUri": "/knowledgeBases/{knowledgeBaseId}/importJobs",
"responseCode": 200
},
"input": {
"type": "structure",
"required": [
"importJobType",
"knowledgeBaseId",
"uploadId"
],
"members": {
"clientToken": {
"idempotencyToken": true
},
"externalSourceConfiguration": {
"shape": "S33"
},
"importJobType": {},
"knowledgeBaseId": {
"location": "uri",
"locationName": "knowledgeBaseId"
},
"metadata": {
"shape": "St"
},
"uploadId": {}
}
},
"output": {
"type": "structure",
"members": {
"importJob": {
"shape": "S32"
}
}
},
"idempotent": true
},
"TagResource": {
"http": {
"requestUri": "/tags/{resourceArn}",
"responseCode": 200
},
"input": {
"type": "structure",
"required": [
"resourceArn",
"tags"
],
"members": {
"resourceArn": {
"location": "uri",
"locationName": "resourceArn"
},
"tags": {
"shape": "S7"
}
}
},
"output": {
"type": "structure",
"members": {}
},
"idempotent": true
},
"UntagResource": {
"http": {
"method": "DELETE",
"requestUri": "/tags/{resourceArn}",
"responseCode": 200
},
"input": {
"type": "structure",
"required": [
"resourceArn",
"tagKeys"
],
"members": {
"resourceArn": {
"location": "uri",
"locationName": "resourceArn"
},
"tagKeys": {
"location": "querystring",
"locationName": "tagKeys",
"type": "list",
"member": {}
}
}
},
"output": {
"type": "structure",
"members": {}
},
"idempotent": true
},
"UpdateContent": {
"http": {
"requestUri": "/knowledgeBases/{knowledgeBaseId}/contents/{contentId}",
"responseCode": 200
},
"input": {
"type": "structure",
"required": [
"contentId",
"knowledgeBaseId"
],
"members": {
"contentId": {
"location": "uri",
"locationName": "contentId"
},
"knowledgeBaseId": {
"location": "uri",
"locationName": "knowledgeBaseId"
},
"metadata": {
"shape": "St"
},
"overrideLinkOutUri": {},
"removeOverrideLinkOutUri": {
"t