Skip to content

Commit 8cc998d

Browse files
author
AWS
committed
QBusiness Update: Amazon Q Business now supports the GetDocumentContent() API that enables customers to securely access the source documents through clickable citation links at query time
1 parent b532117 commit 8cc998d

File tree

2 files changed

+99
-2
lines changed

2 files changed

+99
-2
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "QBusiness",
4+
"contributor": "",
5+
"description": "Amazon Q Business now supports the GetDocumentContent() API that enables customers to securely access the source documents through clickable citation links at query time"
6+
}

services/qbusiness/src/main/resources/codegen-resources/service-2.json

Lines changed: 93 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@
333333
{"shape":"ValidationException"},
334334
{"shape":"AccessDeniedException"}
335335
],
336-
"documentation":"<p>Subscribes an IAM Identity Center user or a group to a pricing tier for an Amazon Q Business application.</p> <p>Amazon Q Business offers two subscription tiers: <code>Q_LITE</code> and <code>Q_BUSINESS</code>. Subscription tier determines feature access for the user. For more information on subscriptions and pricing tiers, see <a href=\"https://aws.amazon.com/q/business/pricing/\">Amazon Q Business pricing</a>.</p>",
336+
"documentation":"<p>Subscribes an IAM Identity Center user or a group to a pricing tier for an Amazon Q Business application.</p> <p>Amazon Q Business offers two subscription tiers: <code>Q_LITE</code> and <code>Q_BUSINESS</code>. Subscription tier determines feature access for the user. For more information on subscriptions and pricing tiers, see <a href=\"https://aws.amazon.com/q/business/pricing/\">Amazon Q Business pricing</a>.</p> <note> <p>For an example IAM role policy for assigning subscriptions, see <a href=\"https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/setting-up.html#permissions\">Set up required permissions</a> in the Amazon Q Business User Guide.</p> </note>",
337337
"idempotent":true
338338
},
339339
"CreateUser":{
@@ -746,6 +746,24 @@
746746
],
747747
"documentation":"<p>Gets information about an existing Amazon Q Business data source connector.</p>"
748748
},
749+
"GetDocumentContent":{
750+
"name":"GetDocumentContent",
751+
"http":{
752+
"method":"GET",
753+
"requestUri":"/applications/{applicationId}/index/{indexId}/documents/{documentId}/content",
754+
"responseCode":200
755+
},
756+
"input":{"shape":"GetDocumentContentRequest"},
757+
"output":{"shape":"GetDocumentContentResponse"},
758+
"errors":[
759+
{"shape":"InternalServerException"},
760+
{"shape":"ResourceNotFoundException"},
761+
{"shape":"ThrottlingException"},
762+
{"shape":"ValidationException"},
763+
{"shape":"AccessDeniedException"}
764+
],
765+
"documentation":"<p>Retrieves the content of a document that was ingested into Amazon Q Business. This API validates user authorization against document ACLs before returning a pre-signed URL for secure document access. You can download or view source documents referenced in chat responses through the URL.</p>"
766+
},
749767
"GetGroup":{
750768
"name":"GetGroup",
751769
"http":{
@@ -4944,7 +4962,7 @@
49444962
"documentation":"<p>The path to the document in an Amazon S3 bucket.</p>"
49454963
}
49464964
},
4947-
"documentation":"<p>The contents of a document.</p>",
4965+
"documentation":"<p>The contents of a document.</p> <note> <p>Documents have size limitations. The maximum file size for a document is 50 MB. The maximum amount of text that can be extracted from a single document is 5 MB. For more information, see <a href=\"https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/doc-types.html\">Supported document formats in Amazon Q Business</a>.</p> </note>",
49484966
"union":true
49494967
},
49504968
"DocumentContentOperator":{
@@ -5555,6 +5573,63 @@
55555573
}
55565574
}
55575575
},
5576+
"GetDocumentContentRequest":{
5577+
"type":"structure",
5578+
"required":[
5579+
"applicationId",
5580+
"indexId",
5581+
"documentId"
5582+
],
5583+
"members":{
5584+
"applicationId":{
5585+
"shape":"ApplicationId",
5586+
"documentation":"<p>The unique identifier of the Amazon Q Business application containing the document. This ensures the request is scoped to the correct application environment and its associated security policies.</p>",
5587+
"location":"uri",
5588+
"locationName":"applicationId"
5589+
},
5590+
"indexId":{
5591+
"shape":"IndexId",
5592+
"documentation":"<p>The identifier of the index where documents are indexed.</p>",
5593+
"location":"uri",
5594+
"locationName":"indexId"
5595+
},
5596+
"dataSourceId":{
5597+
"shape":"DataSourceId",
5598+
"documentation":"<p>The identifier of the data source from which the document was ingested. This field is not present if the document is ingested by directly calling the BatchPutDocument API. If the document is from a file-upload data source, the datasource will be \"uploaded-docs-file-stat-datasourceid\".</p>",
5599+
"location":"querystring",
5600+
"locationName":"dataSourceId"
5601+
},
5602+
"documentId":{
5603+
"shape":"DocumentId",
5604+
"documentation":"<p>The unique identifier of the document that is indexed via BatchPutDocument API or file-upload or connector sync. It is also found in chat or chatSync response.</p>",
5605+
"location":"uri",
5606+
"locationName":"documentId"
5607+
},
5608+
"outputFormat":{
5609+
"shape":"OutputFormat",
5610+
"documentation":"<p>Raw document outputFormat.</p>",
5611+
"location":"querystring",
5612+
"locationName":"outputFormat"
5613+
}
5614+
}
5615+
},
5616+
"GetDocumentContentResponse":{
5617+
"type":"structure",
5618+
"required":[
5619+
"presignedUrl",
5620+
"mimeType"
5621+
],
5622+
"members":{
5623+
"presignedUrl":{
5624+
"shape":"String",
5625+
"documentation":"<p>A pre-signed URL that provides temporary access to download the document content directly from Amazon Q Business. The URL expires after 5 minutes for security purposes. This URL is generated only after successful ACL validation.</p>"
5626+
},
5627+
"mimeType":{
5628+
"shape":"String",
5629+
"documentation":"<p>The MIME type of the document content (e.g., application/pdf, text/plain, application/vnd.openxmlformats-officedocument.wordprocessingml.document).</p>"
5630+
}
5631+
}
5632+
},
55585633
"GetGroupRequest":{
55595634
"type":"structure",
55605635
"required":[
@@ -7714,6 +7789,10 @@
77147789
"min":1,
77157790
"pattern":"(http://|https://)[a-zA-Z0-9-_.]+(?::[0-9]{1,5})?"
77167791
},
7792+
"OutputFormat":{
7793+
"type":"string",
7794+
"enum":["RAW"]
7795+
},
77177796
"Payload":{
77187797
"type":"string",
77197798
"sensitive":true
@@ -8628,6 +8707,18 @@
86288707
"textMessageSegments":{
86298708
"shape":"TextSegmentList",
86308709
"documentation":"<p>A text extract from a source document that is used for source attribution.</p>"
8710+
},
8711+
"documentId":{
8712+
"shape":"String",
8713+
"documentation":"<p>The unique identifier of the source document used in the citation, obtained from the Amazon Q Business index during chat response generation. This ID is used as input to the <code>GetDocumentContent</code> API to retrieve the actual document content for user verification.</p>"
8714+
},
8715+
"indexId":{
8716+
"shape":"String",
8717+
"documentation":"<p>The identifier of the index containing the source document's metadata and access control information. This links the citation back to the specific Amazon Q Business index where the document's searchable content and permissions are stored.</p>"
8718+
},
8719+
"datasourceId":{
8720+
"shape":"String",
8721+
"documentation":"<p>The identifier of the data source from which the document was ingested. This field is not present if the document is ingested by directly calling the BatchPutDocument API (similar to checkDocumentAccess). If the document is from a file-upload data source, the datasource will be \"uploaded-docs-file-stat-datasourceid\".</p>"
86318722
}
86328723
},
86338724
"documentation":"<p>The documents used to generate an Amazon Q Business web experience response.</p>"

0 commit comments

Comments
 (0)