Skip to content

Commit

Permalink
feat(client-qconnect): Adds CreateContentAssociation, ListContentAsso…
Browse files Browse the repository at this point in the history
…ciations, GetContentAssociation, and DeleteContentAssociation APIs.
  • Loading branch information
awstools committed Jun 27, 2024
1 parent 2bd900f commit c6917b4
Show file tree
Hide file tree
Showing 14 changed files with 1,843 additions and 19 deletions.
32 changes: 32 additions & 0 deletions clients/client-qconnect/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,14 @@ CreateContent

[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/)

</details>
<details>
<summary>
CreateContentAssociation
</summary>

[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/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -293,6 +301,14 @@ DeleteContent

[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/)

</details>
<details>
<summary>
DeleteContentAssociation
</summary>

[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/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -341,6 +357,14 @@ GetContent

[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/)

</details>
<details>
<summary>
GetContentAssociation
</summary>

[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/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -405,6 +429,14 @@ ListAssistants

[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/)

</details>
<details>
<summary>
ListContentAssociations
</summary>

[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/)

</details>
<details>
<summary>
Expand Down
92 changes: 92 additions & 0 deletions clients/client-qconnect/src/QConnect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ import {
CreateAssistantCommandInput,
CreateAssistantCommandOutput,
} from "./commands/CreateAssistantCommand";
import {
CreateContentAssociationCommand,
CreateContentAssociationCommandInput,
CreateContentAssociationCommandOutput,
} from "./commands/CreateContentAssociationCommand";
import {
CreateContentCommand,
CreateContentCommandInput,
Expand Down Expand Up @@ -42,6 +47,11 @@ import {
DeleteAssistantCommandInput,
DeleteAssistantCommandOutput,
} from "./commands/DeleteAssistantCommand";
import {
DeleteContentAssociationCommand,
DeleteContentAssociationCommandInput,
DeleteContentAssociationCommandOutput,
} from "./commands/DeleteContentAssociationCommand";
import {
DeleteContentCommand,
DeleteContentCommandInput,
Expand Down Expand Up @@ -72,6 +82,11 @@ import {
GetAssistantCommandInput,
GetAssistantCommandOutput,
} from "./commands/GetAssistantCommand";
import {
GetContentAssociationCommand,
GetContentAssociationCommandInput,
GetContentAssociationCommandOutput,
} from "./commands/GetContentAssociationCommand";
import { GetContentCommand, GetContentCommandInput, GetContentCommandOutput } from "./commands/GetContentCommand";
import {
GetContentSummaryCommand,
Expand Down Expand Up @@ -109,6 +124,11 @@ import {
ListAssistantsCommandInput,
ListAssistantsCommandOutput,
} from "./commands/ListAssistantsCommand";
import {
ListContentAssociationsCommand,
ListContentAssociationsCommandInput,
ListContentAssociationsCommandOutput,
} from "./commands/ListContentAssociationsCommand";
import {
ListContentsCommand,
ListContentsCommandInput,
Expand Down Expand Up @@ -207,18 +227,21 @@ const commands = {
CreateAssistantCommand,
CreateAssistantAssociationCommand,
CreateContentCommand,
CreateContentAssociationCommand,
CreateKnowledgeBaseCommand,
CreateQuickResponseCommand,
CreateSessionCommand,
DeleteAssistantCommand,
DeleteAssistantAssociationCommand,
DeleteContentCommand,
DeleteContentAssociationCommand,
DeleteImportJobCommand,
DeleteKnowledgeBaseCommand,
DeleteQuickResponseCommand,
GetAssistantCommand,
GetAssistantAssociationCommand,
GetContentCommand,
GetContentAssociationCommand,
GetContentSummaryCommand,
GetImportJobCommand,
GetKnowledgeBaseCommand,
Expand All @@ -227,6 +250,7 @@ const commands = {
GetSessionCommand,
ListAssistantAssociationsCommand,
ListAssistantsCommand,
ListContentAssociationsCommand,
ListContentsCommand,
ListImportJobsCommand,
ListKnowledgeBasesCommand,
Expand Down Expand Up @@ -292,6 +316,23 @@ export interface QConnect {
cb: (err: any, data?: CreateContentCommandOutput) => void
): void;

/**
* @see {@link CreateContentAssociationCommand}
*/
createContentAssociation(
args: CreateContentAssociationCommandInput,
options?: __HttpHandlerOptions
): Promise<CreateContentAssociationCommandOutput>;
createContentAssociation(
args: CreateContentAssociationCommandInput,
cb: (err: any, data?: CreateContentAssociationCommandOutput) => void
): void;
createContentAssociation(
args: CreateContentAssociationCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: CreateContentAssociationCommandOutput) => void
): void;

/**
* @see {@link CreateKnowledgeBaseCommand}
*/
Expand Down Expand Up @@ -379,6 +420,23 @@ export interface QConnect {
cb: (err: any, data?: DeleteContentCommandOutput) => void
): void;

/**
* @see {@link DeleteContentAssociationCommand}
*/
deleteContentAssociation(
args: DeleteContentAssociationCommandInput,
options?: __HttpHandlerOptions
): Promise<DeleteContentAssociationCommandOutput>;
deleteContentAssociation(
args: DeleteContentAssociationCommandInput,
cb: (err: any, data?: DeleteContentAssociationCommandOutput) => void
): void;
deleteContentAssociation(
args: DeleteContentAssociationCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DeleteContentAssociationCommandOutput) => void
): void;

/**
* @see {@link DeleteImportJobCommand}
*/
Expand Down Expand Up @@ -466,6 +524,23 @@ export interface QConnect {
cb: (err: any, data?: GetContentCommandOutput) => void
): void;

/**
* @see {@link GetContentAssociationCommand}
*/
getContentAssociation(
args: GetContentAssociationCommandInput,
options?: __HttpHandlerOptions
): Promise<GetContentAssociationCommandOutput>;
getContentAssociation(
args: GetContentAssociationCommandInput,
cb: (err: any, data?: GetContentAssociationCommandOutput) => void
): void;
getContentAssociation(
args: GetContentAssociationCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: GetContentAssociationCommandOutput) => void
): void;

/**
* @see {@link GetContentSummaryCommand}
*/
Expand Down Expand Up @@ -588,6 +663,23 @@ export interface QConnect {
cb: (err: any, data?: ListAssistantsCommandOutput) => void
): void;

/**
* @see {@link ListContentAssociationsCommand}
*/
listContentAssociations(
args: ListContentAssociationsCommandInput,
options?: __HttpHandlerOptions
): Promise<ListContentAssociationsCommandOutput>;
listContentAssociations(
args: ListContentAssociationsCommandInput,
cb: (err: any, data?: ListContentAssociationsCommandOutput) => void
): void;
listContentAssociations(
args: ListContentAssociationsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListContentAssociationsCommandOutput) => void
): void;

/**
* @see {@link ListContentsCommand}
*/
Expand Down
24 changes: 24 additions & 0 deletions clients/client-qconnect/src/QConnectClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ import {
CreateAssistantAssociationCommandOutput,
} from "./commands/CreateAssistantAssociationCommand";
import { CreateAssistantCommandInput, CreateAssistantCommandOutput } from "./commands/CreateAssistantCommand";
import {
CreateContentAssociationCommandInput,
CreateContentAssociationCommandOutput,
} from "./commands/CreateContentAssociationCommand";
import { CreateContentCommandInput, CreateContentCommandOutput } from "./commands/CreateContentCommand";
import {
CreateKnowledgeBaseCommandInput,
Expand All @@ -73,6 +77,10 @@ import {
DeleteAssistantAssociationCommandOutput,
} from "./commands/DeleteAssistantAssociationCommand";
import { DeleteAssistantCommandInput, DeleteAssistantCommandOutput } from "./commands/DeleteAssistantCommand";
import {
DeleteContentAssociationCommandInput,
DeleteContentAssociationCommandOutput,
} from "./commands/DeleteContentAssociationCommand";
import { DeleteContentCommandInput, DeleteContentCommandOutput } from "./commands/DeleteContentCommand";
import { DeleteImportJobCommandInput, DeleteImportJobCommandOutput } from "./commands/DeleteImportJobCommand";
import {
Expand All @@ -88,6 +96,10 @@ import {
GetAssistantAssociationCommandOutput,
} from "./commands/GetAssistantAssociationCommand";
import { GetAssistantCommandInput, GetAssistantCommandOutput } from "./commands/GetAssistantCommand";
import {
GetContentAssociationCommandInput,
GetContentAssociationCommandOutput,
} from "./commands/GetContentAssociationCommand";
import { GetContentCommandInput, GetContentCommandOutput } from "./commands/GetContentCommand";
import { GetContentSummaryCommandInput, GetContentSummaryCommandOutput } from "./commands/GetContentSummaryCommand";
import { GetImportJobCommandInput, GetImportJobCommandOutput } from "./commands/GetImportJobCommand";
Expand All @@ -100,6 +112,10 @@ import {
ListAssistantAssociationsCommandOutput,
} from "./commands/ListAssistantAssociationsCommand";
import { ListAssistantsCommandInput, ListAssistantsCommandOutput } from "./commands/ListAssistantsCommand";
import {
ListContentAssociationsCommandInput,
ListContentAssociationsCommandOutput,
} from "./commands/ListContentAssociationsCommand";
import { ListContentsCommandInput, ListContentsCommandOutput } from "./commands/ListContentsCommand";
import { ListImportJobsCommandInput, ListImportJobsCommandOutput } from "./commands/ListImportJobsCommand";
import { ListKnowledgeBasesCommandInput, ListKnowledgeBasesCommandOutput } from "./commands/ListKnowledgeBasesCommand";
Expand Down Expand Up @@ -155,18 +171,21 @@ export { __Client };
export type ServiceInputTypes =
| CreateAssistantAssociationCommandInput
| CreateAssistantCommandInput
| CreateContentAssociationCommandInput
| CreateContentCommandInput
| CreateKnowledgeBaseCommandInput
| CreateQuickResponseCommandInput
| CreateSessionCommandInput
| DeleteAssistantAssociationCommandInput
| DeleteAssistantCommandInput
| DeleteContentAssociationCommandInput
| DeleteContentCommandInput
| DeleteImportJobCommandInput
| DeleteKnowledgeBaseCommandInput
| DeleteQuickResponseCommandInput
| GetAssistantAssociationCommandInput
| GetAssistantCommandInput
| GetContentAssociationCommandInput
| GetContentCommandInput
| GetContentSummaryCommandInput
| GetImportJobCommandInput
Expand All @@ -176,6 +195,7 @@ export type ServiceInputTypes =
| GetSessionCommandInput
| ListAssistantAssociationsCommandInput
| ListAssistantsCommandInput
| ListContentAssociationsCommandInput
| ListContentsCommandInput
| ListImportJobsCommandInput
| ListKnowledgeBasesCommandInput
Expand Down Expand Up @@ -203,18 +223,21 @@ export type ServiceInputTypes =
export type ServiceOutputTypes =
| CreateAssistantAssociationCommandOutput
| CreateAssistantCommandOutput
| CreateContentAssociationCommandOutput
| CreateContentCommandOutput
| CreateKnowledgeBaseCommandOutput
| CreateQuickResponseCommandOutput
| CreateSessionCommandOutput
| DeleteAssistantAssociationCommandOutput
| DeleteAssistantCommandOutput
| DeleteContentAssociationCommandOutput
| DeleteContentCommandOutput
| DeleteImportJobCommandOutput
| DeleteKnowledgeBaseCommandOutput
| DeleteQuickResponseCommandOutput
| GetAssistantAssociationCommandOutput
| GetAssistantCommandOutput
| GetContentAssociationCommandOutput
| GetContentCommandOutput
| GetContentSummaryCommandOutput
| GetImportJobCommandOutput
Expand All @@ -224,6 +247,7 @@ export type ServiceOutputTypes =
| GetSessionCommandOutput
| ListAssistantAssociationsCommandOutput
| ListAssistantsCommandOutput
| ListContentAssociationsCommandOutput
| ListContentsCommandOutput
| ListImportJobsCommandOutput
| ListKnowledgeBasesCommandOutput
Expand Down
Loading

0 comments on commit c6917b4

Please sign in to comment.