@aws-sdk/client-qconnect 3.600.0 → 3.606.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -0
- package/dist-cjs/index.js +242 -0
- package/dist-es/QConnect.js +8 -0
- package/dist-es/commands/CreateContentAssociationCommand.js +24 -0
- package/dist-es/commands/DeleteContentAssociationCommand.js +24 -0
- package/dist-es/commands/GetContentAssociationCommand.js +24 -0
- package/dist-es/commands/ListContentAssociationsCommand.js +24 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/models/models_0.js +24 -0
- package/dist-es/pagination/ListContentAssociationsPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +124 -1
- package/dist-types/QConnect.d.ts +28 -0
- package/dist-types/QConnectClient.d.ts +6 -2
- package/dist-types/commands/CreateContentAssociationCommand.d.ts +128 -0
- package/dist-types/commands/DeleteContentAssociationCommand.d.ts +72 -0
- package/dist-types/commands/GetContentAssociationCommand.d.ts +90 -0
- package/dist-types/commands/ListContentAssociationsCommand.d.ts +94 -0
- package/dist-types/commands/UpdateSessionCommand.d.ts +3 -3
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +322 -7
- package/dist-types/pagination/ListContentAssociationsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +36 -0
- package/dist-types/ts3.4/QConnect.d.ts +68 -0
- package/dist-types/ts3.4/QConnectClient.d.ts +24 -0
- package/dist-types/ts3.4/commands/CreateContentAssociationCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/DeleteContentAssociationCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/GetContentAssociationCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/ListContentAssociationsCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +93 -0
- package/dist-types/ts3.4/pagination/ListContentAssociationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +48 -0
- package/package.json +3 -3
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_ListContentAssociationsCommand, se_ListContentAssociationsCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class ListContentAssociationsCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("WisdomService", "ListContentAssociations", {})
|
|
19
|
+
.n("QConnectClient", "ListContentAssociationsCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_ListContentAssociationsCommand)
|
|
22
|
+
.de(de_ListContentAssociationsCommand)
|
|
23
|
+
.build() {
|
|
24
|
+
}
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
export * from "./CreateAssistantAssociationCommand";
|
|
2
2
|
export * from "./CreateAssistantCommand";
|
|
3
|
+
export * from "./CreateContentAssociationCommand";
|
|
3
4
|
export * from "./CreateContentCommand";
|
|
4
5
|
export * from "./CreateKnowledgeBaseCommand";
|
|
5
6
|
export * from "./CreateQuickResponseCommand";
|
|
6
7
|
export * from "./CreateSessionCommand";
|
|
7
8
|
export * from "./DeleteAssistantAssociationCommand";
|
|
8
9
|
export * from "./DeleteAssistantCommand";
|
|
10
|
+
export * from "./DeleteContentAssociationCommand";
|
|
9
11
|
export * from "./DeleteContentCommand";
|
|
10
12
|
export * from "./DeleteImportJobCommand";
|
|
11
13
|
export * from "./DeleteKnowledgeBaseCommand";
|
|
12
14
|
export * from "./DeleteQuickResponseCommand";
|
|
13
15
|
export * from "./GetAssistantAssociationCommand";
|
|
14
16
|
export * from "./GetAssistantCommand";
|
|
17
|
+
export * from "./GetContentAssociationCommand";
|
|
15
18
|
export * from "./GetContentCommand";
|
|
16
19
|
export * from "./GetContentSummaryCommand";
|
|
17
20
|
export * from "./GetImportJobCommand";
|
|
@@ -21,6 +24,7 @@ export * from "./GetRecommendationsCommand";
|
|
|
21
24
|
export * from "./GetSessionCommand";
|
|
22
25
|
export * from "./ListAssistantAssociationsCommand";
|
|
23
26
|
export * from "./ListAssistantsCommand";
|
|
27
|
+
export * from "./ListContentAssociationsCommand";
|
|
24
28
|
export * from "./ListContentsCommand";
|
|
25
29
|
export * from "./ListImportJobsCommand";
|
|
26
30
|
export * from "./ListKnowledgeBasesCommand";
|
|
@@ -218,6 +218,30 @@ export var Configuration;
|
|
|
218
218
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
219
219
|
};
|
|
220
220
|
})(Configuration || (Configuration = {}));
|
|
221
|
+
export var ContentAssociationContents;
|
|
222
|
+
(function (ContentAssociationContents) {
|
|
223
|
+
ContentAssociationContents.visit = (value, visitor) => {
|
|
224
|
+
if (value.amazonConnectGuideAssociation !== undefined)
|
|
225
|
+
return visitor.amazonConnectGuideAssociation(value.amazonConnectGuideAssociation);
|
|
226
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
227
|
+
};
|
|
228
|
+
})(ContentAssociationContents || (ContentAssociationContents = {}));
|
|
229
|
+
export const ContentAssociationType = {
|
|
230
|
+
AMAZON_CONNECT_GUIDE: "AMAZON_CONNECT_GUIDE",
|
|
231
|
+
};
|
|
232
|
+
export class ThrottlingException extends __BaseException {
|
|
233
|
+
constructor(opts) {
|
|
234
|
+
super({
|
|
235
|
+
name: "ThrottlingException",
|
|
236
|
+
$fault: "client",
|
|
237
|
+
...opts,
|
|
238
|
+
});
|
|
239
|
+
this.name = "ThrottlingException";
|
|
240
|
+
this.$fault = "client";
|
|
241
|
+
this.$retryable = {};
|
|
242
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
243
|
+
}
|
|
244
|
+
}
|
|
221
245
|
export const ContentStatus = {
|
|
222
246
|
ACTIVE: "ACTIVE",
|
|
223
247
|
CREATE_FAILED: "CREATE_FAILED",
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListContentAssociationsCommand, } from "../commands/ListContentAssociationsCommand";
|
|
3
|
+
import { QConnectClient } from "../QConnectClient";
|
|
4
|
+
export const paginateListContentAssociations = createPaginator(QConnectClient, ListContentAssociationsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./Interfaces";
|
|
2
2
|
export * from "./ListAssistantAssociationsPaginator";
|
|
3
3
|
export * from "./ListAssistantsPaginator";
|
|
4
|
+
export * from "./ListContentAssociationsPaginator";
|
|
4
5
|
export * from "./ListContentsPaginator";
|
|
5
6
|
export * from "./ListImportJobsPaginator";
|
|
6
7
|
export * from "./ListKnowledgeBasesPaginator";
|
|
@@ -2,7 +2,7 @@ import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody a
|
|
|
2
2
|
import { requestBuilder as rb } from "@smithy/core";
|
|
3
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
|
-
import { AccessDeniedException, ConflictException, PreconditionFailedException, RequestTimeoutException, ResourceNotFoundException, ServiceQuotaExceededException, TooManyTagsException, ValidationException, } from "../models/models_0";
|
|
5
|
+
import { AccessDeniedException, ConflictException, PreconditionFailedException, RequestTimeoutException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, TooManyTagsException, ValidationException, } from "../models/models_0";
|
|
6
6
|
import { QConnectServiceException as __BaseException } from "../models/QConnectServiceException";
|
|
7
7
|
export const se_CreateAssistantCommand = async (input, context) => {
|
|
8
8
|
const b = rb(input, context);
|
|
@@ -59,6 +59,24 @@ export const se_CreateContentCommand = async (input, context) => {
|
|
|
59
59
|
b.m("POST").h(headers).b(body);
|
|
60
60
|
return b.build();
|
|
61
61
|
};
|
|
62
|
+
export const se_CreateContentAssociationCommand = async (input, context) => {
|
|
63
|
+
const b = rb(input, context);
|
|
64
|
+
const headers = {
|
|
65
|
+
"content-type": "application/json",
|
|
66
|
+
};
|
|
67
|
+
b.bp("/knowledgeBases/{knowledgeBaseId}/contents/{contentId}/associations");
|
|
68
|
+
b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
69
|
+
b.p("contentId", () => input.contentId, "{contentId}", false);
|
|
70
|
+
let body;
|
|
71
|
+
body = JSON.stringify(take(input, {
|
|
72
|
+
association: (_) => _json(_),
|
|
73
|
+
associationType: [],
|
|
74
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
75
|
+
tags: (_) => _json(_),
|
|
76
|
+
}));
|
|
77
|
+
b.m("POST").h(headers).b(body);
|
|
78
|
+
return b.build();
|
|
79
|
+
};
|
|
62
80
|
export const se_CreateKnowledgeBaseCommand = async (input, context) => {
|
|
63
81
|
const b = rb(input, context);
|
|
64
82
|
const headers = {
|
|
@@ -150,6 +168,17 @@ export const se_DeleteContentCommand = async (input, context) => {
|
|
|
150
168
|
b.m("DELETE").h(headers).b(body);
|
|
151
169
|
return b.build();
|
|
152
170
|
};
|
|
171
|
+
export const se_DeleteContentAssociationCommand = async (input, context) => {
|
|
172
|
+
const b = rb(input, context);
|
|
173
|
+
const headers = {};
|
|
174
|
+
b.bp("/knowledgeBases/{knowledgeBaseId}/contents/{contentId}/associations/{contentAssociationId}");
|
|
175
|
+
b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
176
|
+
b.p("contentId", () => input.contentId, "{contentId}", false);
|
|
177
|
+
b.p("contentAssociationId", () => input.contentAssociationId, "{contentAssociationId}", false);
|
|
178
|
+
let body;
|
|
179
|
+
b.m("DELETE").h(headers).b(body);
|
|
180
|
+
return b.build();
|
|
181
|
+
};
|
|
153
182
|
export const se_DeleteImportJobCommand = async (input, context) => {
|
|
154
183
|
const b = rb(input, context);
|
|
155
184
|
const headers = {};
|
|
@@ -208,6 +237,17 @@ export const se_GetContentCommand = async (input, context) => {
|
|
|
208
237
|
b.m("GET").h(headers).b(body);
|
|
209
238
|
return b.build();
|
|
210
239
|
};
|
|
240
|
+
export const se_GetContentAssociationCommand = async (input, context) => {
|
|
241
|
+
const b = rb(input, context);
|
|
242
|
+
const headers = {};
|
|
243
|
+
b.bp("/knowledgeBases/{knowledgeBaseId}/contents/{contentId}/associations/{contentAssociationId}");
|
|
244
|
+
b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
245
|
+
b.p("contentId", () => input.contentId, "{contentId}", false);
|
|
246
|
+
b.p("contentAssociationId", () => input.contentAssociationId, "{contentAssociationId}", false);
|
|
247
|
+
let body;
|
|
248
|
+
b.m("GET").h(headers).b(body);
|
|
249
|
+
return b.build();
|
|
250
|
+
};
|
|
211
251
|
export const se_GetContentSummaryCommand = async (input, context) => {
|
|
212
252
|
const b = rb(input, context);
|
|
213
253
|
const headers = {};
|
|
@@ -296,6 +336,20 @@ export const se_ListAssistantsCommand = async (input, context) => {
|
|
|
296
336
|
b.m("GET").h(headers).q(query).b(body);
|
|
297
337
|
return b.build();
|
|
298
338
|
};
|
|
339
|
+
export const se_ListContentAssociationsCommand = async (input, context) => {
|
|
340
|
+
const b = rb(input, context);
|
|
341
|
+
const headers = {};
|
|
342
|
+
b.bp("/knowledgeBases/{knowledgeBaseId}/contents/{contentId}/associations");
|
|
343
|
+
b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
344
|
+
b.p("contentId", () => input.contentId, "{contentId}", false);
|
|
345
|
+
const query = map({
|
|
346
|
+
[_nT]: [, input[_nT]],
|
|
347
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
348
|
+
});
|
|
349
|
+
let body;
|
|
350
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
351
|
+
return b.build();
|
|
352
|
+
};
|
|
299
353
|
export const se_ListContentsCommand = async (input, context) => {
|
|
300
354
|
const b = rb(input, context);
|
|
301
355
|
const headers = {};
|
|
@@ -649,6 +703,20 @@ export const de_CreateContentCommand = async (output, context) => {
|
|
|
649
703
|
Object.assign(contents, doc);
|
|
650
704
|
return contents;
|
|
651
705
|
};
|
|
706
|
+
export const de_CreateContentAssociationCommand = async (output, context) => {
|
|
707
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
708
|
+
return de_CommandError(output, context);
|
|
709
|
+
}
|
|
710
|
+
const contents = map({
|
|
711
|
+
$metadata: deserializeMetadata(output),
|
|
712
|
+
});
|
|
713
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
714
|
+
const doc = take(data, {
|
|
715
|
+
contentAssociation: _json,
|
|
716
|
+
});
|
|
717
|
+
Object.assign(contents, doc);
|
|
718
|
+
return contents;
|
|
719
|
+
};
|
|
652
720
|
export const de_CreateKnowledgeBaseCommand = async (output, context) => {
|
|
653
721
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
654
722
|
return de_CommandError(output, context);
|
|
@@ -721,6 +789,16 @@ export const de_DeleteContentCommand = async (output, context) => {
|
|
|
721
789
|
await collectBody(output.body, context);
|
|
722
790
|
return contents;
|
|
723
791
|
};
|
|
792
|
+
export const de_DeleteContentAssociationCommand = async (output, context) => {
|
|
793
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
794
|
+
return de_CommandError(output, context);
|
|
795
|
+
}
|
|
796
|
+
const contents = map({
|
|
797
|
+
$metadata: deserializeMetadata(output),
|
|
798
|
+
});
|
|
799
|
+
await collectBody(output.body, context);
|
|
800
|
+
return contents;
|
|
801
|
+
};
|
|
724
802
|
export const de_DeleteImportJobCommand = async (output, context) => {
|
|
725
803
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
726
804
|
return de_CommandError(output, context);
|
|
@@ -793,6 +871,20 @@ export const de_GetContentCommand = async (output, context) => {
|
|
|
793
871
|
Object.assign(contents, doc);
|
|
794
872
|
return contents;
|
|
795
873
|
};
|
|
874
|
+
export const de_GetContentAssociationCommand = async (output, context) => {
|
|
875
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
876
|
+
return de_CommandError(output, context);
|
|
877
|
+
}
|
|
878
|
+
const contents = map({
|
|
879
|
+
$metadata: deserializeMetadata(output),
|
|
880
|
+
});
|
|
881
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
882
|
+
const doc = take(data, {
|
|
883
|
+
contentAssociation: _json,
|
|
884
|
+
});
|
|
885
|
+
Object.assign(contents, doc);
|
|
886
|
+
return contents;
|
|
887
|
+
};
|
|
796
888
|
export const de_GetContentSummaryCommand = async (output, context) => {
|
|
797
889
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
798
890
|
return de_CommandError(output, context);
|
|
@@ -908,6 +1000,21 @@ export const de_ListAssistantsCommand = async (output, context) => {
|
|
|
908
1000
|
Object.assign(contents, doc);
|
|
909
1001
|
return contents;
|
|
910
1002
|
};
|
|
1003
|
+
export const de_ListContentAssociationsCommand = async (output, context) => {
|
|
1004
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1005
|
+
return de_CommandError(output, context);
|
|
1006
|
+
}
|
|
1007
|
+
const contents = map({
|
|
1008
|
+
$metadata: deserializeMetadata(output),
|
|
1009
|
+
});
|
|
1010
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1011
|
+
const doc = take(data, {
|
|
1012
|
+
contentAssociationSummaries: _json,
|
|
1013
|
+
nextToken: __expectString,
|
|
1014
|
+
});
|
|
1015
|
+
Object.assign(contents, doc);
|
|
1016
|
+
return contents;
|
|
1017
|
+
};
|
|
911
1018
|
export const de_ListContentsCommand = async (output, context) => {
|
|
912
1019
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
913
1020
|
return de_CommandError(output, context);
|
|
@@ -1214,6 +1321,9 @@ const de_CommandError = async (output, context) => {
|
|
|
1214
1321
|
case "ResourceNotFoundException":
|
|
1215
1322
|
case "com.amazonaws.qconnect#ResourceNotFoundException":
|
|
1216
1323
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1324
|
+
case "ThrottlingException":
|
|
1325
|
+
case "com.amazonaws.qconnect#ThrottlingException":
|
|
1326
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1217
1327
|
case "RequestTimeoutException":
|
|
1218
1328
|
case "com.amazonaws.qconnect#RequestTimeoutException":
|
|
1219
1329
|
throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
|
|
@@ -1312,6 +1422,19 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1312
1422
|
});
|
|
1313
1423
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1314
1424
|
};
|
|
1425
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1426
|
+
const contents = map({});
|
|
1427
|
+
const data = parsedOutput.body;
|
|
1428
|
+
const doc = take(data, {
|
|
1429
|
+
message: __expectString,
|
|
1430
|
+
});
|
|
1431
|
+
Object.assign(contents, doc);
|
|
1432
|
+
const exception = new ThrottlingException({
|
|
1433
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1434
|
+
...contents,
|
|
1435
|
+
});
|
|
1436
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1437
|
+
};
|
|
1315
1438
|
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
1316
1439
|
const contents = map({});
|
|
1317
1440
|
const data = parsedOutput.body;
|
package/dist-types/QConnect.d.ts
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
2
2
|
import { CreateAssistantAssociationCommandInput, CreateAssistantAssociationCommandOutput } from "./commands/CreateAssistantAssociationCommand";
|
|
3
3
|
import { CreateAssistantCommandInput, CreateAssistantCommandOutput } from "./commands/CreateAssistantCommand";
|
|
4
|
+
import { CreateContentAssociationCommandInput, CreateContentAssociationCommandOutput } from "./commands/CreateContentAssociationCommand";
|
|
4
5
|
import { CreateContentCommandInput, CreateContentCommandOutput } from "./commands/CreateContentCommand";
|
|
5
6
|
import { CreateKnowledgeBaseCommandInput, CreateKnowledgeBaseCommandOutput } from "./commands/CreateKnowledgeBaseCommand";
|
|
6
7
|
import { CreateQuickResponseCommandInput, CreateQuickResponseCommandOutput } from "./commands/CreateQuickResponseCommand";
|
|
7
8
|
import { CreateSessionCommandInput, CreateSessionCommandOutput } from "./commands/CreateSessionCommand";
|
|
8
9
|
import { DeleteAssistantAssociationCommandInput, DeleteAssistantAssociationCommandOutput } from "./commands/DeleteAssistantAssociationCommand";
|
|
9
10
|
import { DeleteAssistantCommandInput, DeleteAssistantCommandOutput } from "./commands/DeleteAssistantCommand";
|
|
11
|
+
import { DeleteContentAssociationCommandInput, DeleteContentAssociationCommandOutput } from "./commands/DeleteContentAssociationCommand";
|
|
10
12
|
import { DeleteContentCommandInput, DeleteContentCommandOutput } from "./commands/DeleteContentCommand";
|
|
11
13
|
import { DeleteImportJobCommandInput, DeleteImportJobCommandOutput } from "./commands/DeleteImportJobCommand";
|
|
12
14
|
import { DeleteKnowledgeBaseCommandInput, DeleteKnowledgeBaseCommandOutput } from "./commands/DeleteKnowledgeBaseCommand";
|
|
13
15
|
import { DeleteQuickResponseCommandInput, DeleteQuickResponseCommandOutput } from "./commands/DeleteQuickResponseCommand";
|
|
14
16
|
import { GetAssistantAssociationCommandInput, GetAssistantAssociationCommandOutput } from "./commands/GetAssistantAssociationCommand";
|
|
15
17
|
import { GetAssistantCommandInput, GetAssistantCommandOutput } from "./commands/GetAssistantCommand";
|
|
18
|
+
import { GetContentAssociationCommandInput, GetContentAssociationCommandOutput } from "./commands/GetContentAssociationCommand";
|
|
16
19
|
import { GetContentCommandInput, GetContentCommandOutput } from "./commands/GetContentCommand";
|
|
17
20
|
import { GetContentSummaryCommandInput, GetContentSummaryCommandOutput } from "./commands/GetContentSummaryCommand";
|
|
18
21
|
import { GetImportJobCommandInput, GetImportJobCommandOutput } from "./commands/GetImportJobCommand";
|
|
@@ -22,6 +25,7 @@ import { GetRecommendationsCommandInput, GetRecommendationsCommandOutput } from
|
|
|
22
25
|
import { GetSessionCommandInput, GetSessionCommandOutput } from "./commands/GetSessionCommand";
|
|
23
26
|
import { ListAssistantAssociationsCommandInput, ListAssistantAssociationsCommandOutput } from "./commands/ListAssistantAssociationsCommand";
|
|
24
27
|
import { ListAssistantsCommandInput, ListAssistantsCommandOutput } from "./commands/ListAssistantsCommand";
|
|
28
|
+
import { ListContentAssociationsCommandInput, ListContentAssociationsCommandOutput } from "./commands/ListContentAssociationsCommand";
|
|
25
29
|
import { ListContentsCommandInput, ListContentsCommandOutput } from "./commands/ListContentsCommand";
|
|
26
30
|
import { ListImportJobsCommandInput, ListImportJobsCommandOutput } from "./commands/ListImportJobsCommand";
|
|
27
31
|
import { ListKnowledgeBasesCommandInput, ListKnowledgeBasesCommandOutput } from "./commands/ListKnowledgeBasesCommand";
|
|
@@ -62,6 +66,12 @@ export interface QConnect {
|
|
|
62
66
|
createContent(args: CreateContentCommandInput, options?: __HttpHandlerOptions): Promise<CreateContentCommandOutput>;
|
|
63
67
|
createContent(args: CreateContentCommandInput, cb: (err: any, data?: CreateContentCommandOutput) => void): void;
|
|
64
68
|
createContent(args: CreateContentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateContentCommandOutput) => void): void;
|
|
69
|
+
/**
|
|
70
|
+
* @see {@link CreateContentAssociationCommand}
|
|
71
|
+
*/
|
|
72
|
+
createContentAssociation(args: CreateContentAssociationCommandInput, options?: __HttpHandlerOptions): Promise<CreateContentAssociationCommandOutput>;
|
|
73
|
+
createContentAssociation(args: CreateContentAssociationCommandInput, cb: (err: any, data?: CreateContentAssociationCommandOutput) => void): void;
|
|
74
|
+
createContentAssociation(args: CreateContentAssociationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateContentAssociationCommandOutput) => void): void;
|
|
65
75
|
/**
|
|
66
76
|
* @see {@link CreateKnowledgeBaseCommand}
|
|
67
77
|
*/
|
|
@@ -98,6 +108,12 @@ export interface QConnect {
|
|
|
98
108
|
deleteContent(args: DeleteContentCommandInput, options?: __HttpHandlerOptions): Promise<DeleteContentCommandOutput>;
|
|
99
109
|
deleteContent(args: DeleteContentCommandInput, cb: (err: any, data?: DeleteContentCommandOutput) => void): void;
|
|
100
110
|
deleteContent(args: DeleteContentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteContentCommandOutput) => void): void;
|
|
111
|
+
/**
|
|
112
|
+
* @see {@link DeleteContentAssociationCommand}
|
|
113
|
+
*/
|
|
114
|
+
deleteContentAssociation(args: DeleteContentAssociationCommandInput, options?: __HttpHandlerOptions): Promise<DeleteContentAssociationCommandOutput>;
|
|
115
|
+
deleteContentAssociation(args: DeleteContentAssociationCommandInput, cb: (err: any, data?: DeleteContentAssociationCommandOutput) => void): void;
|
|
116
|
+
deleteContentAssociation(args: DeleteContentAssociationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteContentAssociationCommandOutput) => void): void;
|
|
101
117
|
/**
|
|
102
118
|
* @see {@link DeleteImportJobCommand}
|
|
103
119
|
*/
|
|
@@ -134,6 +150,12 @@ export interface QConnect {
|
|
|
134
150
|
getContent(args: GetContentCommandInput, options?: __HttpHandlerOptions): Promise<GetContentCommandOutput>;
|
|
135
151
|
getContent(args: GetContentCommandInput, cb: (err: any, data?: GetContentCommandOutput) => void): void;
|
|
136
152
|
getContent(args: GetContentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetContentCommandOutput) => void): void;
|
|
153
|
+
/**
|
|
154
|
+
* @see {@link GetContentAssociationCommand}
|
|
155
|
+
*/
|
|
156
|
+
getContentAssociation(args: GetContentAssociationCommandInput, options?: __HttpHandlerOptions): Promise<GetContentAssociationCommandOutput>;
|
|
157
|
+
getContentAssociation(args: GetContentAssociationCommandInput, cb: (err: any, data?: GetContentAssociationCommandOutput) => void): void;
|
|
158
|
+
getContentAssociation(args: GetContentAssociationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetContentAssociationCommandOutput) => void): void;
|
|
137
159
|
/**
|
|
138
160
|
* @see {@link GetContentSummaryCommand}
|
|
139
161
|
*/
|
|
@@ -183,6 +205,12 @@ export interface QConnect {
|
|
|
183
205
|
listAssistants(args: ListAssistantsCommandInput, options?: __HttpHandlerOptions): Promise<ListAssistantsCommandOutput>;
|
|
184
206
|
listAssistants(args: ListAssistantsCommandInput, cb: (err: any, data?: ListAssistantsCommandOutput) => void): void;
|
|
185
207
|
listAssistants(args: ListAssistantsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAssistantsCommandOutput) => void): void;
|
|
208
|
+
/**
|
|
209
|
+
* @see {@link ListContentAssociationsCommand}
|
|
210
|
+
*/
|
|
211
|
+
listContentAssociations(args: ListContentAssociationsCommandInput, options?: __HttpHandlerOptions): Promise<ListContentAssociationsCommandOutput>;
|
|
212
|
+
listContentAssociations(args: ListContentAssociationsCommandInput, cb: (err: any, data?: ListContentAssociationsCommandOutput) => void): void;
|
|
213
|
+
listContentAssociations(args: ListContentAssociationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListContentAssociationsCommandOutput) => void): void;
|
|
186
214
|
/**
|
|
187
215
|
* @see {@link ListContentsCommand}
|
|
188
216
|
*/
|
|
@@ -9,18 +9,21 @@ import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalc
|
|
|
9
9
|
import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
10
10
|
import { CreateAssistantAssociationCommandInput, CreateAssistantAssociationCommandOutput } from "./commands/CreateAssistantAssociationCommand";
|
|
11
11
|
import { CreateAssistantCommandInput, CreateAssistantCommandOutput } from "./commands/CreateAssistantCommand";
|
|
12
|
+
import { CreateContentAssociationCommandInput, CreateContentAssociationCommandOutput } from "./commands/CreateContentAssociationCommand";
|
|
12
13
|
import { CreateContentCommandInput, CreateContentCommandOutput } from "./commands/CreateContentCommand";
|
|
13
14
|
import { CreateKnowledgeBaseCommandInput, CreateKnowledgeBaseCommandOutput } from "./commands/CreateKnowledgeBaseCommand";
|
|
14
15
|
import { CreateQuickResponseCommandInput, CreateQuickResponseCommandOutput } from "./commands/CreateQuickResponseCommand";
|
|
15
16
|
import { CreateSessionCommandInput, CreateSessionCommandOutput } from "./commands/CreateSessionCommand";
|
|
16
17
|
import { DeleteAssistantAssociationCommandInput, DeleteAssistantAssociationCommandOutput } from "./commands/DeleteAssistantAssociationCommand";
|
|
17
18
|
import { DeleteAssistantCommandInput, DeleteAssistantCommandOutput } from "./commands/DeleteAssistantCommand";
|
|
19
|
+
import { DeleteContentAssociationCommandInput, DeleteContentAssociationCommandOutput } from "./commands/DeleteContentAssociationCommand";
|
|
18
20
|
import { DeleteContentCommandInput, DeleteContentCommandOutput } from "./commands/DeleteContentCommand";
|
|
19
21
|
import { DeleteImportJobCommandInput, DeleteImportJobCommandOutput } from "./commands/DeleteImportJobCommand";
|
|
20
22
|
import { DeleteKnowledgeBaseCommandInput, DeleteKnowledgeBaseCommandOutput } from "./commands/DeleteKnowledgeBaseCommand";
|
|
21
23
|
import { DeleteQuickResponseCommandInput, DeleteQuickResponseCommandOutput } from "./commands/DeleteQuickResponseCommand";
|
|
22
24
|
import { GetAssistantAssociationCommandInput, GetAssistantAssociationCommandOutput } from "./commands/GetAssistantAssociationCommand";
|
|
23
25
|
import { GetAssistantCommandInput, GetAssistantCommandOutput } from "./commands/GetAssistantCommand";
|
|
26
|
+
import { GetContentAssociationCommandInput, GetContentAssociationCommandOutput } from "./commands/GetContentAssociationCommand";
|
|
24
27
|
import { GetContentCommandInput, GetContentCommandOutput } from "./commands/GetContentCommand";
|
|
25
28
|
import { GetContentSummaryCommandInput, GetContentSummaryCommandOutput } from "./commands/GetContentSummaryCommand";
|
|
26
29
|
import { GetImportJobCommandInput, GetImportJobCommandOutput } from "./commands/GetImportJobCommand";
|
|
@@ -30,6 +33,7 @@ import { GetRecommendationsCommandInput, GetRecommendationsCommandOutput } from
|
|
|
30
33
|
import { GetSessionCommandInput, GetSessionCommandOutput } from "./commands/GetSessionCommand";
|
|
31
34
|
import { ListAssistantAssociationsCommandInput, ListAssistantAssociationsCommandOutput } from "./commands/ListAssistantAssociationsCommand";
|
|
32
35
|
import { ListAssistantsCommandInput, ListAssistantsCommandOutput } from "./commands/ListAssistantsCommand";
|
|
36
|
+
import { ListContentAssociationsCommandInput, ListContentAssociationsCommandOutput } from "./commands/ListContentAssociationsCommand";
|
|
33
37
|
import { ListContentsCommandInput, ListContentsCommandOutput } from "./commands/ListContentsCommand";
|
|
34
38
|
import { ListImportJobsCommandInput, ListImportJobsCommandOutput } from "./commands/ListImportJobsCommand";
|
|
35
39
|
import { ListKnowledgeBasesCommandInput, ListKnowledgeBasesCommandOutput } from "./commands/ListKnowledgeBasesCommand";
|
|
@@ -56,11 +60,11 @@ export { __Client };
|
|
|
56
60
|
/**
|
|
57
61
|
* @public
|
|
58
62
|
*/
|
|
59
|
-
export type ServiceInputTypes = CreateAssistantAssociationCommandInput | CreateAssistantCommandInput | CreateContentCommandInput | CreateKnowledgeBaseCommandInput | CreateQuickResponseCommandInput | CreateSessionCommandInput | DeleteAssistantAssociationCommandInput | DeleteAssistantCommandInput | DeleteContentCommandInput | DeleteImportJobCommandInput | DeleteKnowledgeBaseCommandInput | DeleteQuickResponseCommandInput | GetAssistantAssociationCommandInput | GetAssistantCommandInput | GetContentCommandInput | GetContentSummaryCommandInput | GetImportJobCommandInput | GetKnowledgeBaseCommandInput | GetQuickResponseCommandInput | GetRecommendationsCommandInput | GetSessionCommandInput | ListAssistantAssociationsCommandInput | ListAssistantsCommandInput | ListContentsCommandInput | ListImportJobsCommandInput | ListKnowledgeBasesCommandInput | ListQuickResponsesCommandInput | ListTagsForResourceCommandInput | NotifyRecommendationsReceivedCommandInput | PutFeedbackCommandInput | QueryAssistantCommandInput | RemoveKnowledgeBaseTemplateUriCommandInput | SearchContentCommandInput | SearchQuickResponsesCommandInput | SearchSessionsCommandInput | StartContentUploadCommandInput | StartImportJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateContentCommandInput | UpdateKnowledgeBaseTemplateUriCommandInput | UpdateQuickResponseCommandInput | UpdateSessionCommandInput;
|
|
63
|
+
export type ServiceInputTypes = CreateAssistantAssociationCommandInput | CreateAssistantCommandInput | CreateContentAssociationCommandInput | CreateContentCommandInput | CreateKnowledgeBaseCommandInput | CreateQuickResponseCommandInput | CreateSessionCommandInput | DeleteAssistantAssociationCommandInput | DeleteAssistantCommandInput | DeleteContentAssociationCommandInput | DeleteContentCommandInput | DeleteImportJobCommandInput | DeleteKnowledgeBaseCommandInput | DeleteQuickResponseCommandInput | GetAssistantAssociationCommandInput | GetAssistantCommandInput | GetContentAssociationCommandInput | GetContentCommandInput | GetContentSummaryCommandInput | GetImportJobCommandInput | GetKnowledgeBaseCommandInput | GetQuickResponseCommandInput | GetRecommendationsCommandInput | GetSessionCommandInput | ListAssistantAssociationsCommandInput | ListAssistantsCommandInput | ListContentAssociationsCommandInput | ListContentsCommandInput | ListImportJobsCommandInput | ListKnowledgeBasesCommandInput | ListQuickResponsesCommandInput | ListTagsForResourceCommandInput | NotifyRecommendationsReceivedCommandInput | PutFeedbackCommandInput | QueryAssistantCommandInput | RemoveKnowledgeBaseTemplateUriCommandInput | SearchContentCommandInput | SearchQuickResponsesCommandInput | SearchSessionsCommandInput | StartContentUploadCommandInput | StartImportJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateContentCommandInput | UpdateKnowledgeBaseTemplateUriCommandInput | UpdateQuickResponseCommandInput | UpdateSessionCommandInput;
|
|
60
64
|
/**
|
|
61
65
|
* @public
|
|
62
66
|
*/
|
|
63
|
-
export type ServiceOutputTypes = CreateAssistantAssociationCommandOutput | CreateAssistantCommandOutput | CreateContentCommandOutput | CreateKnowledgeBaseCommandOutput | CreateQuickResponseCommandOutput | CreateSessionCommandOutput | DeleteAssistantAssociationCommandOutput | DeleteAssistantCommandOutput | DeleteContentCommandOutput | DeleteImportJobCommandOutput | DeleteKnowledgeBaseCommandOutput | DeleteQuickResponseCommandOutput | GetAssistantAssociationCommandOutput | GetAssistantCommandOutput | GetContentCommandOutput | GetContentSummaryCommandOutput | GetImportJobCommandOutput | GetKnowledgeBaseCommandOutput | GetQuickResponseCommandOutput | GetRecommendationsCommandOutput | GetSessionCommandOutput | ListAssistantAssociationsCommandOutput | ListAssistantsCommandOutput | ListContentsCommandOutput | ListImportJobsCommandOutput | ListKnowledgeBasesCommandOutput | ListQuickResponsesCommandOutput | ListTagsForResourceCommandOutput | NotifyRecommendationsReceivedCommandOutput | PutFeedbackCommandOutput | QueryAssistantCommandOutput | RemoveKnowledgeBaseTemplateUriCommandOutput | SearchContentCommandOutput | SearchQuickResponsesCommandOutput | SearchSessionsCommandOutput | StartContentUploadCommandOutput | StartImportJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateContentCommandOutput | UpdateKnowledgeBaseTemplateUriCommandOutput | UpdateQuickResponseCommandOutput | UpdateSessionCommandOutput;
|
|
67
|
+
export type ServiceOutputTypes = CreateAssistantAssociationCommandOutput | CreateAssistantCommandOutput | CreateContentAssociationCommandOutput | CreateContentCommandOutput | CreateKnowledgeBaseCommandOutput | CreateQuickResponseCommandOutput | CreateSessionCommandOutput | DeleteAssistantAssociationCommandOutput | DeleteAssistantCommandOutput | DeleteContentAssociationCommandOutput | DeleteContentCommandOutput | DeleteImportJobCommandOutput | DeleteKnowledgeBaseCommandOutput | DeleteQuickResponseCommandOutput | GetAssistantAssociationCommandOutput | GetAssistantCommandOutput | GetContentAssociationCommandOutput | GetContentCommandOutput | GetContentSummaryCommandOutput | GetImportJobCommandOutput | GetKnowledgeBaseCommandOutput | GetQuickResponseCommandOutput | GetRecommendationsCommandOutput | GetSessionCommandOutput | ListAssistantAssociationsCommandOutput | ListAssistantsCommandOutput | ListContentAssociationsCommandOutput | ListContentsCommandOutput | ListImportJobsCommandOutput | ListKnowledgeBasesCommandOutput | ListQuickResponsesCommandOutput | ListTagsForResourceCommandOutput | NotifyRecommendationsReceivedCommandOutput | PutFeedbackCommandOutput | QueryAssistantCommandOutput | RemoveKnowledgeBaseTemplateUriCommandOutput | SearchContentCommandOutput | SearchQuickResponsesCommandOutput | SearchSessionsCommandOutput | StartContentUploadCommandOutput | StartImportJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateContentCommandOutput | UpdateKnowledgeBaseTemplateUriCommandOutput | UpdateQuickResponseCommandOutput | UpdateSessionCommandOutput;
|
|
64
68
|
/**
|
|
65
69
|
* @public
|
|
66
70
|
*/
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { CreateContentAssociationRequest, CreateContentAssociationResponse } from "../models/models_0";
|
|
4
|
+
import { QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QConnectClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CreateContentAssociationCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateContentAssociationCommandInput extends CreateContentAssociationRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateContentAssociationCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateContentAssociationCommandOutput extends CreateContentAssociationResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CreateContentAssociationCommand_base: {
|
|
25
|
+
new (input: CreateContentAssociationCommandInput): import("@smithy/smithy-client").CommandImpl<CreateContentAssociationCommandInput, CreateContentAssociationCommandOutput, QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: CreateContentAssociationCommandInput): import("@smithy/smithy-client").CommandImpl<CreateContentAssociationCommandInput, CreateContentAssociationCommandOutput, QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Creates an association between a content resource in a knowledge base and <a href="https://docs.aws.amazon.com/connect/latest/adminguide/step-by-step-guided-experiences.html">step-by-step
|
|
31
|
+
* guides</a>. Step-by-step guides offer instructions to agents for resolving common
|
|
32
|
+
* customer issues. You create a content association to integrate Amazon Q in Connect and step-by-step
|
|
33
|
+
* guides. </p>
|
|
34
|
+
* <p>After you integrate Amazon Q and step-by-step guides, when Amazon Q provides a
|
|
35
|
+
* recommendation to an agent based on the intent that it's detected, it also provides them with
|
|
36
|
+
* the option to start the step-by-step guide that you have associated with the content.</p>
|
|
37
|
+
* <p>Note the following limitations:</p>
|
|
38
|
+
* <ul>
|
|
39
|
+
* <li>
|
|
40
|
+
* <p>You can create only one content association for each
|
|
41
|
+
* content resource in a knowledge base.</p>
|
|
42
|
+
* </li>
|
|
43
|
+
* <li>
|
|
44
|
+
* <p>You can associate a step-by-step guide with multiple content resources.</p>
|
|
45
|
+
* </li>
|
|
46
|
+
* </ul>
|
|
47
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/integrate-q-with-guides.html">Integrate Amazon Q in Connect with
|
|
48
|
+
* step-by-step guides</a> in the <i>Amazon Connect Administrator
|
|
49
|
+
* Guide</i>. </p>
|
|
50
|
+
* @example
|
|
51
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
52
|
+
* ```javascript
|
|
53
|
+
* import { QConnectClient, CreateContentAssociationCommand } from "@aws-sdk/client-qconnect"; // ES Modules import
|
|
54
|
+
* // const { QConnectClient, CreateContentAssociationCommand } = require("@aws-sdk/client-qconnect"); // CommonJS import
|
|
55
|
+
* const client = new QConnectClient(config);
|
|
56
|
+
* const input = { // CreateContentAssociationRequest
|
|
57
|
+
* clientToken: "STRING_VALUE",
|
|
58
|
+
* knowledgeBaseId: "STRING_VALUE", // required
|
|
59
|
+
* contentId: "STRING_VALUE", // required
|
|
60
|
+
* associationType: "STRING_VALUE", // required
|
|
61
|
+
* association: { // ContentAssociationContents Union: only one key present
|
|
62
|
+
* amazonConnectGuideAssociation: { // AmazonConnectGuideAssociationData
|
|
63
|
+
* flowId: "STRING_VALUE",
|
|
64
|
+
* },
|
|
65
|
+
* },
|
|
66
|
+
* tags: { // Tags
|
|
67
|
+
* "<keys>": "STRING_VALUE",
|
|
68
|
+
* },
|
|
69
|
+
* };
|
|
70
|
+
* const command = new CreateContentAssociationCommand(input);
|
|
71
|
+
* const response = await client.send(command);
|
|
72
|
+
* // { // CreateContentAssociationResponse
|
|
73
|
+
* // contentAssociation: { // ContentAssociationData
|
|
74
|
+
* // knowledgeBaseId: "STRING_VALUE", // required
|
|
75
|
+
* // knowledgeBaseArn: "STRING_VALUE", // required
|
|
76
|
+
* // contentId: "STRING_VALUE", // required
|
|
77
|
+
* // contentArn: "STRING_VALUE", // required
|
|
78
|
+
* // contentAssociationId: "STRING_VALUE", // required
|
|
79
|
+
* // contentAssociationArn: "STRING_VALUE", // required
|
|
80
|
+
* // associationType: "STRING_VALUE", // required
|
|
81
|
+
* // associationData: { // ContentAssociationContents Union: only one key present
|
|
82
|
+
* // amazonConnectGuideAssociation: { // AmazonConnectGuideAssociationData
|
|
83
|
+
* // flowId: "STRING_VALUE",
|
|
84
|
+
* // },
|
|
85
|
+
* // },
|
|
86
|
+
* // tags: { // Tags
|
|
87
|
+
* // "<keys>": "STRING_VALUE",
|
|
88
|
+
* // },
|
|
89
|
+
* // },
|
|
90
|
+
* // };
|
|
91
|
+
*
|
|
92
|
+
* ```
|
|
93
|
+
*
|
|
94
|
+
* @param CreateContentAssociationCommandInput - {@link CreateContentAssociationCommandInput}
|
|
95
|
+
* @returns {@link CreateContentAssociationCommandOutput}
|
|
96
|
+
* @see {@link CreateContentAssociationCommandInput} for command's `input` shape.
|
|
97
|
+
* @see {@link CreateContentAssociationCommandOutput} for command's `response` shape.
|
|
98
|
+
* @see {@link QConnectClientResolvedConfig | config} for QConnectClient's `config` shape.
|
|
99
|
+
*
|
|
100
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
101
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
102
|
+
*
|
|
103
|
+
* @throws {@link ConflictException} (client fault)
|
|
104
|
+
* <p>The request could not be processed because of conflict in the current state of the
|
|
105
|
+
* resource. For example, if you're using a <code>Create</code> API (such as
|
|
106
|
+
* <code>CreateAssistant</code>) that accepts name, a conflicting resource (usually with the
|
|
107
|
+
* same name) is being created or mutated.</p>
|
|
108
|
+
*
|
|
109
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
110
|
+
* <p>The specified resource does not exist.</p>
|
|
111
|
+
*
|
|
112
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
113
|
+
* <p>You've exceeded your service quota. To perform the requested action, remove some of the
|
|
114
|
+
* relevant resources, or use service quotas to request a service quota increase.</p>
|
|
115
|
+
*
|
|
116
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
117
|
+
* <p>The throttling limit has been exceeded.</p>
|
|
118
|
+
*
|
|
119
|
+
* @throws {@link ValidationException} (client fault)
|
|
120
|
+
* <p>The input fails to satisfy the constraints specified by a service.</p>
|
|
121
|
+
*
|
|
122
|
+
* @throws {@link QConnectServiceException}
|
|
123
|
+
* <p>Base exception class for all service exceptions from QConnect service.</p>
|
|
124
|
+
*
|
|
125
|
+
* @public
|
|
126
|
+
*/
|
|
127
|
+
export declare class CreateContentAssociationCommand extends CreateContentAssociationCommand_base {
|
|
128
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { DeleteContentAssociationRequest, DeleteContentAssociationResponse } from "../models/models_0";
|
|
4
|
+
import { QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QConnectClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link DeleteContentAssociationCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DeleteContentAssociationCommandInput extends DeleteContentAssociationRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DeleteContentAssociationCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DeleteContentAssociationCommandOutput extends DeleteContentAssociationResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const DeleteContentAssociationCommand_base: {
|
|
25
|
+
new (input: DeleteContentAssociationCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteContentAssociationCommandInput, DeleteContentAssociationCommandOutput, QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: DeleteContentAssociationCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteContentAssociationCommandInput, DeleteContentAssociationCommandOutput, QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Deletes the content association. </p>
|
|
31
|
+
* <p>For more information about content associations--what they are and when they are used--see
|
|
32
|
+
* <a href="https://docs.aws.amazon.com/connect/latest/adminguide/integrate-q-with-guides.html">Integrate Amazon Q in Connect with step-by-step guides</a> in the <i>Amazon Connect
|
|
33
|
+
* Administrator Guide</i>. </p>
|
|
34
|
+
* @example
|
|
35
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
36
|
+
* ```javascript
|
|
37
|
+
* import { QConnectClient, DeleteContentAssociationCommand } from "@aws-sdk/client-qconnect"; // ES Modules import
|
|
38
|
+
* // const { QConnectClient, DeleteContentAssociationCommand } = require("@aws-sdk/client-qconnect"); // CommonJS import
|
|
39
|
+
* const client = new QConnectClient(config);
|
|
40
|
+
* const input = { // DeleteContentAssociationRequest
|
|
41
|
+
* knowledgeBaseId: "STRING_VALUE", // required
|
|
42
|
+
* contentId: "STRING_VALUE", // required
|
|
43
|
+
* contentAssociationId: "STRING_VALUE", // required
|
|
44
|
+
* };
|
|
45
|
+
* const command = new DeleteContentAssociationCommand(input);
|
|
46
|
+
* const response = await client.send(command);
|
|
47
|
+
* // {};
|
|
48
|
+
*
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* @param DeleteContentAssociationCommandInput - {@link DeleteContentAssociationCommandInput}
|
|
52
|
+
* @returns {@link DeleteContentAssociationCommandOutput}
|
|
53
|
+
* @see {@link DeleteContentAssociationCommandInput} for command's `input` shape.
|
|
54
|
+
* @see {@link DeleteContentAssociationCommandOutput} for command's `response` shape.
|
|
55
|
+
* @see {@link QConnectClientResolvedConfig | config} for QConnectClient's `config` shape.
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
58
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
61
|
+
* <p>The specified resource does not exist.</p>
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link ValidationException} (client fault)
|
|
64
|
+
* <p>The input fails to satisfy the constraints specified by a service.</p>
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link QConnectServiceException}
|
|
67
|
+
* <p>Base exception class for all service exceptions from QConnect service.</p>
|
|
68
|
+
*
|
|
69
|
+
* @public
|
|
70
|
+
*/
|
|
71
|
+
export declare class DeleteContentAssociationCommand extends DeleteContentAssociationCommand_base {
|
|
72
|
+
}
|