Skip to content

Commit 4f906b2

Browse files
author
awstools
committed
feat(client-qbusiness): The CheckDocumentAccess API for Amazon Q Business is a self-service debugging API that allows administrators to verify document access permissions and review Access Control List (ACL) configurations.
1 parent 0b976c3 commit 4f906b2

File tree

85 files changed

+17056
-17884
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+17056
-17884
lines changed

clients/client-qbusiness/README.md

Lines changed: 9 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -6,45 +6,7 @@
66

77
AWS SDK for JavaScript QBusiness Client for Node.js, Browser and React Native.
88

9-
<p>This is the <i>Amazon Q Business</i> API Reference. Amazon Q Business is a fully
10-
managed, generative-AI powered enterprise chat assistant that you can deploy within your
11-
organization. Amazon Q Business enhances employee productivity by supporting key tasks such
12-
as question-answering, knowledge discovery, writing email messages, summarizing text,
13-
drafting document outlines, and brainstorming ideas. Users ask questions of
14-
Amazon Q Business and get answers that are presented in a conversational manner. For an
15-
introduction to the service, see the <a href="https://docs.aws.amazon.com/amazonq/latest/business-use-dg/what-is.html">
16-
<i>Amazon Q Business User Guide</i>
17-
</a>.</p>
18-
<p>For an overview of the Amazon Q Business APIs, see <a href="https://docs.aws.amazon.com/amazonq/latest/business-use-dg/api-ref.html#api-overview">Overview of Amazon Q Business API operations</a>.</p>
19-
<p>For information about the IAM access control permissions you need to
20-
use this API, see <a href="https://docs.aws.amazon.com/amazonq/latest/business-use-dg/iam-roles.html">IAM roles for Amazon Q Business</a> in the
21-
<i>Amazon Q Business User Guide</i>.</p>
22-
<p>The following resources provide additional information about using the Amazon Q Business
23-
API:</p>
24-
<ul>
25-
<li>
26-
<p>
27-
<i>
28-
<a href="https://docs.aws.amazon.com/amazonq/latest/business-use-dg/setting-up.html">Setting up for
29-
Amazon Q Business</a>
30-
</i>
31-
</p>
32-
</li>
33-
<li>
34-
<p>
35-
<i>
36-
<a href="https://awscli.amazonaws.com/v2/documentation/api/latest/reference/qbusiness/index.html">Amazon Q Business CLI Reference</a>
37-
</i>
38-
</p>
39-
</li>
40-
<li>
41-
<p>
42-
<i>
43-
<a href="https://docs.aws.amazon.com/general/latest/gr/amazonq.html">Amazon Web Services General Reference</a>
44-
</i>
45-
</p>
46-
</li>
47-
</ul>
9+
<p>This is the <i>Amazon Q Business</i> API Reference. Amazon Q Business is a fully managed, generative-AI powered enterprise chat assistant that you can deploy within your organization. Amazon Q Business enhances employee productivity by supporting key tasks such as question-answering, knowledge discovery, writing email messages, summarizing text, drafting document outlines, and brainstorming ideas. Users ask questions of Amazon Q Business and get answers that are presented in a conversational manner. For an introduction to the service, see the <a href="https://docs.aws.amazon.com/amazonq/latest/business-use-dg/what-is.html"> <i>Amazon Q Business User Guide</i> </a>.</p> <p>For an overview of the Amazon Q Business APIs, see <a href="https://docs.aws.amazon.com/amazonq/latest/business-use-dg/api-ref.html#api-overview">Overview of Amazon Q Business API operations</a>.</p> <p>For information about the IAM access control permissions you need to use this API, see <a href="https://docs.aws.amazon.com/amazonq/latest/business-use-dg/iam-roles.html">IAM roles for Amazon Q Business</a> in the <i>Amazon Q Business User Guide</i>.</p> <p>The following resources provide additional information about using the Amazon Q Business API:</p> <ul> <li> <p> <i> <a href="https://docs.aws.amazon.com/amazonq/latest/business-use-dg/setting-up.html">Setting up for Amazon Q Business</a> </i> </p> </li> <li> <p> <i> <a href="https://awscli.amazonaws.com/v2/documentation/api/latest/reference/qbusiness/index.html">Amazon Q Business CLI Reference</a> </i> </p> </li> <li> <p> <i> <a href="https://docs.aws.amazon.com/general/latest/gr/amazonq.html">Amazon Web Services General Reference</a> </i> </p> </li> </ul>
4810

4911
## Installing
5012

@@ -288,6 +250,14 @@ ChatSync
288250

289251
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qbusiness/command/ChatSyncCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qbusiness/Interface/ChatSyncCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qbusiness/Interface/ChatSyncCommandOutput/)
290252

253+
</details>
254+
<details>
255+
<summary>
256+
CheckDocumentAccess
257+
</summary>
258+
259+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qbusiness/command/CheckDocumentAccessCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qbusiness/Interface/CheckDocumentAccessCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qbusiness/Interface/CheckDocumentAccessCommandOutput/)
260+
291261
</details>
292262
<details>
293263
<summary>

clients/client-qbusiness/src/QBusiness.ts

Lines changed: 24 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ import {
2424
} from "./commands/CancelSubscriptionCommand";
2525
import { ChatCommand, ChatCommandInput, ChatCommandOutput } from "./commands/ChatCommand";
2626
import { ChatSyncCommand, ChatSyncCommandInput, ChatSyncCommandOutput } from "./commands/ChatSyncCommand";
27+
import {
28+
CheckDocumentAccessCommand,
29+
CheckDocumentAccessCommandInput,
30+
CheckDocumentAccessCommandOutput,
31+
} from "./commands/CheckDocumentAccessCommand";
2732
import {
2833
CreateApplicationCommand,
2934
CreateApplicationCommandInput,
@@ -302,6 +307,7 @@ const commands = {
302307
CancelSubscriptionCommand,
303308
ChatCommand,
304309
ChatSyncCommand,
310+
CheckDocumentAccessCommand,
305311
CreateApplicationCommand,
306312
CreateDataAccessorCommand,
307313
CreateDataSourceCommand,
@@ -460,6 +466,23 @@ export interface QBusiness {
460466
cb: (err: any, data?: ChatSyncCommandOutput) => void
461467
): void;
462468

469+
/**
470+
* @see {@link CheckDocumentAccessCommand}
471+
*/
472+
checkDocumentAccess(
473+
args: CheckDocumentAccessCommandInput,
474+
options?: __HttpHandlerOptions
475+
): Promise<CheckDocumentAccessCommandOutput>;
476+
checkDocumentAccess(
477+
args: CheckDocumentAccessCommandInput,
478+
cb: (err: any, data?: CheckDocumentAccessCommandOutput) => void
479+
): void;
480+
checkDocumentAccess(
481+
args: CheckDocumentAccessCommandInput,
482+
options: __HttpHandlerOptions,
483+
cb: (err: any, data?: CheckDocumentAccessCommandOutput) => void
484+
): void;
485+
463486
/**
464487
* @see {@link CreateApplicationCommand}
465488
*/
@@ -1451,45 +1474,7 @@ export interface QBusiness {
14511474
}
14521475

14531476
/**
1454-
* <p>This is the <i>Amazon Q Business</i> API Reference. Amazon Q Business is a fully
1455-
* managed, generative-AI powered enterprise chat assistant that you can deploy within your
1456-
* organization. Amazon Q Business enhances employee productivity by supporting key tasks such
1457-
* as question-answering, knowledge discovery, writing email messages, summarizing text,
1458-
* drafting document outlines, and brainstorming ideas. Users ask questions of
1459-
* Amazon Q Business and get answers that are presented in a conversational manner. For an
1460-
* introduction to the service, see the <a href="https://docs.aws.amazon.com/amazonq/latest/business-use-dg/what-is.html">
1461-
* <i>Amazon Q Business User Guide</i>
1462-
* </a>.</p>
1463-
* <p>For an overview of the Amazon Q Business APIs, see <a href="https://docs.aws.amazon.com/amazonq/latest/business-use-dg/api-ref.html#api-overview">Overview of Amazon Q Business API operations</a>.</p>
1464-
* <p>For information about the IAM access control permissions you need to
1465-
* use this API, see <a href="https://docs.aws.amazon.com/amazonq/latest/business-use-dg/iam-roles.html">IAM roles for Amazon Q Business</a> in the
1466-
* <i>Amazon Q Business User Guide</i>.</p>
1467-
* <p>The following resources provide additional information about using the Amazon Q Business
1468-
* API:</p>
1469-
* <ul>
1470-
* <li>
1471-
* <p>
1472-
* <i>
1473-
* <a href="https://docs.aws.amazon.com/amazonq/latest/business-use-dg/setting-up.html">Setting up for
1474-
* Amazon Q Business</a>
1475-
* </i>
1476-
* </p>
1477-
* </li>
1478-
* <li>
1479-
* <p>
1480-
* <i>
1481-
* <a href="https://awscli.amazonaws.com/v2/documentation/api/latest/reference/qbusiness/index.html">Amazon Q Business CLI Reference</a>
1482-
* </i>
1483-
* </p>
1484-
* </li>
1485-
* <li>
1486-
* <p>
1487-
* <i>
1488-
* <a href="https://docs.aws.amazon.com/general/latest/gr/amazonq.html">Amazon Web Services General Reference</a>
1489-
* </i>
1490-
* </p>
1491-
* </li>
1492-
* </ul>
1477+
* <p>This is the <i>Amazon Q Business</i> API Reference. Amazon Q Business is a fully managed, generative-AI powered enterprise chat assistant that you can deploy within your organization. Amazon Q Business enhances employee productivity by supporting key tasks such as question-answering, knowledge discovery, writing email messages, summarizing text, drafting document outlines, and brainstorming ideas. Users ask questions of Amazon Q Business and get answers that are presented in a conversational manner. For an introduction to the service, see the <a href="https://docs.aws.amazon.com/amazonq/latest/business-use-dg/what-is.html"> <i>Amazon Q Business User Guide</i> </a>.</p> <p>For an overview of the Amazon Q Business APIs, see <a href="https://docs.aws.amazon.com/amazonq/latest/business-use-dg/api-ref.html#api-overview">Overview of Amazon Q Business API operations</a>.</p> <p>For information about the IAM access control permissions you need to use this API, see <a href="https://docs.aws.amazon.com/amazonq/latest/business-use-dg/iam-roles.html">IAM roles for Amazon Q Business</a> in the <i>Amazon Q Business User Guide</i>.</p> <p>The following resources provide additional information about using the Amazon Q Business API:</p> <ul> <li> <p> <i> <a href="https://docs.aws.amazon.com/amazonq/latest/business-use-dg/setting-up.html">Setting up for Amazon Q Business</a> </i> </p> </li> <li> <p> <i> <a href="https://awscli.amazonaws.com/v2/documentation/api/latest/reference/qbusiness/index.html">Amazon Q Business CLI Reference</a> </i> </p> </li> <li> <p> <i> <a href="https://docs.aws.amazon.com/general/latest/gr/amazonq.html">Amazon Web Services General Reference</a> </i> </p> </li> </ul>
14931478
* @public
14941479
*/
14951480
export class QBusiness extends QBusinessClient implements QBusiness {}

clients/client-qbusiness/src/QBusinessClient.ts

Lines changed: 7 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ import { BatchPutDocumentCommandInput, BatchPutDocumentCommandOutput } from "./c
7777
import { CancelSubscriptionCommandInput, CancelSubscriptionCommandOutput } from "./commands/CancelSubscriptionCommand";
7878
import { ChatCommandInput, ChatCommandOutput } from "./commands/ChatCommand";
7979
import { ChatSyncCommandInput, ChatSyncCommandOutput } from "./commands/ChatSyncCommand";
80+
import {
81+
CheckDocumentAccessCommandInput,
82+
CheckDocumentAccessCommandOutput,
83+
} from "./commands/CheckDocumentAccessCommand";
8084
import { CreateApplicationCommandInput, CreateApplicationCommandOutput } from "./commands/CreateApplicationCommand";
8185
import { CreateDataAccessorCommandInput, CreateDataAccessorCommandOutput } from "./commands/CreateDataAccessorCommand";
8286
import { CreateDataSourceCommandInput, CreateDataSourceCommandOutput } from "./commands/CreateDataSourceCommand";
@@ -209,6 +213,7 @@ export type ServiceInputTypes =
209213
| CancelSubscriptionCommandInput
210214
| ChatCommandInput
211215
| ChatSyncCommandInput
216+
| CheckDocumentAccessCommandInput
212217
| CreateApplicationCommandInput
213218
| CreateDataAccessorCommandInput
214219
| CreateDataSourceCommandInput
@@ -289,6 +294,7 @@ export type ServiceOutputTypes =
289294
| CancelSubscriptionCommandOutput
290295
| ChatCommandOutput
291296
| ChatSyncCommandOutput
297+
| CheckDocumentAccessCommandOutput
292298
| CreateApplicationCommandOutput
293299
| CreateDataAccessorCommandOutput
294300
| CreateDataSourceCommandOutput
@@ -565,45 +571,7 @@ export type QBusinessClientResolvedConfigType = __SmithyResolvedConfiguration<__
565571
export interface QBusinessClientResolvedConfig extends QBusinessClientResolvedConfigType {}
566572

567573
/**
568-
* <p>This is the <i>Amazon Q Business</i> API Reference. Amazon Q Business is a fully
569-
* managed, generative-AI powered enterprise chat assistant that you can deploy within your
570-
* organization. Amazon Q Business enhances employee productivity by supporting key tasks such
571-
* as question-answering, knowledge discovery, writing email messages, summarizing text,
572-
* drafting document outlines, and brainstorming ideas. Users ask questions of
573-
* Amazon Q Business and get answers that are presented in a conversational manner. For an
574-
* introduction to the service, see the <a href="https://docs.aws.amazon.com/amazonq/latest/business-use-dg/what-is.html">
575-
* <i>Amazon Q Business User Guide</i>
576-
* </a>.</p>
577-
* <p>For an overview of the Amazon Q Business APIs, see <a href="https://docs.aws.amazon.com/amazonq/latest/business-use-dg/api-ref.html#api-overview">Overview of Amazon Q Business API operations</a>.</p>
578-
* <p>For information about the IAM access control permissions you need to
579-
* use this API, see <a href="https://docs.aws.amazon.com/amazonq/latest/business-use-dg/iam-roles.html">IAM roles for Amazon Q Business</a> in the
580-
* <i>Amazon Q Business User Guide</i>.</p>
581-
* <p>The following resources provide additional information about using the Amazon Q Business
582-
* API:</p>
583-
* <ul>
584-
* <li>
585-
* <p>
586-
* <i>
587-
* <a href="https://docs.aws.amazon.com/amazonq/latest/business-use-dg/setting-up.html">Setting up for
588-
* Amazon Q Business</a>
589-
* </i>
590-
* </p>
591-
* </li>
592-
* <li>
593-
* <p>
594-
* <i>
595-
* <a href="https://awscli.amazonaws.com/v2/documentation/api/latest/reference/qbusiness/index.html">Amazon Q Business CLI Reference</a>
596-
* </i>
597-
* </p>
598-
* </li>
599-
* <li>
600-
* <p>
601-
* <i>
602-
* <a href="https://docs.aws.amazon.com/general/latest/gr/amazonq.html">Amazon Web Services General Reference</a>
603-
* </i>
604-
* </p>
605-
* </li>
606-
* </ul>
574+
* <p>This is the <i>Amazon Q Business</i> API Reference. Amazon Q Business is a fully managed, generative-AI powered enterprise chat assistant that you can deploy within your organization. Amazon Q Business enhances employee productivity by supporting key tasks such as question-answering, knowledge discovery, writing email messages, summarizing text, drafting document outlines, and brainstorming ideas. Users ask questions of Amazon Q Business and get answers that are presented in a conversational manner. For an introduction to the service, see the <a href="https://docs.aws.amazon.com/amazonq/latest/business-use-dg/what-is.html"> <i>Amazon Q Business User Guide</i> </a>.</p> <p>For an overview of the Amazon Q Business APIs, see <a href="https://docs.aws.amazon.com/amazonq/latest/business-use-dg/api-ref.html#api-overview">Overview of Amazon Q Business API operations</a>.</p> <p>For information about the IAM access control permissions you need to use this API, see <a href="https://docs.aws.amazon.com/amazonq/latest/business-use-dg/iam-roles.html">IAM roles for Amazon Q Business</a> in the <i>Amazon Q Business User Guide</i>.</p> <p>The following resources provide additional information about using the Amazon Q Business API:</p> <ul> <li> <p> <i> <a href="https://docs.aws.amazon.com/amazonq/latest/business-use-dg/setting-up.html">Setting up for Amazon Q Business</a> </i> </p> </li> <li> <p> <i> <a href="https://awscli.amazonaws.com/v2/documentation/api/latest/reference/qbusiness/index.html">Amazon Q Business CLI Reference</a> </i> </p> </li> <li> <p> <i> <a href="https://docs.aws.amazon.com/general/latest/gr/amazonq.html">Amazon Web Services General Reference</a> </i> </p> </li> </ul>
607575
* @public
608576
*/
609577
export class QBusinessClient extends __Client<

clients/client-qbusiness/src/commands/AssociatePermissionCommand.ts

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ export interface AssociatePermissionCommandInput extends AssociatePermissionRequ
2828
export interface AssociatePermissionCommandOutput extends AssociatePermissionResponse, __MetadataBearer {}
2929

3030
/**
31-
* <p>Adds or updates a permission policy for a Amazon Q Business application, allowing cross-account access for an ISV.
32-
* This operation creates a new policy statement for the specified Amazon Q Business application.
33-
* The policy statement defines the IAM actions that the ISV is allowed to perform on the Amazon Q Business application's resources.</p>
31+
* <p>Adds or updates a permission policy for a Amazon Q Business application, allowing cross-account access for an ISV. This operation creates a new policy statement for the specified Amazon Q Business application. The policy statement defines the IAM actions that the ISV is allowed to perform on the Amazon Q Business application's resources.</p>
3432
* @example
3533
* Use a bare-bones client and the command you need to make an API call.
3634
* ```javascript
@@ -60,31 +58,25 @@ export interface AssociatePermissionCommandOutput extends AssociatePermissionRes
6058
* @see {@link QBusinessClientResolvedConfig | config} for QBusinessClient's `config` shape.
6159
*
6260
* @throws {@link AccessDeniedException} (client fault)
63-
* <p> You don't have access to perform this action. Make sure you have the required
64-
* permission policies and user accounts and try again.</p>
61+
* <p> You don't have access to perform this action. Make sure you have the required permission policies and user accounts and try again.</p>
6562
*
6663
* @throws {@link ConflictException} (client fault)
67-
* <p>You are trying to perform an action that conflicts with the current status of your
68-
* resource. Fix any inconsistencies with your resources and try again.</p>
64+
* <p>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.</p>
6965
*
7066
* @throws {@link InternalServerException} (server fault)
71-
* <p>An issue occurred with the internal server used for your Amazon Q Business service. Wait
72-
* some minutes and try again, or contact <a href="http://aws.amazon.com/contact-us/">Support</a> for help.</p>
67+
* <p>An issue occurred with the internal server used for your Amazon Q Business service. Wait some minutes and try again, or contact <a href="http://aws.amazon.com/contact-us/">Support</a> for help.</p>
7368
*
7469
* @throws {@link ResourceNotFoundException} (client fault)
75-
* <p>The application or plugin resource you want to use doesn’t exist. Make sure you have
76-
* provided the correct resource and try again.</p>
70+
* <p>The application or plugin resource you want to use doesn’t exist. Make sure you have provided the correct resource and try again.</p>
7771
*
7872
* @throws {@link ServiceQuotaExceededException} (client fault)
7973
* <p>You have exceeded the set limits for your Amazon Q Business service. </p>
8074
*
8175
* @throws {@link ThrottlingException} (client fault)
82-
* <p>The request was denied due to throttling. Reduce the number of requests and try
83-
* again.</p>
76+
* <p>The request was denied due to throttling. Reduce the number of requests and try again.</p>
8477
*
8578
* @throws {@link ValidationException} (client fault)
86-
* <p>The input doesn't meet the constraints set by the Amazon Q Business service. Provide the
87-
* correct input and try again.</p>
79+
* <p>The input doesn't meet the constraints set by the Amazon Q Business service. Provide the correct input and try again.</p>
8880
*
8981
* @throws {@link QBusinessServiceException}
9082
* <p>Base exception class for all service exceptions from QBusiness service.</p>

0 commit comments

Comments
 (0)