@aws-sdk/client-qbusiness 3.738.0 → 3.741.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 +220 -8
- package/dist-es/QBusiness.js +8 -0
- package/dist-es/commands/CancelSubscriptionCommand.js +22 -0
- package/dist-es/commands/CreateSubscriptionCommand.js +22 -0
- package/dist-es/commands/ListSubscriptionsCommand.js +22 -0
- package/dist-es/commands/UpdateSubscriptionCommand.js +22 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/models/models_0.js +10 -7
- package/dist-es/models/models_1.js +7 -0
- package/dist-es/pagination/ListSubscriptionsPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +118 -0
- package/dist-types/QBusiness.d.ts +28 -0
- package/dist-types/QBusinessClient.d.ts +6 -2
- package/dist-types/commands/AssociatePermissionCommand.d.ts +3 -3
- package/dist-types/commands/CancelSubscriptionCommand.d.ts +100 -0
- package/dist-types/commands/CreateDataAccessorCommand.d.ts +4 -4
- package/dist-types/commands/CreateSubscriptionCommand.d.ts +113 -0
- package/dist-types/commands/DeleteDataAccessorCommand.d.ts +1 -1
- package/dist-types/commands/DisassociatePermissionCommand.d.ts +1 -1
- package/dist-types/commands/GetDataAccessorCommand.d.ts +1 -1
- package/dist-types/commands/GetPolicyCommand.d.ts +1 -1
- package/dist-types/commands/ListDataAccessorsCommand.d.ts +1 -1
- package/dist-types/commands/ListSubscriptionsCommand.d.ts +113 -0
- package/dist-types/commands/PutGroupCommand.d.ts +5 -1
- package/dist-types/commands/SearchRelevantContentCommand.d.ts +3 -4
- package/dist-types/commands/StartDataSourceSyncJobCommand.d.ts +1 -2
- package/dist-types/commands/UpdateSubscriptionCommand.d.ts +106 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +234 -203
- package/dist-types/models/models_1.d.ts +241 -7
- package/dist-types/pagination/ListSubscriptionsPaginator.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/QBusiness.d.ts +68 -0
- package/dist-types/ts3.4/QBusinessClient.d.ts +24 -0
- package/dist-types/ts3.4/commands/CancelSubscriptionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateSubscriptionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListSubscriptionsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/PutGroupCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/SearchRelevantContentCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/StartDataSourceSyncJobCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/UpdateSubscriptionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +67 -48
- package/dist-types/ts3.4/models/models_1.d.ts +63 -0
- package/dist-types/ts3.4/pagination/ListSubscriptionsPaginator.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 +2 -2
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./AssociatePermissionCommand";
|
|
2
2
|
export * from "./BatchDeleteDocumentCommand";
|
|
3
3
|
export * from "./BatchPutDocumentCommand";
|
|
4
|
+
export * from "./CancelSubscriptionCommand";
|
|
4
5
|
export * from "./ChatCommand";
|
|
5
6
|
export * from "./ChatSyncCommand";
|
|
6
7
|
export * from "./CreateApplicationCommand";
|
|
@@ -9,6 +10,7 @@ export * from "./CreateDataSourceCommand";
|
|
|
9
10
|
export * from "./CreateIndexCommand";
|
|
10
11
|
export * from "./CreatePluginCommand";
|
|
11
12
|
export * from "./CreateRetrieverCommand";
|
|
13
|
+
export * from "./CreateSubscriptionCommand";
|
|
12
14
|
export * from "./CreateUserCommand";
|
|
13
15
|
export * from "./CreateWebExperienceCommand";
|
|
14
16
|
export * from "./DeleteApplicationCommand";
|
|
@@ -50,6 +52,7 @@ export * from "./ListPluginTypeActionsCommand";
|
|
|
50
52
|
export * from "./ListPluginTypeMetadataCommand";
|
|
51
53
|
export * from "./ListPluginsCommand";
|
|
52
54
|
export * from "./ListRetrieversCommand";
|
|
55
|
+
export * from "./ListSubscriptionsCommand";
|
|
53
56
|
export * from "./ListTagsForResourceCommand";
|
|
54
57
|
export * from "./ListWebExperiencesCommand";
|
|
55
58
|
export * from "./PutFeedbackCommand";
|
|
@@ -66,5 +69,6 @@ export * from "./UpdateDataSourceCommand";
|
|
|
66
69
|
export * from "./UpdateIndexCommand";
|
|
67
70
|
export * from "./UpdatePluginCommand";
|
|
68
71
|
export * from "./UpdateRetrieverCommand";
|
|
72
|
+
export * from "./UpdateSubscriptionCommand";
|
|
69
73
|
export * from "./UpdateUserCommand";
|
|
70
74
|
export * from "./UpdateWebExperienceCommand";
|
|
@@ -481,6 +481,16 @@ export var ContentSource;
|
|
|
481
481
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
482
482
|
};
|
|
483
483
|
})(ContentSource || (ContentSource = {}));
|
|
484
|
+
export var SubscriptionPrincipal;
|
|
485
|
+
(function (SubscriptionPrincipal) {
|
|
486
|
+
SubscriptionPrincipal.visit = (value, visitor) => {
|
|
487
|
+
if (value.user !== undefined)
|
|
488
|
+
return visitor.user(value.user);
|
|
489
|
+
if (value.group !== undefined)
|
|
490
|
+
return visitor.group(value.group);
|
|
491
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
492
|
+
};
|
|
493
|
+
})(SubscriptionPrincipal || (SubscriptionPrincipal = {}));
|
|
484
494
|
export const DataSourceSyncJobStatus = {
|
|
485
495
|
ABORTED: "ABORTED",
|
|
486
496
|
FAILED: "FAILED",
|
|
@@ -566,13 +576,6 @@ export const MessageUsefulness = {
|
|
|
566
576
|
NOT_USEFUL: "NOT_USEFUL",
|
|
567
577
|
USEFUL: "USEFUL",
|
|
568
578
|
};
|
|
569
|
-
export const ScoreConfidence = {
|
|
570
|
-
HIGH: "HIGH",
|
|
571
|
-
LOW: "LOW",
|
|
572
|
-
MEDIUM: "MEDIUM",
|
|
573
|
-
NOT_AVAILABLE: "NOT_AVAILABLE",
|
|
574
|
-
VERY_HIGH: "VERY_HIGH",
|
|
575
|
-
};
|
|
576
579
|
export const APISchemaFilterSensitiveLog = (obj) => {
|
|
577
580
|
if (obj.payload !== undefined)
|
|
578
581
|
return { payload: SENSITIVE_STRING };
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
|
+
export const ScoreConfidence = {
|
|
3
|
+
HIGH: "HIGH",
|
|
4
|
+
LOW: "LOW",
|
|
5
|
+
MEDIUM: "MEDIUM",
|
|
6
|
+
NOT_AVAILABLE: "NOT_AVAILABLE",
|
|
7
|
+
VERY_HIGH: "VERY_HIGH",
|
|
8
|
+
};
|
|
2
9
|
export var ChatInputStream;
|
|
3
10
|
(function (ChatInputStream) {
|
|
4
11
|
ChatInputStream.visit = (value, visitor) => {
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListSubscriptionsCommand, } from "../commands/ListSubscriptionsCommand";
|
|
3
|
+
import { QBusinessClient } from "../QBusinessClient";
|
|
4
|
+
export const paginateListSubscriptions = createPaginator(QBusinessClient, ListSubscriptionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -15,5 +15,6 @@ export * from "./ListPluginTypeActionsPaginator";
|
|
|
15
15
|
export * from "./ListPluginTypeMetadataPaginator";
|
|
16
16
|
export * from "./ListPluginsPaginator";
|
|
17
17
|
export * from "./ListRetrieversPaginator";
|
|
18
|
+
export * from "./ListSubscriptionsPaginator";
|
|
18
19
|
export * from "./ListWebExperiencesPaginator";
|
|
19
20
|
export * from "./SearchRelevantContentPaginator";
|
|
@@ -54,6 +54,16 @@ export const se_BatchPutDocumentCommand = async (input, context) => {
|
|
|
54
54
|
b.m("POST").h(headers).b(body);
|
|
55
55
|
return b.build();
|
|
56
56
|
};
|
|
57
|
+
export const se_CancelSubscriptionCommand = async (input, context) => {
|
|
58
|
+
const b = rb(input, context);
|
|
59
|
+
const headers = {};
|
|
60
|
+
b.bp("/applications/{applicationId}/subscriptions/{subscriptionId}");
|
|
61
|
+
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
62
|
+
b.p("subscriptionId", () => input.subscriptionId, "{subscriptionId}", false);
|
|
63
|
+
let body;
|
|
64
|
+
b.m("DELETE").h(headers).b(body);
|
|
65
|
+
return b.build();
|
|
66
|
+
};
|
|
57
67
|
export const se_ChatCommand = async (input, context) => {
|
|
58
68
|
const b = rb(input, context);
|
|
59
69
|
const headers = {
|
|
@@ -229,6 +239,22 @@ export const se_CreateRetrieverCommand = async (input, context) => {
|
|
|
229
239
|
b.m("POST").h(headers).b(body);
|
|
230
240
|
return b.build();
|
|
231
241
|
};
|
|
242
|
+
export const se_CreateSubscriptionCommand = async (input, context) => {
|
|
243
|
+
const b = rb(input, context);
|
|
244
|
+
const headers = {
|
|
245
|
+
"content-type": "application/json",
|
|
246
|
+
};
|
|
247
|
+
b.bp("/applications/{applicationId}/subscriptions");
|
|
248
|
+
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
249
|
+
let body;
|
|
250
|
+
body = JSON.stringify(take(input, {
|
|
251
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
252
|
+
principal: (_) => _json(_),
|
|
253
|
+
type: [],
|
|
254
|
+
}));
|
|
255
|
+
b.m("POST").h(headers).b(body);
|
|
256
|
+
return b.build();
|
|
257
|
+
};
|
|
232
258
|
export const se_CreateUserCommand = async (input, context) => {
|
|
233
259
|
const b = rb(input, context);
|
|
234
260
|
const headers = {
|
|
@@ -736,6 +762,19 @@ export const se_ListRetrieversCommand = async (input, context) => {
|
|
|
736
762
|
b.m("GET").h(headers).q(query).b(body);
|
|
737
763
|
return b.build();
|
|
738
764
|
};
|
|
765
|
+
export const se_ListSubscriptionsCommand = async (input, context) => {
|
|
766
|
+
const b = rb(input, context);
|
|
767
|
+
const headers = {};
|
|
768
|
+
b.bp("/applications/{applicationId}/subscriptions");
|
|
769
|
+
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
770
|
+
const query = map({
|
|
771
|
+
[_nT]: [, input[_nT]],
|
|
772
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
773
|
+
});
|
|
774
|
+
let body;
|
|
775
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
776
|
+
return b.build();
|
|
777
|
+
};
|
|
739
778
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
740
779
|
const b = rb(input, context);
|
|
741
780
|
const headers = {};
|
|
@@ -996,6 +1035,21 @@ export const se_UpdateRetrieverCommand = async (input, context) => {
|
|
|
996
1035
|
b.m("PUT").h(headers).b(body);
|
|
997
1036
|
return b.build();
|
|
998
1037
|
};
|
|
1038
|
+
export const se_UpdateSubscriptionCommand = async (input, context) => {
|
|
1039
|
+
const b = rb(input, context);
|
|
1040
|
+
const headers = {
|
|
1041
|
+
"content-type": "application/json",
|
|
1042
|
+
};
|
|
1043
|
+
b.bp("/applications/{applicationId}/subscriptions/{subscriptionId}");
|
|
1044
|
+
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
1045
|
+
b.p("subscriptionId", () => input.subscriptionId, "{subscriptionId}", false);
|
|
1046
|
+
let body;
|
|
1047
|
+
body = JSON.stringify(take(input, {
|
|
1048
|
+
type: [],
|
|
1049
|
+
}));
|
|
1050
|
+
b.m("PUT").h(headers).b(body);
|
|
1051
|
+
return b.build();
|
|
1052
|
+
};
|
|
999
1053
|
export const se_UpdateUserCommand = async (input, context) => {
|
|
1000
1054
|
const b = rb(input, context);
|
|
1001
1055
|
const headers = {
|
|
@@ -1078,6 +1132,22 @@ export const de_BatchPutDocumentCommand = async (output, context) => {
|
|
|
1078
1132
|
Object.assign(contents, doc);
|
|
1079
1133
|
return contents;
|
|
1080
1134
|
};
|
|
1135
|
+
export const de_CancelSubscriptionCommand = async (output, context) => {
|
|
1136
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1137
|
+
return de_CommandError(output, context);
|
|
1138
|
+
}
|
|
1139
|
+
const contents = map({
|
|
1140
|
+
$metadata: deserializeMetadata(output),
|
|
1141
|
+
});
|
|
1142
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1143
|
+
const doc = take(data, {
|
|
1144
|
+
currentSubscription: _json,
|
|
1145
|
+
nextSubscription: _json,
|
|
1146
|
+
subscriptionArn: __expectString,
|
|
1147
|
+
});
|
|
1148
|
+
Object.assign(contents, doc);
|
|
1149
|
+
return contents;
|
|
1150
|
+
};
|
|
1081
1151
|
export const de_ChatCommand = async (output, context) => {
|
|
1082
1152
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1083
1153
|
return de_CommandError(output, context);
|
|
@@ -1202,6 +1272,23 @@ export const de_CreateRetrieverCommand = async (output, context) => {
|
|
|
1202
1272
|
Object.assign(contents, doc);
|
|
1203
1273
|
return contents;
|
|
1204
1274
|
};
|
|
1275
|
+
export const de_CreateSubscriptionCommand = async (output, context) => {
|
|
1276
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1277
|
+
return de_CommandError(output, context);
|
|
1278
|
+
}
|
|
1279
|
+
const contents = map({
|
|
1280
|
+
$metadata: deserializeMetadata(output),
|
|
1281
|
+
});
|
|
1282
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1283
|
+
const doc = take(data, {
|
|
1284
|
+
currentSubscription: _json,
|
|
1285
|
+
nextSubscription: _json,
|
|
1286
|
+
subscriptionArn: __expectString,
|
|
1287
|
+
subscriptionId: __expectString,
|
|
1288
|
+
});
|
|
1289
|
+
Object.assign(contents, doc);
|
|
1290
|
+
return contents;
|
|
1291
|
+
};
|
|
1205
1292
|
export const de_CreateUserCommand = async (output, context) => {
|
|
1206
1293
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1207
1294
|
return de_CommandError(output, context);
|
|
@@ -1837,6 +1924,21 @@ export const de_ListRetrieversCommand = async (output, context) => {
|
|
|
1837
1924
|
Object.assign(contents, doc);
|
|
1838
1925
|
return contents;
|
|
1839
1926
|
};
|
|
1927
|
+
export const de_ListSubscriptionsCommand = async (output, context) => {
|
|
1928
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1929
|
+
return de_CommandError(output, context);
|
|
1930
|
+
}
|
|
1931
|
+
const contents = map({
|
|
1932
|
+
$metadata: deserializeMetadata(output),
|
|
1933
|
+
});
|
|
1934
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1935
|
+
const doc = take(data, {
|
|
1936
|
+
nextToken: __expectString,
|
|
1937
|
+
subscriptions: _json,
|
|
1938
|
+
});
|
|
1939
|
+
Object.assign(contents, doc);
|
|
1940
|
+
return contents;
|
|
1941
|
+
};
|
|
1840
1942
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1841
1943
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1842
1944
|
return de_CommandError(output, context);
|
|
@@ -2015,6 +2117,22 @@ export const de_UpdateRetrieverCommand = async (output, context) => {
|
|
|
2015
2117
|
await collectBody(output.body, context);
|
|
2016
2118
|
return contents;
|
|
2017
2119
|
};
|
|
2120
|
+
export const de_UpdateSubscriptionCommand = async (output, context) => {
|
|
2121
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2122
|
+
return de_CommandError(output, context);
|
|
2123
|
+
}
|
|
2124
|
+
const contents = map({
|
|
2125
|
+
$metadata: deserializeMetadata(output),
|
|
2126
|
+
});
|
|
2127
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2128
|
+
const doc = take(data, {
|
|
2129
|
+
currentSubscription: _json,
|
|
2130
|
+
nextSubscription: _json,
|
|
2131
|
+
subscriptionArn: __expectString,
|
|
2132
|
+
});
|
|
2133
|
+
Object.assign(contents, doc);
|
|
2134
|
+
return contents;
|
|
2135
|
+
};
|
|
2018
2136
|
export const de_UpdateUserCommand = async (output, context) => {
|
|
2019
2137
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2020
2138
|
return de_CommandError(output, context);
|
|
@@ -2,6 +2,7 @@ import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
|
2
2
|
import { AssociatePermissionCommandInput, AssociatePermissionCommandOutput } from "./commands/AssociatePermissionCommand";
|
|
3
3
|
import { BatchDeleteDocumentCommandInput, BatchDeleteDocumentCommandOutput } from "./commands/BatchDeleteDocumentCommand";
|
|
4
4
|
import { BatchPutDocumentCommandInput, BatchPutDocumentCommandOutput } from "./commands/BatchPutDocumentCommand";
|
|
5
|
+
import { CancelSubscriptionCommandInput, CancelSubscriptionCommandOutput } from "./commands/CancelSubscriptionCommand";
|
|
5
6
|
import { ChatCommandInput, ChatCommandOutput } from "./commands/ChatCommand";
|
|
6
7
|
import { ChatSyncCommandInput, ChatSyncCommandOutput } from "./commands/ChatSyncCommand";
|
|
7
8
|
import { CreateApplicationCommandInput, CreateApplicationCommandOutput } from "./commands/CreateApplicationCommand";
|
|
@@ -10,6 +11,7 @@ import { CreateDataSourceCommandInput, CreateDataSourceCommandOutput } from "./c
|
|
|
10
11
|
import { CreateIndexCommandInput, CreateIndexCommandOutput } from "./commands/CreateIndexCommand";
|
|
11
12
|
import { CreatePluginCommandInput, CreatePluginCommandOutput } from "./commands/CreatePluginCommand";
|
|
12
13
|
import { CreateRetrieverCommandInput, CreateRetrieverCommandOutput } from "./commands/CreateRetrieverCommand";
|
|
14
|
+
import { CreateSubscriptionCommandInput, CreateSubscriptionCommandOutput } from "./commands/CreateSubscriptionCommand";
|
|
13
15
|
import { CreateUserCommandInput, CreateUserCommandOutput } from "./commands/CreateUserCommand";
|
|
14
16
|
import { CreateWebExperienceCommandInput, CreateWebExperienceCommandOutput } from "./commands/CreateWebExperienceCommand";
|
|
15
17
|
import { DeleteApplicationCommandInput, DeleteApplicationCommandOutput } from "./commands/DeleteApplicationCommand";
|
|
@@ -51,6 +53,7 @@ import { ListPluginsCommandInput, ListPluginsCommandOutput } from "./commands/Li
|
|
|
51
53
|
import { ListPluginTypeActionsCommandInput, ListPluginTypeActionsCommandOutput } from "./commands/ListPluginTypeActionsCommand";
|
|
52
54
|
import { ListPluginTypeMetadataCommandInput, ListPluginTypeMetadataCommandOutput } from "./commands/ListPluginTypeMetadataCommand";
|
|
53
55
|
import { ListRetrieversCommandInput, ListRetrieversCommandOutput } from "./commands/ListRetrieversCommand";
|
|
56
|
+
import { ListSubscriptionsCommandInput, ListSubscriptionsCommandOutput } from "./commands/ListSubscriptionsCommand";
|
|
54
57
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
55
58
|
import { ListWebExperiencesCommandInput, ListWebExperiencesCommandOutput } from "./commands/ListWebExperiencesCommand";
|
|
56
59
|
import { PutFeedbackCommandInput, PutFeedbackCommandOutput } from "./commands/PutFeedbackCommand";
|
|
@@ -67,6 +70,7 @@ import { UpdateDataSourceCommandInput, UpdateDataSourceCommandOutput } from "./c
|
|
|
67
70
|
import { UpdateIndexCommandInput, UpdateIndexCommandOutput } from "./commands/UpdateIndexCommand";
|
|
68
71
|
import { UpdatePluginCommandInput, UpdatePluginCommandOutput } from "./commands/UpdatePluginCommand";
|
|
69
72
|
import { UpdateRetrieverCommandInput, UpdateRetrieverCommandOutput } from "./commands/UpdateRetrieverCommand";
|
|
73
|
+
import { UpdateSubscriptionCommandInput, UpdateSubscriptionCommandOutput } from "./commands/UpdateSubscriptionCommand";
|
|
70
74
|
import { UpdateUserCommandInput, UpdateUserCommandOutput } from "./commands/UpdateUserCommand";
|
|
71
75
|
import { UpdateWebExperienceCommandInput, UpdateWebExperienceCommandOutput } from "./commands/UpdateWebExperienceCommand";
|
|
72
76
|
import { QBusinessClient } from "./QBusinessClient";
|
|
@@ -89,6 +93,12 @@ export interface QBusiness {
|
|
|
89
93
|
batchPutDocument(args: BatchPutDocumentCommandInput, options?: __HttpHandlerOptions): Promise<BatchPutDocumentCommandOutput>;
|
|
90
94
|
batchPutDocument(args: BatchPutDocumentCommandInput, cb: (err: any, data?: BatchPutDocumentCommandOutput) => void): void;
|
|
91
95
|
batchPutDocument(args: BatchPutDocumentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchPutDocumentCommandOutput) => void): void;
|
|
96
|
+
/**
|
|
97
|
+
* @see {@link CancelSubscriptionCommand}
|
|
98
|
+
*/
|
|
99
|
+
cancelSubscription(args: CancelSubscriptionCommandInput, options?: __HttpHandlerOptions): Promise<CancelSubscriptionCommandOutput>;
|
|
100
|
+
cancelSubscription(args: CancelSubscriptionCommandInput, cb: (err: any, data?: CancelSubscriptionCommandOutput) => void): void;
|
|
101
|
+
cancelSubscription(args: CancelSubscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CancelSubscriptionCommandOutput) => void): void;
|
|
92
102
|
/**
|
|
93
103
|
* @see {@link ChatCommand}
|
|
94
104
|
*/
|
|
@@ -137,6 +147,12 @@ export interface QBusiness {
|
|
|
137
147
|
createRetriever(args: CreateRetrieverCommandInput, options?: __HttpHandlerOptions): Promise<CreateRetrieverCommandOutput>;
|
|
138
148
|
createRetriever(args: CreateRetrieverCommandInput, cb: (err: any, data?: CreateRetrieverCommandOutput) => void): void;
|
|
139
149
|
createRetriever(args: CreateRetrieverCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateRetrieverCommandOutput) => void): void;
|
|
150
|
+
/**
|
|
151
|
+
* @see {@link CreateSubscriptionCommand}
|
|
152
|
+
*/
|
|
153
|
+
createSubscription(args: CreateSubscriptionCommandInput, options?: __HttpHandlerOptions): Promise<CreateSubscriptionCommandOutput>;
|
|
154
|
+
createSubscription(args: CreateSubscriptionCommandInput, cb: (err: any, data?: CreateSubscriptionCommandOutput) => void): void;
|
|
155
|
+
createSubscription(args: CreateSubscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateSubscriptionCommandOutput) => void): void;
|
|
140
156
|
/**
|
|
141
157
|
* @see {@link CreateUserCommand}
|
|
142
158
|
*/
|
|
@@ -385,6 +401,12 @@ export interface QBusiness {
|
|
|
385
401
|
listRetrievers(args: ListRetrieversCommandInput, options?: __HttpHandlerOptions): Promise<ListRetrieversCommandOutput>;
|
|
386
402
|
listRetrievers(args: ListRetrieversCommandInput, cb: (err: any, data?: ListRetrieversCommandOutput) => void): void;
|
|
387
403
|
listRetrievers(args: ListRetrieversCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListRetrieversCommandOutput) => void): void;
|
|
404
|
+
/**
|
|
405
|
+
* @see {@link ListSubscriptionsCommand}
|
|
406
|
+
*/
|
|
407
|
+
listSubscriptions(args: ListSubscriptionsCommandInput, options?: __HttpHandlerOptions): Promise<ListSubscriptionsCommandOutput>;
|
|
408
|
+
listSubscriptions(args: ListSubscriptionsCommandInput, cb: (err: any, data?: ListSubscriptionsCommandOutput) => void): void;
|
|
409
|
+
listSubscriptions(args: ListSubscriptionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSubscriptionsCommandOutput) => void): void;
|
|
388
410
|
/**
|
|
389
411
|
* @see {@link ListTagsForResourceCommand}
|
|
390
412
|
*/
|
|
@@ -481,6 +503,12 @@ export interface QBusiness {
|
|
|
481
503
|
updateRetriever(args: UpdateRetrieverCommandInput, options?: __HttpHandlerOptions): Promise<UpdateRetrieverCommandOutput>;
|
|
482
504
|
updateRetriever(args: UpdateRetrieverCommandInput, cb: (err: any, data?: UpdateRetrieverCommandOutput) => void): void;
|
|
483
505
|
updateRetriever(args: UpdateRetrieverCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateRetrieverCommandOutput) => void): void;
|
|
506
|
+
/**
|
|
507
|
+
* @see {@link UpdateSubscriptionCommand}
|
|
508
|
+
*/
|
|
509
|
+
updateSubscription(args: UpdateSubscriptionCommandInput, options?: __HttpHandlerOptions): Promise<UpdateSubscriptionCommandOutput>;
|
|
510
|
+
updateSubscription(args: UpdateSubscriptionCommandInput, cb: (err: any, data?: UpdateSubscriptionCommandOutput) => void): void;
|
|
511
|
+
updateSubscription(args: UpdateSubscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateSubscriptionCommandOutput) => void): void;
|
|
484
512
|
/**
|
|
485
513
|
* @see {@link UpdateUserCommand}
|
|
486
514
|
*/
|
|
@@ -13,6 +13,7 @@ import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/
|
|
|
13
13
|
import { AssociatePermissionCommandInput, AssociatePermissionCommandOutput } from "./commands/AssociatePermissionCommand";
|
|
14
14
|
import { BatchDeleteDocumentCommandInput, BatchDeleteDocumentCommandOutput } from "./commands/BatchDeleteDocumentCommand";
|
|
15
15
|
import { BatchPutDocumentCommandInput, BatchPutDocumentCommandOutput } from "./commands/BatchPutDocumentCommand";
|
|
16
|
+
import { CancelSubscriptionCommandInput, CancelSubscriptionCommandOutput } from "./commands/CancelSubscriptionCommand";
|
|
16
17
|
import { ChatCommandInput, ChatCommandOutput } from "./commands/ChatCommand";
|
|
17
18
|
import { ChatSyncCommandInput, ChatSyncCommandOutput } from "./commands/ChatSyncCommand";
|
|
18
19
|
import { CreateApplicationCommandInput, CreateApplicationCommandOutput } from "./commands/CreateApplicationCommand";
|
|
@@ -21,6 +22,7 @@ import { CreateDataSourceCommandInput, CreateDataSourceCommandOutput } from "./c
|
|
|
21
22
|
import { CreateIndexCommandInput, CreateIndexCommandOutput } from "./commands/CreateIndexCommand";
|
|
22
23
|
import { CreatePluginCommandInput, CreatePluginCommandOutput } from "./commands/CreatePluginCommand";
|
|
23
24
|
import { CreateRetrieverCommandInput, CreateRetrieverCommandOutput } from "./commands/CreateRetrieverCommand";
|
|
25
|
+
import { CreateSubscriptionCommandInput, CreateSubscriptionCommandOutput } from "./commands/CreateSubscriptionCommand";
|
|
24
26
|
import { CreateUserCommandInput, CreateUserCommandOutput } from "./commands/CreateUserCommand";
|
|
25
27
|
import { CreateWebExperienceCommandInput, CreateWebExperienceCommandOutput } from "./commands/CreateWebExperienceCommand";
|
|
26
28
|
import { DeleteApplicationCommandInput, DeleteApplicationCommandOutput } from "./commands/DeleteApplicationCommand";
|
|
@@ -62,6 +64,7 @@ import { ListPluginsCommandInput, ListPluginsCommandOutput } from "./commands/Li
|
|
|
62
64
|
import { ListPluginTypeActionsCommandInput, ListPluginTypeActionsCommandOutput } from "./commands/ListPluginTypeActionsCommand";
|
|
63
65
|
import { ListPluginTypeMetadataCommandInput, ListPluginTypeMetadataCommandOutput } from "./commands/ListPluginTypeMetadataCommand";
|
|
64
66
|
import { ListRetrieversCommandInput, ListRetrieversCommandOutput } from "./commands/ListRetrieversCommand";
|
|
67
|
+
import { ListSubscriptionsCommandInput, ListSubscriptionsCommandOutput } from "./commands/ListSubscriptionsCommand";
|
|
65
68
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
66
69
|
import { ListWebExperiencesCommandInput, ListWebExperiencesCommandOutput } from "./commands/ListWebExperiencesCommand";
|
|
67
70
|
import { PutFeedbackCommandInput, PutFeedbackCommandOutput } from "./commands/PutFeedbackCommand";
|
|
@@ -78,6 +81,7 @@ import { UpdateDataSourceCommandInput, UpdateDataSourceCommandOutput } from "./c
|
|
|
78
81
|
import { UpdateIndexCommandInput, UpdateIndexCommandOutput } from "./commands/UpdateIndexCommand";
|
|
79
82
|
import { UpdatePluginCommandInput, UpdatePluginCommandOutput } from "./commands/UpdatePluginCommand";
|
|
80
83
|
import { UpdateRetrieverCommandInput, UpdateRetrieverCommandOutput } from "./commands/UpdateRetrieverCommand";
|
|
84
|
+
import { UpdateSubscriptionCommandInput, UpdateSubscriptionCommandOutput } from "./commands/UpdateSubscriptionCommand";
|
|
81
85
|
import { UpdateUserCommandInput, UpdateUserCommandOutput } from "./commands/UpdateUserCommand";
|
|
82
86
|
import { UpdateWebExperienceCommandInput, UpdateWebExperienceCommandOutput } from "./commands/UpdateWebExperienceCommand";
|
|
83
87
|
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
@@ -86,11 +90,11 @@ export { __Client };
|
|
|
86
90
|
/**
|
|
87
91
|
* @public
|
|
88
92
|
*/
|
|
89
|
-
export type ServiceInputTypes = AssociatePermissionCommandInput | BatchDeleteDocumentCommandInput | BatchPutDocumentCommandInput | ChatCommandInput | ChatSyncCommandInput | CreateApplicationCommandInput | CreateDataAccessorCommandInput | CreateDataSourceCommandInput | CreateIndexCommandInput | CreatePluginCommandInput | CreateRetrieverCommandInput | CreateUserCommandInput | CreateWebExperienceCommandInput | DeleteApplicationCommandInput | DeleteChatControlsConfigurationCommandInput | DeleteConversationCommandInput | DeleteDataAccessorCommandInput | DeleteDataSourceCommandInput | DeleteGroupCommandInput | DeleteIndexCommandInput | DeletePluginCommandInput | DeleteRetrieverCommandInput | DeleteUserCommandInput | DeleteWebExperienceCommandInput | DisassociatePermissionCommandInput | GetApplicationCommandInput | GetChatControlsConfigurationCommandInput | GetDataAccessorCommandInput | GetDataSourceCommandInput | GetGroupCommandInput | GetIndexCommandInput | GetMediaCommandInput | GetPluginCommandInput | GetPolicyCommandInput | GetRetrieverCommandInput | GetUserCommandInput | GetWebExperienceCommandInput | ListApplicationsCommandInput | ListAttachmentsCommandInput | ListConversationsCommandInput | ListDataAccessorsCommandInput | ListDataSourceSyncJobsCommandInput | ListDataSourcesCommandInput | ListDocumentsCommandInput | ListGroupsCommandInput | ListIndicesCommandInput | ListMessagesCommandInput | ListPluginActionsCommandInput | ListPluginTypeActionsCommandInput | ListPluginTypeMetadataCommandInput | ListPluginsCommandInput | ListRetrieversCommandInput | ListTagsForResourceCommandInput | ListWebExperiencesCommandInput | PutFeedbackCommandInput | PutGroupCommandInput | SearchRelevantContentCommandInput | StartDataSourceSyncJobCommandInput | StopDataSourceSyncJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateApplicationCommandInput | UpdateChatControlsConfigurationCommandInput | UpdateDataAccessorCommandInput | UpdateDataSourceCommandInput | UpdateIndexCommandInput | UpdatePluginCommandInput | UpdateRetrieverCommandInput | UpdateUserCommandInput | UpdateWebExperienceCommandInput;
|
|
93
|
+
export type ServiceInputTypes = AssociatePermissionCommandInput | BatchDeleteDocumentCommandInput | BatchPutDocumentCommandInput | CancelSubscriptionCommandInput | ChatCommandInput | ChatSyncCommandInput | CreateApplicationCommandInput | CreateDataAccessorCommandInput | CreateDataSourceCommandInput | CreateIndexCommandInput | CreatePluginCommandInput | CreateRetrieverCommandInput | CreateSubscriptionCommandInput | CreateUserCommandInput | CreateWebExperienceCommandInput | DeleteApplicationCommandInput | DeleteChatControlsConfigurationCommandInput | DeleteConversationCommandInput | DeleteDataAccessorCommandInput | DeleteDataSourceCommandInput | DeleteGroupCommandInput | DeleteIndexCommandInput | DeletePluginCommandInput | DeleteRetrieverCommandInput | DeleteUserCommandInput | DeleteWebExperienceCommandInput | DisassociatePermissionCommandInput | GetApplicationCommandInput | GetChatControlsConfigurationCommandInput | GetDataAccessorCommandInput | GetDataSourceCommandInput | GetGroupCommandInput | GetIndexCommandInput | GetMediaCommandInput | GetPluginCommandInput | GetPolicyCommandInput | GetRetrieverCommandInput | GetUserCommandInput | GetWebExperienceCommandInput | ListApplicationsCommandInput | ListAttachmentsCommandInput | ListConversationsCommandInput | ListDataAccessorsCommandInput | ListDataSourceSyncJobsCommandInput | ListDataSourcesCommandInput | ListDocumentsCommandInput | ListGroupsCommandInput | ListIndicesCommandInput | ListMessagesCommandInput | ListPluginActionsCommandInput | ListPluginTypeActionsCommandInput | ListPluginTypeMetadataCommandInput | ListPluginsCommandInput | ListRetrieversCommandInput | ListSubscriptionsCommandInput | ListTagsForResourceCommandInput | ListWebExperiencesCommandInput | PutFeedbackCommandInput | PutGroupCommandInput | SearchRelevantContentCommandInput | StartDataSourceSyncJobCommandInput | StopDataSourceSyncJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateApplicationCommandInput | UpdateChatControlsConfigurationCommandInput | UpdateDataAccessorCommandInput | UpdateDataSourceCommandInput | UpdateIndexCommandInput | UpdatePluginCommandInput | UpdateRetrieverCommandInput | UpdateSubscriptionCommandInput | UpdateUserCommandInput | UpdateWebExperienceCommandInput;
|
|
90
94
|
/**
|
|
91
95
|
* @public
|
|
92
96
|
*/
|
|
93
|
-
export type ServiceOutputTypes = AssociatePermissionCommandOutput | BatchDeleteDocumentCommandOutput | BatchPutDocumentCommandOutput | ChatCommandOutput | ChatSyncCommandOutput | CreateApplicationCommandOutput | CreateDataAccessorCommandOutput | CreateDataSourceCommandOutput | CreateIndexCommandOutput | CreatePluginCommandOutput | CreateRetrieverCommandOutput | CreateUserCommandOutput | CreateWebExperienceCommandOutput | DeleteApplicationCommandOutput | DeleteChatControlsConfigurationCommandOutput | DeleteConversationCommandOutput | DeleteDataAccessorCommandOutput | DeleteDataSourceCommandOutput | DeleteGroupCommandOutput | DeleteIndexCommandOutput | DeletePluginCommandOutput | DeleteRetrieverCommandOutput | DeleteUserCommandOutput | DeleteWebExperienceCommandOutput | DisassociatePermissionCommandOutput | GetApplicationCommandOutput | GetChatControlsConfigurationCommandOutput | GetDataAccessorCommandOutput | GetDataSourceCommandOutput | GetGroupCommandOutput | GetIndexCommandOutput | GetMediaCommandOutput | GetPluginCommandOutput | GetPolicyCommandOutput | GetRetrieverCommandOutput | GetUserCommandOutput | GetWebExperienceCommandOutput | ListApplicationsCommandOutput | ListAttachmentsCommandOutput | ListConversationsCommandOutput | ListDataAccessorsCommandOutput | ListDataSourceSyncJobsCommandOutput | ListDataSourcesCommandOutput | ListDocumentsCommandOutput | ListGroupsCommandOutput | ListIndicesCommandOutput | ListMessagesCommandOutput | ListPluginActionsCommandOutput | ListPluginTypeActionsCommandOutput | ListPluginTypeMetadataCommandOutput | ListPluginsCommandOutput | ListRetrieversCommandOutput | ListTagsForResourceCommandOutput | ListWebExperiencesCommandOutput | PutFeedbackCommandOutput | PutGroupCommandOutput | SearchRelevantContentCommandOutput | StartDataSourceSyncJobCommandOutput | StopDataSourceSyncJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateApplicationCommandOutput | UpdateChatControlsConfigurationCommandOutput | UpdateDataAccessorCommandOutput | UpdateDataSourceCommandOutput | UpdateIndexCommandOutput | UpdatePluginCommandOutput | UpdateRetrieverCommandOutput | UpdateUserCommandOutput | UpdateWebExperienceCommandOutput;
|
|
97
|
+
export type ServiceOutputTypes = AssociatePermissionCommandOutput | BatchDeleteDocumentCommandOutput | BatchPutDocumentCommandOutput | CancelSubscriptionCommandOutput | ChatCommandOutput | ChatSyncCommandOutput | CreateApplicationCommandOutput | CreateDataAccessorCommandOutput | CreateDataSourceCommandOutput | CreateIndexCommandOutput | CreatePluginCommandOutput | CreateRetrieverCommandOutput | CreateSubscriptionCommandOutput | CreateUserCommandOutput | CreateWebExperienceCommandOutput | DeleteApplicationCommandOutput | DeleteChatControlsConfigurationCommandOutput | DeleteConversationCommandOutput | DeleteDataAccessorCommandOutput | DeleteDataSourceCommandOutput | DeleteGroupCommandOutput | DeleteIndexCommandOutput | DeletePluginCommandOutput | DeleteRetrieverCommandOutput | DeleteUserCommandOutput | DeleteWebExperienceCommandOutput | DisassociatePermissionCommandOutput | GetApplicationCommandOutput | GetChatControlsConfigurationCommandOutput | GetDataAccessorCommandOutput | GetDataSourceCommandOutput | GetGroupCommandOutput | GetIndexCommandOutput | GetMediaCommandOutput | GetPluginCommandOutput | GetPolicyCommandOutput | GetRetrieverCommandOutput | GetUserCommandOutput | GetWebExperienceCommandOutput | ListApplicationsCommandOutput | ListAttachmentsCommandOutput | ListConversationsCommandOutput | ListDataAccessorsCommandOutput | ListDataSourceSyncJobsCommandOutput | ListDataSourcesCommandOutput | ListDocumentsCommandOutput | ListGroupsCommandOutput | ListIndicesCommandOutput | ListMessagesCommandOutput | ListPluginActionsCommandOutput | ListPluginTypeActionsCommandOutput | ListPluginTypeMetadataCommandOutput | ListPluginsCommandOutput | ListRetrieversCommandOutput | ListSubscriptionsCommandOutput | ListTagsForResourceCommandOutput | ListWebExperiencesCommandOutput | PutFeedbackCommandOutput | PutGroupCommandOutput | SearchRelevantContentCommandOutput | StartDataSourceSyncJobCommandOutput | StopDataSourceSyncJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateApplicationCommandOutput | UpdateChatControlsConfigurationCommandOutput | UpdateDataAccessorCommandOutput | UpdateDataSourceCommandOutput | UpdateIndexCommandOutput | UpdatePluginCommandOutput | UpdateRetrieverCommandOutput | UpdateSubscriptionCommandOutput | UpdateUserCommandOutput | UpdateWebExperienceCommandOutput;
|
|
94
98
|
/**
|
|
95
99
|
* @public
|
|
96
100
|
*/
|
|
@@ -27,9 +27,9 @@ declare const AssociatePermissionCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Adds or updates a permission policy for a Q Business application, allowing cross-account access for an ISV.
|
|
31
|
-
* This operation creates a new policy statement for the specified Q Business application.
|
|
32
|
-
* The policy statement defines the IAM actions that the ISV is allowed to perform on the Q Business application's resources.</p>
|
|
30
|
+
* <p>Adds or updates a permission policy for a Amazon Q Business application, allowing cross-account access for an ISV.
|
|
31
|
+
* This operation creates a new policy statement for the specified Amazon Q Business application.
|
|
32
|
+
* The policy statement defines the IAM actions that the ISV is allowed to perform on the Amazon Q Business application's resources.</p>
|
|
33
33
|
* @example
|
|
34
34
|
* Use a bare-bones client and the command you need to make an API call.
|
|
35
35
|
* ```javascript
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { CancelSubscriptionRequest, CancelSubscriptionResponse } from "../models/models_0";
|
|
4
|
+
import { QBusinessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QBusinessClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CancelSubscriptionCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CancelSubscriptionCommandInput extends CancelSubscriptionRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CancelSubscriptionCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CancelSubscriptionCommandOutput extends CancelSubscriptionResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CancelSubscriptionCommand_base: {
|
|
25
|
+
new (input: CancelSubscriptionCommandInput): import("@smithy/smithy-client").CommandImpl<CancelSubscriptionCommandInput, CancelSubscriptionCommandOutput, QBusinessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: CancelSubscriptionCommandInput): import("@smithy/smithy-client").CommandImpl<CancelSubscriptionCommandInput, CancelSubscriptionCommandOutput, QBusinessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Unsubscribes a user or a group from their pricing tier in an Amazon Q Business
|
|
31
|
+
* application. An unsubscribed user or group loses all Amazon Q Business feature access at the
|
|
32
|
+
* start of next month. </p>
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { QBusinessClient, CancelSubscriptionCommand } from "@aws-sdk/client-qbusiness"; // ES Modules import
|
|
37
|
+
* // const { QBusinessClient, CancelSubscriptionCommand } = require("@aws-sdk/client-qbusiness"); // CommonJS import
|
|
38
|
+
* const client = new QBusinessClient(config);
|
|
39
|
+
* const input = { // CancelSubscriptionRequest
|
|
40
|
+
* applicationId: "STRING_VALUE", // required
|
|
41
|
+
* subscriptionId: "STRING_VALUE", // required
|
|
42
|
+
* };
|
|
43
|
+
* const command = new CancelSubscriptionCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // { // CancelSubscriptionResponse
|
|
46
|
+
* // subscriptionArn: "STRING_VALUE",
|
|
47
|
+
* // currentSubscription: { // SubscriptionDetails
|
|
48
|
+
* // type: "Q_LITE" || "Q_BUSINESS",
|
|
49
|
+
* // },
|
|
50
|
+
* // nextSubscription: {
|
|
51
|
+
* // type: "Q_LITE" || "Q_BUSINESS",
|
|
52
|
+
* // },
|
|
53
|
+
* // };
|
|
54
|
+
*
|
|
55
|
+
* ```
|
|
56
|
+
*
|
|
57
|
+
* @param CancelSubscriptionCommandInput - {@link CancelSubscriptionCommandInput}
|
|
58
|
+
* @returns {@link CancelSubscriptionCommandOutput}
|
|
59
|
+
* @see {@link CancelSubscriptionCommandInput} for command's `input` shape.
|
|
60
|
+
* @see {@link CancelSubscriptionCommandOutput} for command's `response` shape.
|
|
61
|
+
* @see {@link QBusinessClientResolvedConfig | config} for QBusinessClient's `config` shape.
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
64
|
+
* <p> You don't have access to perform this action. Make sure you have the required
|
|
65
|
+
* permission policies and user accounts and try again.</p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link InternalServerException} (server fault)
|
|
68
|
+
* <p>An issue occurred with the internal server used for your Amazon Q Business service. Wait
|
|
69
|
+
* some minutes and try again, or contact <a href="http://aws.amazon.com/contact-us/">Support</a> for help.</p>
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
72
|
+
* <p>The application or plugin resource you want to use doesn’t exist. Make sure you have
|
|
73
|
+
* provided the correct resource and try again.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
76
|
+
* <p>The request was denied due to throttling. Reduce the number of requests and try
|
|
77
|
+
* again.</p>
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link ValidationException} (client fault)
|
|
80
|
+
* <p>The input doesn't meet the constraints set by the Amazon Q Business service. Provide the
|
|
81
|
+
* correct input and try again.</p>
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link QBusinessServiceException}
|
|
84
|
+
* <p>Base exception class for all service exceptions from QBusiness service.</p>
|
|
85
|
+
*
|
|
86
|
+
* @public
|
|
87
|
+
*/
|
|
88
|
+
export declare class CancelSubscriptionCommand extends CancelSubscriptionCommand_base {
|
|
89
|
+
/** @internal type navigation helper, not in runtime. */
|
|
90
|
+
protected static __types: {
|
|
91
|
+
api: {
|
|
92
|
+
input: CancelSubscriptionRequest;
|
|
93
|
+
output: CancelSubscriptionResponse;
|
|
94
|
+
};
|
|
95
|
+
sdk: {
|
|
96
|
+
input: CancelSubscriptionCommandInput;
|
|
97
|
+
output: CancelSubscriptionCommandOutput;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
}
|
|
@@ -28,12 +28,12 @@ declare const CreateDataAccessorCommand_base: {
|
|
|
28
28
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
29
29
|
};
|
|
30
30
|
/**
|
|
31
|
-
* <p>Creates a new data accessor for an ISV to access data from a Q Business application.
|
|
32
|
-
*
|
|
31
|
+
* <p>Creates a new data accessor for an ISV to access data from a Amazon Q Business application.
|
|
32
|
+
* The data accessor is an entity that represents the ISV's access to the Amazon Q Business application's data.
|
|
33
33
|
* It includes the IAM role ARN for the ISV, a friendly name, and a set of action configurations that define the
|
|
34
34
|
* specific actions the ISV is allowed to perform and any associated data filters. When the data accessor is created,
|
|
35
|
-
* an
|
|
36
|
-
* accessing the Q Business application.</p>
|
|
35
|
+
* an IAM Identity Center application is also created to manage the ISV's identity and authentication for
|
|
36
|
+
* accessing the Amazon Q Business application.</p>
|
|
37
37
|
* @example
|
|
38
38
|
* Use a bare-bones client and the command you need to make an API call.
|
|
39
39
|
* ```javascript
|