Skip to content

Commit c6917b4

Browse files
author
awstools
committed
feat(client-qconnect): Adds CreateContentAssociation, ListContentAssociations, GetContentAssociation, and DeleteContentAssociation APIs.
1 parent 2bd900f commit c6917b4

14 files changed

+1843
-19
lines changed

clients/client-qconnect/README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,14 @@ CreateContent
245245

246246
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qconnect/command/CreateContentCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qconnect/Interface/CreateContentCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qconnect/Interface/CreateContentCommandOutput/)
247247

248+
</details>
249+
<details>
250+
<summary>
251+
CreateContentAssociation
252+
</summary>
253+
254+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qconnect/command/CreateContentAssociationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qconnect/Interface/CreateContentAssociationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qconnect/Interface/CreateContentAssociationCommandOutput/)
255+
248256
</details>
249257
<details>
250258
<summary>
@@ -293,6 +301,14 @@ DeleteContent
293301

294302
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qconnect/command/DeleteContentCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qconnect/Interface/DeleteContentCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qconnect/Interface/DeleteContentCommandOutput/)
295303

304+
</details>
305+
<details>
306+
<summary>
307+
DeleteContentAssociation
308+
</summary>
309+
310+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qconnect/command/DeleteContentAssociationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qconnect/Interface/DeleteContentAssociationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qconnect/Interface/DeleteContentAssociationCommandOutput/)
311+
296312
</details>
297313
<details>
298314
<summary>
@@ -341,6 +357,14 @@ GetContent
341357

342358
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qconnect/command/GetContentCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qconnect/Interface/GetContentCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qconnect/Interface/GetContentCommandOutput/)
343359

360+
</details>
361+
<details>
362+
<summary>
363+
GetContentAssociation
364+
</summary>
365+
366+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qconnect/command/GetContentAssociationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qconnect/Interface/GetContentAssociationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qconnect/Interface/GetContentAssociationCommandOutput/)
367+
344368
</details>
345369
<details>
346370
<summary>
@@ -405,6 +429,14 @@ ListAssistants
405429

406430
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qconnect/command/ListAssistantsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qconnect/Interface/ListAssistantsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qconnect/Interface/ListAssistantsCommandOutput/)
407431

432+
</details>
433+
<details>
434+
<summary>
435+
ListContentAssociations
436+
</summary>
437+
438+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qconnect/command/ListContentAssociationsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qconnect/Interface/ListContentAssociationsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qconnect/Interface/ListContentAssociationsCommandOutput/)
439+
408440
</details>
409441
<details>
410442
<summary>

clients/client-qconnect/src/QConnect.ts

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ import {
1212
CreateAssistantCommandInput,
1313
CreateAssistantCommandOutput,
1414
} from "./commands/CreateAssistantCommand";
15+
import {
16+
CreateContentAssociationCommand,
17+
CreateContentAssociationCommandInput,
18+
CreateContentAssociationCommandOutput,
19+
} from "./commands/CreateContentAssociationCommand";
1520
import {
1621
CreateContentCommand,
1722
CreateContentCommandInput,
@@ -42,6 +47,11 @@ import {
4247
DeleteAssistantCommandInput,
4348
DeleteAssistantCommandOutput,
4449
} from "./commands/DeleteAssistantCommand";
50+
import {
51+
DeleteContentAssociationCommand,
52+
DeleteContentAssociationCommandInput,
53+
DeleteContentAssociationCommandOutput,
54+
} from "./commands/DeleteContentAssociationCommand";
4555
import {
4656
DeleteContentCommand,
4757
DeleteContentCommandInput,
@@ -72,6 +82,11 @@ import {
7282
GetAssistantCommandInput,
7383
GetAssistantCommandOutput,
7484
} from "./commands/GetAssistantCommand";
85+
import {
86+
GetContentAssociationCommand,
87+
GetContentAssociationCommandInput,
88+
GetContentAssociationCommandOutput,
89+
} from "./commands/GetContentAssociationCommand";
7590
import { GetContentCommand, GetContentCommandInput, GetContentCommandOutput } from "./commands/GetContentCommand";
7691
import {
7792
GetContentSummaryCommand,
@@ -109,6 +124,11 @@ import {
109124
ListAssistantsCommandInput,
110125
ListAssistantsCommandOutput,
111126
} from "./commands/ListAssistantsCommand";
127+
import {
128+
ListContentAssociationsCommand,
129+
ListContentAssociationsCommandInput,
130+
ListContentAssociationsCommandOutput,
131+
} from "./commands/ListContentAssociationsCommand";
112132
import {
113133
ListContentsCommand,
114134
ListContentsCommandInput,
@@ -207,18 +227,21 @@ const commands = {
207227
CreateAssistantCommand,
208228
CreateAssistantAssociationCommand,
209229
CreateContentCommand,
230+
CreateContentAssociationCommand,
210231
CreateKnowledgeBaseCommand,
211232
CreateQuickResponseCommand,
212233
CreateSessionCommand,
213234
DeleteAssistantCommand,
214235
DeleteAssistantAssociationCommand,
215236
DeleteContentCommand,
237+
DeleteContentAssociationCommand,
216238
DeleteImportJobCommand,
217239
DeleteKnowledgeBaseCommand,
218240
DeleteQuickResponseCommand,
219241
GetAssistantCommand,
220242
GetAssistantAssociationCommand,
221243
GetContentCommand,
244+
GetContentAssociationCommand,
222245
GetContentSummaryCommand,
223246
GetImportJobCommand,
224247
GetKnowledgeBaseCommand,
@@ -227,6 +250,7 @@ const commands = {
227250
GetSessionCommand,
228251
ListAssistantAssociationsCommand,
229252
ListAssistantsCommand,
253+
ListContentAssociationsCommand,
230254
ListContentsCommand,
231255
ListImportJobsCommand,
232256
ListKnowledgeBasesCommand,
@@ -292,6 +316,23 @@ export interface QConnect {
292316
cb: (err: any, data?: CreateContentCommandOutput) => void
293317
): void;
294318

319+
/**
320+
* @see {@link CreateContentAssociationCommand}
321+
*/
322+
createContentAssociation(
323+
args: CreateContentAssociationCommandInput,
324+
options?: __HttpHandlerOptions
325+
): Promise<CreateContentAssociationCommandOutput>;
326+
createContentAssociation(
327+
args: CreateContentAssociationCommandInput,
328+
cb: (err: any, data?: CreateContentAssociationCommandOutput) => void
329+
): void;
330+
createContentAssociation(
331+
args: CreateContentAssociationCommandInput,
332+
options: __HttpHandlerOptions,
333+
cb: (err: any, data?: CreateContentAssociationCommandOutput) => void
334+
): void;
335+
295336
/**
296337
* @see {@link CreateKnowledgeBaseCommand}
297338
*/
@@ -379,6 +420,23 @@ export interface QConnect {
379420
cb: (err: any, data?: DeleteContentCommandOutput) => void
380421
): void;
381422

423+
/**
424+
* @see {@link DeleteContentAssociationCommand}
425+
*/
426+
deleteContentAssociation(
427+
args: DeleteContentAssociationCommandInput,
428+
options?: __HttpHandlerOptions
429+
): Promise<DeleteContentAssociationCommandOutput>;
430+
deleteContentAssociation(
431+
args: DeleteContentAssociationCommandInput,
432+
cb: (err: any, data?: DeleteContentAssociationCommandOutput) => void
433+
): void;
434+
deleteContentAssociation(
435+
args: DeleteContentAssociationCommandInput,
436+
options: __HttpHandlerOptions,
437+
cb: (err: any, data?: DeleteContentAssociationCommandOutput) => void
438+
): void;
439+
382440
/**
383441
* @see {@link DeleteImportJobCommand}
384442
*/
@@ -466,6 +524,23 @@ export interface QConnect {
466524
cb: (err: any, data?: GetContentCommandOutput) => void
467525
): void;
468526

527+
/**
528+
* @see {@link GetContentAssociationCommand}
529+
*/
530+
getContentAssociation(
531+
args: GetContentAssociationCommandInput,
532+
options?: __HttpHandlerOptions
533+
): Promise<GetContentAssociationCommandOutput>;
534+
getContentAssociation(
535+
args: GetContentAssociationCommandInput,
536+
cb: (err: any, data?: GetContentAssociationCommandOutput) => void
537+
): void;
538+
getContentAssociation(
539+
args: GetContentAssociationCommandInput,
540+
options: __HttpHandlerOptions,
541+
cb: (err: any, data?: GetContentAssociationCommandOutput) => void
542+
): void;
543+
469544
/**
470545
* @see {@link GetContentSummaryCommand}
471546
*/
@@ -588,6 +663,23 @@ export interface QConnect {
588663
cb: (err: any, data?: ListAssistantsCommandOutput) => void
589664
): void;
590665

666+
/**
667+
* @see {@link ListContentAssociationsCommand}
668+
*/
669+
listContentAssociations(
670+
args: ListContentAssociationsCommandInput,
671+
options?: __HttpHandlerOptions
672+
): Promise<ListContentAssociationsCommandOutput>;
673+
listContentAssociations(
674+
args: ListContentAssociationsCommandInput,
675+
cb: (err: any, data?: ListContentAssociationsCommandOutput) => void
676+
): void;
677+
listContentAssociations(
678+
args: ListContentAssociationsCommandInput,
679+
options: __HttpHandlerOptions,
680+
cb: (err: any, data?: ListContentAssociationsCommandOutput) => void
681+
): void;
682+
591683
/**
592684
* @see {@link ListContentsCommand}
593685
*/

clients/client-qconnect/src/QConnectClient.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ import {
5858
CreateAssistantAssociationCommandOutput,
5959
} from "./commands/CreateAssistantAssociationCommand";
6060
import { CreateAssistantCommandInput, CreateAssistantCommandOutput } from "./commands/CreateAssistantCommand";
61+
import {
62+
CreateContentAssociationCommandInput,
63+
CreateContentAssociationCommandOutput,
64+
} from "./commands/CreateContentAssociationCommand";
6165
import { CreateContentCommandInput, CreateContentCommandOutput } from "./commands/CreateContentCommand";
6266
import {
6367
CreateKnowledgeBaseCommandInput,
@@ -73,6 +77,10 @@ import {
7377
DeleteAssistantAssociationCommandOutput,
7478
} from "./commands/DeleteAssistantAssociationCommand";
7579
import { DeleteAssistantCommandInput, DeleteAssistantCommandOutput } from "./commands/DeleteAssistantCommand";
80+
import {
81+
DeleteContentAssociationCommandInput,
82+
DeleteContentAssociationCommandOutput,
83+
} from "./commands/DeleteContentAssociationCommand";
7684
import { DeleteContentCommandInput, DeleteContentCommandOutput } from "./commands/DeleteContentCommand";
7785
import { DeleteImportJobCommandInput, DeleteImportJobCommandOutput } from "./commands/DeleteImportJobCommand";
7886
import {
@@ -88,6 +96,10 @@ import {
8896
GetAssistantAssociationCommandOutput,
8997
} from "./commands/GetAssistantAssociationCommand";
9098
import { GetAssistantCommandInput, GetAssistantCommandOutput } from "./commands/GetAssistantCommand";
99+
import {
100+
GetContentAssociationCommandInput,
101+
GetContentAssociationCommandOutput,
102+
} from "./commands/GetContentAssociationCommand";
91103
import { GetContentCommandInput, GetContentCommandOutput } from "./commands/GetContentCommand";
92104
import { GetContentSummaryCommandInput, GetContentSummaryCommandOutput } from "./commands/GetContentSummaryCommand";
93105
import { GetImportJobCommandInput, GetImportJobCommandOutput } from "./commands/GetImportJobCommand";
@@ -100,6 +112,10 @@ import {
100112
ListAssistantAssociationsCommandOutput,
101113
} from "./commands/ListAssistantAssociationsCommand";
102114
import { ListAssistantsCommandInput, ListAssistantsCommandOutput } from "./commands/ListAssistantsCommand";
115+
import {
116+
ListContentAssociationsCommandInput,
117+
ListContentAssociationsCommandOutput,
118+
} from "./commands/ListContentAssociationsCommand";
103119
import { ListContentsCommandInput, ListContentsCommandOutput } from "./commands/ListContentsCommand";
104120
import { ListImportJobsCommandInput, ListImportJobsCommandOutput } from "./commands/ListImportJobsCommand";
105121
import { ListKnowledgeBasesCommandInput, ListKnowledgeBasesCommandOutput } from "./commands/ListKnowledgeBasesCommand";
@@ -155,18 +171,21 @@ export { __Client };
155171
export type ServiceInputTypes =
156172
| CreateAssistantAssociationCommandInput
157173
| CreateAssistantCommandInput
174+
| CreateContentAssociationCommandInput
158175
| CreateContentCommandInput
159176
| CreateKnowledgeBaseCommandInput
160177
| CreateQuickResponseCommandInput
161178
| CreateSessionCommandInput
162179
| DeleteAssistantAssociationCommandInput
163180
| DeleteAssistantCommandInput
181+
| DeleteContentAssociationCommandInput
164182
| DeleteContentCommandInput
165183
| DeleteImportJobCommandInput
166184
| DeleteKnowledgeBaseCommandInput
167185
| DeleteQuickResponseCommandInput
168186
| GetAssistantAssociationCommandInput
169187
| GetAssistantCommandInput
188+
| GetContentAssociationCommandInput
170189
| GetContentCommandInput
171190
| GetContentSummaryCommandInput
172191
| GetImportJobCommandInput
@@ -176,6 +195,7 @@ export type ServiceInputTypes =
176195
| GetSessionCommandInput
177196
| ListAssistantAssociationsCommandInput
178197
| ListAssistantsCommandInput
198+
| ListContentAssociationsCommandInput
179199
| ListContentsCommandInput
180200
| ListImportJobsCommandInput
181201
| ListKnowledgeBasesCommandInput
@@ -203,18 +223,21 @@ export type ServiceInputTypes =
203223
export type ServiceOutputTypes =
204224
| CreateAssistantAssociationCommandOutput
205225
| CreateAssistantCommandOutput
226+
| CreateContentAssociationCommandOutput
206227
| CreateContentCommandOutput
207228
| CreateKnowledgeBaseCommandOutput
208229
| CreateQuickResponseCommandOutput
209230
| CreateSessionCommandOutput
210231
| DeleteAssistantAssociationCommandOutput
211232
| DeleteAssistantCommandOutput
233+
| DeleteContentAssociationCommandOutput
212234
| DeleteContentCommandOutput
213235
| DeleteImportJobCommandOutput
214236
| DeleteKnowledgeBaseCommandOutput
215237
| DeleteQuickResponseCommandOutput
216238
| GetAssistantAssociationCommandOutput
217239
| GetAssistantCommandOutput
240+
| GetContentAssociationCommandOutput
218241
| GetContentCommandOutput
219242
| GetContentSummaryCommandOutput
220243
| GetImportJobCommandOutput
@@ -224,6 +247,7 @@ export type ServiceOutputTypes =
224247
| GetSessionCommandOutput
225248
| ListAssistantAssociationsCommandOutput
226249
| ListAssistantsCommandOutput
250+
| ListContentAssociationsCommandOutput
227251
| ListContentsCommandOutput
228252
| ListImportJobsCommandOutput
229253
| ListKnowledgeBasesCommandOutput

0 commit comments

Comments
 (0)