@aws-sdk/client-kendra 3.489.0 → 3.495.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/dist-cjs/Kendra.js +1 -143
- package/dist-cjs/KendraClient.js +1 -43
- package/dist-cjs/commands/AssociateEntitiesToExperienceCommand.js +1 -28
- package/dist-cjs/commands/AssociatePersonasToEntitiesCommand.js +1 -28
- package/dist-cjs/commands/BatchDeleteDocumentCommand.js +1 -28
- package/dist-cjs/commands/BatchDeleteFeaturedResultsSetCommand.js +1 -28
- package/dist-cjs/commands/BatchGetDocumentStatusCommand.js +1 -28
- package/dist-cjs/commands/BatchPutDocumentCommand.js +1 -28
- package/dist-cjs/commands/ClearQuerySuggestionsCommand.js +1 -28
- package/dist-cjs/commands/CreateAccessControlConfigurationCommand.js +1 -28
- package/dist-cjs/commands/CreateDataSourceCommand.js +1 -28
- package/dist-cjs/commands/CreateExperienceCommand.js +1 -28
- package/dist-cjs/commands/CreateFaqCommand.js +1 -28
- package/dist-cjs/commands/CreateFeaturedResultsSetCommand.js +1 -28
- package/dist-cjs/commands/CreateIndexCommand.js +1 -29
- package/dist-cjs/commands/CreateQuerySuggestionsBlockListCommand.js +1 -28
- package/dist-cjs/commands/CreateThesaurusCommand.js +1 -28
- package/dist-cjs/commands/DeleteAccessControlConfigurationCommand.js +1 -28
- package/dist-cjs/commands/DeleteDataSourceCommand.js +1 -28
- package/dist-cjs/commands/DeleteExperienceCommand.js +1 -28
- package/dist-cjs/commands/DeleteFaqCommand.js +1 -28
- package/dist-cjs/commands/DeleteIndexCommand.js +1 -28
- package/dist-cjs/commands/DeletePrincipalMappingCommand.js +1 -28
- package/dist-cjs/commands/DeleteQuerySuggestionsBlockListCommand.js +1 -28
- package/dist-cjs/commands/DeleteThesaurusCommand.js +1 -28
- package/dist-cjs/commands/DescribeAccessControlConfigurationCommand.js +1 -28
- package/dist-cjs/commands/DescribeDataSourceCommand.js +1 -28
- package/dist-cjs/commands/DescribeExperienceCommand.js +1 -28
- package/dist-cjs/commands/DescribeFaqCommand.js +1 -28
- package/dist-cjs/commands/DescribeFeaturedResultsSetCommand.js +1 -28
- package/dist-cjs/commands/DescribeIndexCommand.js +1 -29
- package/dist-cjs/commands/DescribePrincipalMappingCommand.js +1 -28
- package/dist-cjs/commands/DescribeQuerySuggestionsBlockListCommand.js +1 -28
- package/dist-cjs/commands/DescribeQuerySuggestionsConfigCommand.js +1 -28
- package/dist-cjs/commands/DescribeThesaurusCommand.js +1 -28
- package/dist-cjs/commands/DisassociateEntitiesFromExperienceCommand.js +1 -28
- package/dist-cjs/commands/DisassociatePersonasFromEntitiesCommand.js +1 -28
- package/dist-cjs/commands/GetQuerySuggestionsCommand.js +1 -28
- package/dist-cjs/commands/GetSnapshotsCommand.js +1 -28
- package/dist-cjs/commands/ListAccessControlConfigurationsCommand.js +1 -28
- package/dist-cjs/commands/ListDataSourceSyncJobsCommand.js +1 -28
- package/dist-cjs/commands/ListDataSourcesCommand.js +1 -28
- package/dist-cjs/commands/ListEntityPersonasCommand.js +1 -28
- package/dist-cjs/commands/ListExperienceEntitiesCommand.js +1 -29
- package/dist-cjs/commands/ListExperiencesCommand.js +1 -28
- package/dist-cjs/commands/ListFaqsCommand.js +1 -28
- package/dist-cjs/commands/ListFeaturedResultsSetsCommand.js +1 -28
- package/dist-cjs/commands/ListGroupsOlderThanOrderingIdCommand.js +1 -28
- package/dist-cjs/commands/ListIndicesCommand.js +1 -28
- package/dist-cjs/commands/ListQuerySuggestionsBlockListsCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/ListThesauriCommand.js +1 -28
- package/dist-cjs/commands/PutPrincipalMappingCommand.js +1 -28
- package/dist-cjs/commands/QueryCommand.js +1 -28
- package/dist-cjs/commands/RetrieveCommand.js +1 -28
- package/dist-cjs/commands/StartDataSourceSyncJobCommand.js +1 -28
- package/dist-cjs/commands/StopDataSourceSyncJobCommand.js +1 -28
- package/dist-cjs/commands/SubmitFeedbackCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateAccessControlConfigurationCommand.js +1 -28
- package/dist-cjs/commands/UpdateDataSourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateExperienceCommand.js +1 -28
- package/dist-cjs/commands/UpdateFeaturedResultsSetCommand.js +1 -28
- package/dist-cjs/commands/UpdateIndexCommand.js +1 -28
- package/dist-cjs/commands/UpdateQuerySuggestionsBlockListCommand.js +1 -28
- package/dist-cjs/commands/UpdateQuerySuggestionsConfigCommand.js +1 -28
- package/dist-cjs/commands/UpdateThesaurusCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -69
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +6893 -11
- package/dist-cjs/models/KendraServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -5
- package/dist-cjs/models/models_0.js +1 -568
- package/dist-cjs/models/models_1.js +1 -32
- package/dist-cjs/pagination/GetSnapshotsPaginator.js +1 -7
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListAccessControlConfigurationsPaginator.js +1 -7
- package/dist-cjs/pagination/ListDataSourceSyncJobsPaginator.js +1 -7
- package/dist-cjs/pagination/ListDataSourcesPaginator.js +1 -7
- package/dist-cjs/pagination/ListEntityPersonasPaginator.js +1 -7
- package/dist-cjs/pagination/ListExperienceEntitiesPaginator.js +1 -7
- package/dist-cjs/pagination/ListExperiencesPaginator.js +1 -7
- package/dist-cjs/pagination/ListFaqsPaginator.js +1 -7
- package/dist-cjs/pagination/ListGroupsOlderThanOrderingIdPaginator.js +1 -7
- package/dist-cjs/pagination/ListIndicesPaginator.js +1 -7
- package/dist-cjs/pagination/ListQuerySuggestionsBlockListsPaginator.js +1 -7
- package/dist-cjs/pagination/ListThesauriPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -16
- package/dist-cjs/protocols/Aws_json1_1.js +1 -4736
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,4736 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.se_ListThesauriCommand = exports.se_ListTagsForResourceCommand = exports.se_ListQuerySuggestionsBlockListsCommand = exports.se_ListIndicesCommand = exports.se_ListGroupsOlderThanOrderingIdCommand = exports.se_ListFeaturedResultsSetsCommand = exports.se_ListFaqsCommand = exports.se_ListExperiencesCommand = exports.se_ListExperienceEntitiesCommand = exports.se_ListEntityPersonasCommand = exports.se_ListDataSourceSyncJobsCommand = exports.se_ListDataSourcesCommand = exports.se_ListAccessControlConfigurationsCommand = exports.se_GetSnapshotsCommand = exports.se_GetQuerySuggestionsCommand = exports.se_DisassociatePersonasFromEntitiesCommand = exports.se_DisassociateEntitiesFromExperienceCommand = exports.se_DescribeThesaurusCommand = exports.se_DescribeQuerySuggestionsConfigCommand = exports.se_DescribeQuerySuggestionsBlockListCommand = exports.se_DescribePrincipalMappingCommand = exports.se_DescribeIndexCommand = exports.se_DescribeFeaturedResultsSetCommand = exports.se_DescribeFaqCommand = exports.se_DescribeExperienceCommand = exports.se_DescribeDataSourceCommand = exports.se_DescribeAccessControlConfigurationCommand = exports.se_DeleteThesaurusCommand = exports.se_DeleteQuerySuggestionsBlockListCommand = exports.se_DeletePrincipalMappingCommand = exports.se_DeleteIndexCommand = exports.se_DeleteFaqCommand = exports.se_DeleteExperienceCommand = exports.se_DeleteDataSourceCommand = exports.se_DeleteAccessControlConfigurationCommand = exports.se_CreateThesaurusCommand = exports.se_CreateQuerySuggestionsBlockListCommand = exports.se_CreateIndexCommand = exports.se_CreateFeaturedResultsSetCommand = exports.se_CreateFaqCommand = exports.se_CreateExperienceCommand = exports.se_CreateDataSourceCommand = exports.se_CreateAccessControlConfigurationCommand = exports.se_ClearQuerySuggestionsCommand = exports.se_BatchPutDocumentCommand = exports.se_BatchGetDocumentStatusCommand = exports.se_BatchDeleteFeaturedResultsSetCommand = exports.se_BatchDeleteDocumentCommand = exports.se_AssociatePersonasToEntitiesCommand = exports.se_AssociateEntitiesToExperienceCommand = void 0;
|
|
4
|
-
exports.de_DisassociateEntitiesFromExperienceCommand = exports.de_DescribeThesaurusCommand = exports.de_DescribeQuerySuggestionsConfigCommand = exports.de_DescribeQuerySuggestionsBlockListCommand = exports.de_DescribePrincipalMappingCommand = exports.de_DescribeIndexCommand = exports.de_DescribeFeaturedResultsSetCommand = exports.de_DescribeFaqCommand = exports.de_DescribeExperienceCommand = exports.de_DescribeDataSourceCommand = exports.de_DescribeAccessControlConfigurationCommand = exports.de_DeleteThesaurusCommand = exports.de_DeleteQuerySuggestionsBlockListCommand = exports.de_DeletePrincipalMappingCommand = exports.de_DeleteIndexCommand = exports.de_DeleteFaqCommand = exports.de_DeleteExperienceCommand = exports.de_DeleteDataSourceCommand = exports.de_DeleteAccessControlConfigurationCommand = exports.de_CreateThesaurusCommand = exports.de_CreateQuerySuggestionsBlockListCommand = exports.de_CreateIndexCommand = exports.de_CreateFeaturedResultsSetCommand = exports.de_CreateFaqCommand = exports.de_CreateExperienceCommand = exports.de_CreateDataSourceCommand = exports.de_CreateAccessControlConfigurationCommand = exports.de_ClearQuerySuggestionsCommand = exports.de_BatchPutDocumentCommand = exports.de_BatchGetDocumentStatusCommand = exports.de_BatchDeleteFeaturedResultsSetCommand = exports.de_BatchDeleteDocumentCommand = exports.de_AssociatePersonasToEntitiesCommand = exports.de_AssociateEntitiesToExperienceCommand = exports.se_UpdateThesaurusCommand = exports.se_UpdateQuerySuggestionsConfigCommand = exports.se_UpdateQuerySuggestionsBlockListCommand = exports.se_UpdateIndexCommand = exports.se_UpdateFeaturedResultsSetCommand = exports.se_UpdateExperienceCommand = exports.se_UpdateDataSourceCommand = exports.se_UpdateAccessControlConfigurationCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_SubmitFeedbackCommand = exports.se_StopDataSourceSyncJobCommand = exports.se_StartDataSourceSyncJobCommand = exports.se_RetrieveCommand = exports.se_QueryCommand = exports.se_PutPrincipalMappingCommand = void 0;
|
|
5
|
-
exports.de_UpdateThesaurusCommand = exports.de_UpdateQuerySuggestionsConfigCommand = exports.de_UpdateQuerySuggestionsBlockListCommand = exports.de_UpdateIndexCommand = exports.de_UpdateFeaturedResultsSetCommand = exports.de_UpdateExperienceCommand = exports.de_UpdateDataSourceCommand = exports.de_UpdateAccessControlConfigurationCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_SubmitFeedbackCommand = exports.de_StopDataSourceSyncJobCommand = exports.de_StartDataSourceSyncJobCommand = exports.de_RetrieveCommand = exports.de_QueryCommand = exports.de_PutPrincipalMappingCommand = exports.de_ListThesauriCommand = exports.de_ListTagsForResourceCommand = exports.de_ListQuerySuggestionsBlockListsCommand = exports.de_ListIndicesCommand = exports.de_ListGroupsOlderThanOrderingIdCommand = exports.de_ListFeaturedResultsSetsCommand = exports.de_ListFaqsCommand = exports.de_ListExperiencesCommand = exports.de_ListExperienceEntitiesCommand = exports.de_ListEntityPersonasCommand = exports.de_ListDataSourceSyncJobsCommand = exports.de_ListDataSourcesCommand = exports.de_ListAccessControlConfigurationsCommand = exports.de_GetSnapshotsCommand = exports.de_GetQuerySuggestionsCommand = exports.de_DisassociatePersonasFromEntitiesCommand = void 0;
|
|
6
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
7
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
|
-
const uuid_1 = require("uuid");
|
|
9
|
-
const KendraServiceException_1 = require("../models/KendraServiceException");
|
|
10
|
-
const models_0_1 = require("../models/models_0");
|
|
11
|
-
const models_1_1 = require("../models/models_1");
|
|
12
|
-
const se_AssociateEntitiesToExperienceCommand = async (input, context) => {
|
|
13
|
-
const headers = sharedHeaders("AssociateEntitiesToExperience");
|
|
14
|
-
let body;
|
|
15
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
16
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
|
-
};
|
|
18
|
-
exports.se_AssociateEntitiesToExperienceCommand = se_AssociateEntitiesToExperienceCommand;
|
|
19
|
-
const se_AssociatePersonasToEntitiesCommand = async (input, context) => {
|
|
20
|
-
const headers = sharedHeaders("AssociatePersonasToEntities");
|
|
21
|
-
let body;
|
|
22
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
23
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
24
|
-
};
|
|
25
|
-
exports.se_AssociatePersonasToEntitiesCommand = se_AssociatePersonasToEntitiesCommand;
|
|
26
|
-
const se_BatchDeleteDocumentCommand = async (input, context) => {
|
|
27
|
-
const headers = sharedHeaders("BatchDeleteDocument");
|
|
28
|
-
let body;
|
|
29
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
30
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
31
|
-
};
|
|
32
|
-
exports.se_BatchDeleteDocumentCommand = se_BatchDeleteDocumentCommand;
|
|
33
|
-
const se_BatchDeleteFeaturedResultsSetCommand = async (input, context) => {
|
|
34
|
-
const headers = sharedHeaders("BatchDeleteFeaturedResultsSet");
|
|
35
|
-
let body;
|
|
36
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
37
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
38
|
-
};
|
|
39
|
-
exports.se_BatchDeleteFeaturedResultsSetCommand = se_BatchDeleteFeaturedResultsSetCommand;
|
|
40
|
-
const se_BatchGetDocumentStatusCommand = async (input, context) => {
|
|
41
|
-
const headers = sharedHeaders("BatchGetDocumentStatus");
|
|
42
|
-
let body;
|
|
43
|
-
body = JSON.stringify(se_BatchGetDocumentStatusRequest(input, context));
|
|
44
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
45
|
-
};
|
|
46
|
-
exports.se_BatchGetDocumentStatusCommand = se_BatchGetDocumentStatusCommand;
|
|
47
|
-
const se_BatchPutDocumentCommand = async (input, context) => {
|
|
48
|
-
const headers = sharedHeaders("BatchPutDocument");
|
|
49
|
-
let body;
|
|
50
|
-
body = JSON.stringify(se_BatchPutDocumentRequest(input, context));
|
|
51
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
52
|
-
};
|
|
53
|
-
exports.se_BatchPutDocumentCommand = se_BatchPutDocumentCommand;
|
|
54
|
-
const se_ClearQuerySuggestionsCommand = async (input, context) => {
|
|
55
|
-
const headers = sharedHeaders("ClearQuerySuggestions");
|
|
56
|
-
let body;
|
|
57
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
58
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
|
-
};
|
|
60
|
-
exports.se_ClearQuerySuggestionsCommand = se_ClearQuerySuggestionsCommand;
|
|
61
|
-
const se_CreateAccessControlConfigurationCommand = async (input, context) => {
|
|
62
|
-
const headers = sharedHeaders("CreateAccessControlConfiguration");
|
|
63
|
-
let body;
|
|
64
|
-
body = JSON.stringify(se_CreateAccessControlConfigurationRequest(input, context));
|
|
65
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
66
|
-
};
|
|
67
|
-
exports.se_CreateAccessControlConfigurationCommand = se_CreateAccessControlConfigurationCommand;
|
|
68
|
-
const se_CreateDataSourceCommand = async (input, context) => {
|
|
69
|
-
const headers = sharedHeaders("CreateDataSource");
|
|
70
|
-
let body;
|
|
71
|
-
body = JSON.stringify(se_CreateDataSourceRequest(input, context));
|
|
72
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
73
|
-
};
|
|
74
|
-
exports.se_CreateDataSourceCommand = se_CreateDataSourceCommand;
|
|
75
|
-
const se_CreateExperienceCommand = async (input, context) => {
|
|
76
|
-
const headers = sharedHeaders("CreateExperience");
|
|
77
|
-
let body;
|
|
78
|
-
body = JSON.stringify(se_CreateExperienceRequest(input, context));
|
|
79
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
80
|
-
};
|
|
81
|
-
exports.se_CreateExperienceCommand = se_CreateExperienceCommand;
|
|
82
|
-
const se_CreateFaqCommand = async (input, context) => {
|
|
83
|
-
const headers = sharedHeaders("CreateFaq");
|
|
84
|
-
let body;
|
|
85
|
-
body = JSON.stringify(se_CreateFaqRequest(input, context));
|
|
86
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
87
|
-
};
|
|
88
|
-
exports.se_CreateFaqCommand = se_CreateFaqCommand;
|
|
89
|
-
const se_CreateFeaturedResultsSetCommand = async (input, context) => {
|
|
90
|
-
const headers = sharedHeaders("CreateFeaturedResultsSet");
|
|
91
|
-
let body;
|
|
92
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
93
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
|
-
};
|
|
95
|
-
exports.se_CreateFeaturedResultsSetCommand = se_CreateFeaturedResultsSetCommand;
|
|
96
|
-
const se_CreateIndexCommand = async (input, context) => {
|
|
97
|
-
const headers = sharedHeaders("CreateIndex");
|
|
98
|
-
let body;
|
|
99
|
-
body = JSON.stringify(se_CreateIndexRequest(input, context));
|
|
100
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
101
|
-
};
|
|
102
|
-
exports.se_CreateIndexCommand = se_CreateIndexCommand;
|
|
103
|
-
const se_CreateQuerySuggestionsBlockListCommand = async (input, context) => {
|
|
104
|
-
const headers = sharedHeaders("CreateQuerySuggestionsBlockList");
|
|
105
|
-
let body;
|
|
106
|
-
body = JSON.stringify(se_CreateQuerySuggestionsBlockListRequest(input, context));
|
|
107
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
108
|
-
};
|
|
109
|
-
exports.se_CreateQuerySuggestionsBlockListCommand = se_CreateQuerySuggestionsBlockListCommand;
|
|
110
|
-
const se_CreateThesaurusCommand = async (input, context) => {
|
|
111
|
-
const headers = sharedHeaders("CreateThesaurus");
|
|
112
|
-
let body;
|
|
113
|
-
body = JSON.stringify(se_CreateThesaurusRequest(input, context));
|
|
114
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
115
|
-
};
|
|
116
|
-
exports.se_CreateThesaurusCommand = se_CreateThesaurusCommand;
|
|
117
|
-
const se_DeleteAccessControlConfigurationCommand = async (input, context) => {
|
|
118
|
-
const headers = sharedHeaders("DeleteAccessControlConfiguration");
|
|
119
|
-
let body;
|
|
120
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
121
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
122
|
-
};
|
|
123
|
-
exports.se_DeleteAccessControlConfigurationCommand = se_DeleteAccessControlConfigurationCommand;
|
|
124
|
-
const se_DeleteDataSourceCommand = async (input, context) => {
|
|
125
|
-
const headers = sharedHeaders("DeleteDataSource");
|
|
126
|
-
let body;
|
|
127
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
128
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
129
|
-
};
|
|
130
|
-
exports.se_DeleteDataSourceCommand = se_DeleteDataSourceCommand;
|
|
131
|
-
const se_DeleteExperienceCommand = async (input, context) => {
|
|
132
|
-
const headers = sharedHeaders("DeleteExperience");
|
|
133
|
-
let body;
|
|
134
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
135
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
136
|
-
};
|
|
137
|
-
exports.se_DeleteExperienceCommand = se_DeleteExperienceCommand;
|
|
138
|
-
const se_DeleteFaqCommand = async (input, context) => {
|
|
139
|
-
const headers = sharedHeaders("DeleteFaq");
|
|
140
|
-
let body;
|
|
141
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
142
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
143
|
-
};
|
|
144
|
-
exports.se_DeleteFaqCommand = se_DeleteFaqCommand;
|
|
145
|
-
const se_DeleteIndexCommand = async (input, context) => {
|
|
146
|
-
const headers = sharedHeaders("DeleteIndex");
|
|
147
|
-
let body;
|
|
148
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
149
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
150
|
-
};
|
|
151
|
-
exports.se_DeleteIndexCommand = se_DeleteIndexCommand;
|
|
152
|
-
const se_DeletePrincipalMappingCommand = async (input, context) => {
|
|
153
|
-
const headers = sharedHeaders("DeletePrincipalMapping");
|
|
154
|
-
let body;
|
|
155
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
156
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
|
-
};
|
|
158
|
-
exports.se_DeletePrincipalMappingCommand = se_DeletePrincipalMappingCommand;
|
|
159
|
-
const se_DeleteQuerySuggestionsBlockListCommand = async (input, context) => {
|
|
160
|
-
const headers = sharedHeaders("DeleteQuerySuggestionsBlockList");
|
|
161
|
-
let body;
|
|
162
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
163
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
164
|
-
};
|
|
165
|
-
exports.se_DeleteQuerySuggestionsBlockListCommand = se_DeleteQuerySuggestionsBlockListCommand;
|
|
166
|
-
const se_DeleteThesaurusCommand = async (input, context) => {
|
|
167
|
-
const headers = sharedHeaders("DeleteThesaurus");
|
|
168
|
-
let body;
|
|
169
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
170
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
171
|
-
};
|
|
172
|
-
exports.se_DeleteThesaurusCommand = se_DeleteThesaurusCommand;
|
|
173
|
-
const se_DescribeAccessControlConfigurationCommand = async (input, context) => {
|
|
174
|
-
const headers = sharedHeaders("DescribeAccessControlConfiguration");
|
|
175
|
-
let body;
|
|
176
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
177
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
178
|
-
};
|
|
179
|
-
exports.se_DescribeAccessControlConfigurationCommand = se_DescribeAccessControlConfigurationCommand;
|
|
180
|
-
const se_DescribeDataSourceCommand = async (input, context) => {
|
|
181
|
-
const headers = sharedHeaders("DescribeDataSource");
|
|
182
|
-
let body;
|
|
183
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
184
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
185
|
-
};
|
|
186
|
-
exports.se_DescribeDataSourceCommand = se_DescribeDataSourceCommand;
|
|
187
|
-
const se_DescribeExperienceCommand = async (input, context) => {
|
|
188
|
-
const headers = sharedHeaders("DescribeExperience");
|
|
189
|
-
let body;
|
|
190
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
191
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
192
|
-
};
|
|
193
|
-
exports.se_DescribeExperienceCommand = se_DescribeExperienceCommand;
|
|
194
|
-
const se_DescribeFaqCommand = async (input, context) => {
|
|
195
|
-
const headers = sharedHeaders("DescribeFaq");
|
|
196
|
-
let body;
|
|
197
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
198
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
199
|
-
};
|
|
200
|
-
exports.se_DescribeFaqCommand = se_DescribeFaqCommand;
|
|
201
|
-
const se_DescribeFeaturedResultsSetCommand = async (input, context) => {
|
|
202
|
-
const headers = sharedHeaders("DescribeFeaturedResultsSet");
|
|
203
|
-
let body;
|
|
204
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
205
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
206
|
-
};
|
|
207
|
-
exports.se_DescribeFeaturedResultsSetCommand = se_DescribeFeaturedResultsSetCommand;
|
|
208
|
-
const se_DescribeIndexCommand = async (input, context) => {
|
|
209
|
-
const headers = sharedHeaders("DescribeIndex");
|
|
210
|
-
let body;
|
|
211
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
212
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
213
|
-
};
|
|
214
|
-
exports.se_DescribeIndexCommand = se_DescribeIndexCommand;
|
|
215
|
-
const se_DescribePrincipalMappingCommand = async (input, context) => {
|
|
216
|
-
const headers = sharedHeaders("DescribePrincipalMapping");
|
|
217
|
-
let body;
|
|
218
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
219
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
220
|
-
};
|
|
221
|
-
exports.se_DescribePrincipalMappingCommand = se_DescribePrincipalMappingCommand;
|
|
222
|
-
const se_DescribeQuerySuggestionsBlockListCommand = async (input, context) => {
|
|
223
|
-
const headers = sharedHeaders("DescribeQuerySuggestionsBlockList");
|
|
224
|
-
let body;
|
|
225
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
226
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
227
|
-
};
|
|
228
|
-
exports.se_DescribeQuerySuggestionsBlockListCommand = se_DescribeQuerySuggestionsBlockListCommand;
|
|
229
|
-
const se_DescribeQuerySuggestionsConfigCommand = async (input, context) => {
|
|
230
|
-
const headers = sharedHeaders("DescribeQuerySuggestionsConfig");
|
|
231
|
-
let body;
|
|
232
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
233
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
234
|
-
};
|
|
235
|
-
exports.se_DescribeQuerySuggestionsConfigCommand = se_DescribeQuerySuggestionsConfigCommand;
|
|
236
|
-
const se_DescribeThesaurusCommand = async (input, context) => {
|
|
237
|
-
const headers = sharedHeaders("DescribeThesaurus");
|
|
238
|
-
let body;
|
|
239
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
240
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
241
|
-
};
|
|
242
|
-
exports.se_DescribeThesaurusCommand = se_DescribeThesaurusCommand;
|
|
243
|
-
const se_DisassociateEntitiesFromExperienceCommand = async (input, context) => {
|
|
244
|
-
const headers = sharedHeaders("DisassociateEntitiesFromExperience");
|
|
245
|
-
let body;
|
|
246
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
247
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
248
|
-
};
|
|
249
|
-
exports.se_DisassociateEntitiesFromExperienceCommand = se_DisassociateEntitiesFromExperienceCommand;
|
|
250
|
-
const se_DisassociatePersonasFromEntitiesCommand = async (input, context) => {
|
|
251
|
-
const headers = sharedHeaders("DisassociatePersonasFromEntities");
|
|
252
|
-
let body;
|
|
253
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
254
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
255
|
-
};
|
|
256
|
-
exports.se_DisassociatePersonasFromEntitiesCommand = se_DisassociatePersonasFromEntitiesCommand;
|
|
257
|
-
const se_GetQuerySuggestionsCommand = async (input, context) => {
|
|
258
|
-
const headers = sharedHeaders("GetQuerySuggestions");
|
|
259
|
-
let body;
|
|
260
|
-
body = JSON.stringify(se_GetQuerySuggestionsRequest(input, context));
|
|
261
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
262
|
-
};
|
|
263
|
-
exports.se_GetQuerySuggestionsCommand = se_GetQuerySuggestionsCommand;
|
|
264
|
-
const se_GetSnapshotsCommand = async (input, context) => {
|
|
265
|
-
const headers = sharedHeaders("GetSnapshots");
|
|
266
|
-
let body;
|
|
267
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
268
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
269
|
-
};
|
|
270
|
-
exports.se_GetSnapshotsCommand = se_GetSnapshotsCommand;
|
|
271
|
-
const se_ListAccessControlConfigurationsCommand = async (input, context) => {
|
|
272
|
-
const headers = sharedHeaders("ListAccessControlConfigurations");
|
|
273
|
-
let body;
|
|
274
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
275
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
276
|
-
};
|
|
277
|
-
exports.se_ListAccessControlConfigurationsCommand = se_ListAccessControlConfigurationsCommand;
|
|
278
|
-
const se_ListDataSourcesCommand = async (input, context) => {
|
|
279
|
-
const headers = sharedHeaders("ListDataSources");
|
|
280
|
-
let body;
|
|
281
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
282
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
283
|
-
};
|
|
284
|
-
exports.se_ListDataSourcesCommand = se_ListDataSourcesCommand;
|
|
285
|
-
const se_ListDataSourceSyncJobsCommand = async (input, context) => {
|
|
286
|
-
const headers = sharedHeaders("ListDataSourceSyncJobs");
|
|
287
|
-
let body;
|
|
288
|
-
body = JSON.stringify(se_ListDataSourceSyncJobsRequest(input, context));
|
|
289
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
290
|
-
};
|
|
291
|
-
exports.se_ListDataSourceSyncJobsCommand = se_ListDataSourceSyncJobsCommand;
|
|
292
|
-
const se_ListEntityPersonasCommand = async (input, context) => {
|
|
293
|
-
const headers = sharedHeaders("ListEntityPersonas");
|
|
294
|
-
let body;
|
|
295
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
296
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
297
|
-
};
|
|
298
|
-
exports.se_ListEntityPersonasCommand = se_ListEntityPersonasCommand;
|
|
299
|
-
const se_ListExperienceEntitiesCommand = async (input, context) => {
|
|
300
|
-
const headers = sharedHeaders("ListExperienceEntities");
|
|
301
|
-
let body;
|
|
302
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
303
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
304
|
-
};
|
|
305
|
-
exports.se_ListExperienceEntitiesCommand = se_ListExperienceEntitiesCommand;
|
|
306
|
-
const se_ListExperiencesCommand = async (input, context) => {
|
|
307
|
-
const headers = sharedHeaders("ListExperiences");
|
|
308
|
-
let body;
|
|
309
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
310
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
311
|
-
};
|
|
312
|
-
exports.se_ListExperiencesCommand = se_ListExperiencesCommand;
|
|
313
|
-
const se_ListFaqsCommand = async (input, context) => {
|
|
314
|
-
const headers = sharedHeaders("ListFaqs");
|
|
315
|
-
let body;
|
|
316
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
317
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
318
|
-
};
|
|
319
|
-
exports.se_ListFaqsCommand = se_ListFaqsCommand;
|
|
320
|
-
const se_ListFeaturedResultsSetsCommand = async (input, context) => {
|
|
321
|
-
const headers = sharedHeaders("ListFeaturedResultsSets");
|
|
322
|
-
let body;
|
|
323
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
324
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
325
|
-
};
|
|
326
|
-
exports.se_ListFeaturedResultsSetsCommand = se_ListFeaturedResultsSetsCommand;
|
|
327
|
-
const se_ListGroupsOlderThanOrderingIdCommand = async (input, context) => {
|
|
328
|
-
const headers = sharedHeaders("ListGroupsOlderThanOrderingId");
|
|
329
|
-
let body;
|
|
330
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
331
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
332
|
-
};
|
|
333
|
-
exports.se_ListGroupsOlderThanOrderingIdCommand = se_ListGroupsOlderThanOrderingIdCommand;
|
|
334
|
-
const se_ListIndicesCommand = async (input, context) => {
|
|
335
|
-
const headers = sharedHeaders("ListIndices");
|
|
336
|
-
let body;
|
|
337
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
338
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
339
|
-
};
|
|
340
|
-
exports.se_ListIndicesCommand = se_ListIndicesCommand;
|
|
341
|
-
const se_ListQuerySuggestionsBlockListsCommand = async (input, context) => {
|
|
342
|
-
const headers = sharedHeaders("ListQuerySuggestionsBlockLists");
|
|
343
|
-
let body;
|
|
344
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
345
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
346
|
-
};
|
|
347
|
-
exports.se_ListQuerySuggestionsBlockListsCommand = se_ListQuerySuggestionsBlockListsCommand;
|
|
348
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
349
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
350
|
-
let body;
|
|
351
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
352
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
353
|
-
};
|
|
354
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
355
|
-
const se_ListThesauriCommand = async (input, context) => {
|
|
356
|
-
const headers = sharedHeaders("ListThesauri");
|
|
357
|
-
let body;
|
|
358
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
359
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
360
|
-
};
|
|
361
|
-
exports.se_ListThesauriCommand = se_ListThesauriCommand;
|
|
362
|
-
const se_PutPrincipalMappingCommand = async (input, context) => {
|
|
363
|
-
const headers = sharedHeaders("PutPrincipalMapping");
|
|
364
|
-
let body;
|
|
365
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
366
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
367
|
-
};
|
|
368
|
-
exports.se_PutPrincipalMappingCommand = se_PutPrincipalMappingCommand;
|
|
369
|
-
const se_QueryCommand = async (input, context) => {
|
|
370
|
-
const headers = sharedHeaders("Query");
|
|
371
|
-
let body;
|
|
372
|
-
body = JSON.stringify(se_QueryRequest(input, context));
|
|
373
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
374
|
-
};
|
|
375
|
-
exports.se_QueryCommand = se_QueryCommand;
|
|
376
|
-
const se_RetrieveCommand = async (input, context) => {
|
|
377
|
-
const headers = sharedHeaders("Retrieve");
|
|
378
|
-
let body;
|
|
379
|
-
body = JSON.stringify(se_RetrieveRequest(input, context));
|
|
380
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
381
|
-
};
|
|
382
|
-
exports.se_RetrieveCommand = se_RetrieveCommand;
|
|
383
|
-
const se_StartDataSourceSyncJobCommand = async (input, context) => {
|
|
384
|
-
const headers = sharedHeaders("StartDataSourceSyncJob");
|
|
385
|
-
let body;
|
|
386
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
387
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
388
|
-
};
|
|
389
|
-
exports.se_StartDataSourceSyncJobCommand = se_StartDataSourceSyncJobCommand;
|
|
390
|
-
const se_StopDataSourceSyncJobCommand = async (input, context) => {
|
|
391
|
-
const headers = sharedHeaders("StopDataSourceSyncJob");
|
|
392
|
-
let body;
|
|
393
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
394
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
395
|
-
};
|
|
396
|
-
exports.se_StopDataSourceSyncJobCommand = se_StopDataSourceSyncJobCommand;
|
|
397
|
-
const se_SubmitFeedbackCommand = async (input, context) => {
|
|
398
|
-
const headers = sharedHeaders("SubmitFeedback");
|
|
399
|
-
let body;
|
|
400
|
-
body = JSON.stringify(se_SubmitFeedbackRequest(input, context));
|
|
401
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
402
|
-
};
|
|
403
|
-
exports.se_SubmitFeedbackCommand = se_SubmitFeedbackCommand;
|
|
404
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
405
|
-
const headers = sharedHeaders("TagResource");
|
|
406
|
-
let body;
|
|
407
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
408
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
409
|
-
};
|
|
410
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
411
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
412
|
-
const headers = sharedHeaders("UntagResource");
|
|
413
|
-
let body;
|
|
414
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
415
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
416
|
-
};
|
|
417
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
418
|
-
const se_UpdateAccessControlConfigurationCommand = async (input, context) => {
|
|
419
|
-
const headers = sharedHeaders("UpdateAccessControlConfiguration");
|
|
420
|
-
let body;
|
|
421
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
422
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
423
|
-
};
|
|
424
|
-
exports.se_UpdateAccessControlConfigurationCommand = se_UpdateAccessControlConfigurationCommand;
|
|
425
|
-
const se_UpdateDataSourceCommand = async (input, context) => {
|
|
426
|
-
const headers = sharedHeaders("UpdateDataSource");
|
|
427
|
-
let body;
|
|
428
|
-
body = JSON.stringify(se_UpdateDataSourceRequest(input, context));
|
|
429
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
430
|
-
};
|
|
431
|
-
exports.se_UpdateDataSourceCommand = se_UpdateDataSourceCommand;
|
|
432
|
-
const se_UpdateExperienceCommand = async (input, context) => {
|
|
433
|
-
const headers = sharedHeaders("UpdateExperience");
|
|
434
|
-
let body;
|
|
435
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
436
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
437
|
-
};
|
|
438
|
-
exports.se_UpdateExperienceCommand = se_UpdateExperienceCommand;
|
|
439
|
-
const se_UpdateFeaturedResultsSetCommand = async (input, context) => {
|
|
440
|
-
const headers = sharedHeaders("UpdateFeaturedResultsSet");
|
|
441
|
-
let body;
|
|
442
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
443
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
444
|
-
};
|
|
445
|
-
exports.se_UpdateFeaturedResultsSetCommand = se_UpdateFeaturedResultsSetCommand;
|
|
446
|
-
const se_UpdateIndexCommand = async (input, context) => {
|
|
447
|
-
const headers = sharedHeaders("UpdateIndex");
|
|
448
|
-
let body;
|
|
449
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
450
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
451
|
-
};
|
|
452
|
-
exports.se_UpdateIndexCommand = se_UpdateIndexCommand;
|
|
453
|
-
const se_UpdateQuerySuggestionsBlockListCommand = async (input, context) => {
|
|
454
|
-
const headers = sharedHeaders("UpdateQuerySuggestionsBlockList");
|
|
455
|
-
let body;
|
|
456
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
457
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
458
|
-
};
|
|
459
|
-
exports.se_UpdateQuerySuggestionsBlockListCommand = se_UpdateQuerySuggestionsBlockListCommand;
|
|
460
|
-
const se_UpdateQuerySuggestionsConfigCommand = async (input, context) => {
|
|
461
|
-
const headers = sharedHeaders("UpdateQuerySuggestionsConfig");
|
|
462
|
-
let body;
|
|
463
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
464
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
465
|
-
};
|
|
466
|
-
exports.se_UpdateQuerySuggestionsConfigCommand = se_UpdateQuerySuggestionsConfigCommand;
|
|
467
|
-
const se_UpdateThesaurusCommand = async (input, context) => {
|
|
468
|
-
const headers = sharedHeaders("UpdateThesaurus");
|
|
469
|
-
let body;
|
|
470
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
471
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
472
|
-
};
|
|
473
|
-
exports.se_UpdateThesaurusCommand = se_UpdateThesaurusCommand;
|
|
474
|
-
const de_AssociateEntitiesToExperienceCommand = async (output, context) => {
|
|
475
|
-
if (output.statusCode >= 300) {
|
|
476
|
-
return de_AssociateEntitiesToExperienceCommandError(output, context);
|
|
477
|
-
}
|
|
478
|
-
const data = await parseBody(output.body, context);
|
|
479
|
-
let contents = {};
|
|
480
|
-
contents = (0, smithy_client_1._json)(data);
|
|
481
|
-
const response = {
|
|
482
|
-
$metadata: deserializeMetadata(output),
|
|
483
|
-
...contents,
|
|
484
|
-
};
|
|
485
|
-
return response;
|
|
486
|
-
};
|
|
487
|
-
exports.de_AssociateEntitiesToExperienceCommand = de_AssociateEntitiesToExperienceCommand;
|
|
488
|
-
const de_AssociateEntitiesToExperienceCommandError = async (output, context) => {
|
|
489
|
-
const parsedOutput = {
|
|
490
|
-
...output,
|
|
491
|
-
body: await parseErrorBody(output.body, context),
|
|
492
|
-
};
|
|
493
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
494
|
-
switch (errorCode) {
|
|
495
|
-
case "AccessDeniedException":
|
|
496
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
497
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
498
|
-
case "InternalServerException":
|
|
499
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
500
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
501
|
-
case "ResourceAlreadyExistException":
|
|
502
|
-
case "com.amazonaws.kendra#ResourceAlreadyExistException":
|
|
503
|
-
throw await de_ResourceAlreadyExistExceptionRes(parsedOutput, context);
|
|
504
|
-
case "ResourceNotFoundException":
|
|
505
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
506
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
507
|
-
case "ThrottlingException":
|
|
508
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
509
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
510
|
-
case "ValidationException":
|
|
511
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
512
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
513
|
-
default:
|
|
514
|
-
const parsedBody = parsedOutput.body;
|
|
515
|
-
return throwDefaultError({
|
|
516
|
-
output,
|
|
517
|
-
parsedBody,
|
|
518
|
-
errorCode,
|
|
519
|
-
});
|
|
520
|
-
}
|
|
521
|
-
};
|
|
522
|
-
const de_AssociatePersonasToEntitiesCommand = async (output, context) => {
|
|
523
|
-
if (output.statusCode >= 300) {
|
|
524
|
-
return de_AssociatePersonasToEntitiesCommandError(output, context);
|
|
525
|
-
}
|
|
526
|
-
const data = await parseBody(output.body, context);
|
|
527
|
-
let contents = {};
|
|
528
|
-
contents = (0, smithy_client_1._json)(data);
|
|
529
|
-
const response = {
|
|
530
|
-
$metadata: deserializeMetadata(output),
|
|
531
|
-
...contents,
|
|
532
|
-
};
|
|
533
|
-
return response;
|
|
534
|
-
};
|
|
535
|
-
exports.de_AssociatePersonasToEntitiesCommand = de_AssociatePersonasToEntitiesCommand;
|
|
536
|
-
const de_AssociatePersonasToEntitiesCommandError = async (output, context) => {
|
|
537
|
-
const parsedOutput = {
|
|
538
|
-
...output,
|
|
539
|
-
body: await parseErrorBody(output.body, context),
|
|
540
|
-
};
|
|
541
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
542
|
-
switch (errorCode) {
|
|
543
|
-
case "AccessDeniedException":
|
|
544
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
545
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
546
|
-
case "InternalServerException":
|
|
547
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
548
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
549
|
-
case "ResourceAlreadyExistException":
|
|
550
|
-
case "com.amazonaws.kendra#ResourceAlreadyExistException":
|
|
551
|
-
throw await de_ResourceAlreadyExistExceptionRes(parsedOutput, context);
|
|
552
|
-
case "ResourceNotFoundException":
|
|
553
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
554
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
555
|
-
case "ThrottlingException":
|
|
556
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
557
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
558
|
-
case "ValidationException":
|
|
559
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
560
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
561
|
-
default:
|
|
562
|
-
const parsedBody = parsedOutput.body;
|
|
563
|
-
return throwDefaultError({
|
|
564
|
-
output,
|
|
565
|
-
parsedBody,
|
|
566
|
-
errorCode,
|
|
567
|
-
});
|
|
568
|
-
}
|
|
569
|
-
};
|
|
570
|
-
const de_BatchDeleteDocumentCommand = async (output, context) => {
|
|
571
|
-
if (output.statusCode >= 300) {
|
|
572
|
-
return de_BatchDeleteDocumentCommandError(output, context);
|
|
573
|
-
}
|
|
574
|
-
const data = await parseBody(output.body, context);
|
|
575
|
-
let contents = {};
|
|
576
|
-
contents = (0, smithy_client_1._json)(data);
|
|
577
|
-
const response = {
|
|
578
|
-
$metadata: deserializeMetadata(output),
|
|
579
|
-
...contents,
|
|
580
|
-
};
|
|
581
|
-
return response;
|
|
582
|
-
};
|
|
583
|
-
exports.de_BatchDeleteDocumentCommand = de_BatchDeleteDocumentCommand;
|
|
584
|
-
const de_BatchDeleteDocumentCommandError = async (output, context) => {
|
|
585
|
-
const parsedOutput = {
|
|
586
|
-
...output,
|
|
587
|
-
body: await parseErrorBody(output.body, context),
|
|
588
|
-
};
|
|
589
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
590
|
-
switch (errorCode) {
|
|
591
|
-
case "AccessDeniedException":
|
|
592
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
593
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
594
|
-
case "ConflictException":
|
|
595
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
596
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
597
|
-
case "InternalServerException":
|
|
598
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
599
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
600
|
-
case "ResourceNotFoundException":
|
|
601
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
602
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
603
|
-
case "ThrottlingException":
|
|
604
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
605
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
606
|
-
case "ValidationException":
|
|
607
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
608
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
609
|
-
default:
|
|
610
|
-
const parsedBody = parsedOutput.body;
|
|
611
|
-
return throwDefaultError({
|
|
612
|
-
output,
|
|
613
|
-
parsedBody,
|
|
614
|
-
errorCode,
|
|
615
|
-
});
|
|
616
|
-
}
|
|
617
|
-
};
|
|
618
|
-
const de_BatchDeleteFeaturedResultsSetCommand = async (output, context) => {
|
|
619
|
-
if (output.statusCode >= 300) {
|
|
620
|
-
return de_BatchDeleteFeaturedResultsSetCommandError(output, context);
|
|
621
|
-
}
|
|
622
|
-
const data = await parseBody(output.body, context);
|
|
623
|
-
let contents = {};
|
|
624
|
-
contents = (0, smithy_client_1._json)(data);
|
|
625
|
-
const response = {
|
|
626
|
-
$metadata: deserializeMetadata(output),
|
|
627
|
-
...contents,
|
|
628
|
-
};
|
|
629
|
-
return response;
|
|
630
|
-
};
|
|
631
|
-
exports.de_BatchDeleteFeaturedResultsSetCommand = de_BatchDeleteFeaturedResultsSetCommand;
|
|
632
|
-
const de_BatchDeleteFeaturedResultsSetCommandError = async (output, context) => {
|
|
633
|
-
const parsedOutput = {
|
|
634
|
-
...output,
|
|
635
|
-
body: await parseErrorBody(output.body, context),
|
|
636
|
-
};
|
|
637
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
638
|
-
switch (errorCode) {
|
|
639
|
-
case "AccessDeniedException":
|
|
640
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
641
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
642
|
-
case "InternalServerException":
|
|
643
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
644
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
645
|
-
case "ResourceNotFoundException":
|
|
646
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
647
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
648
|
-
case "ThrottlingException":
|
|
649
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
650
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
651
|
-
case "ValidationException":
|
|
652
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
653
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
654
|
-
default:
|
|
655
|
-
const parsedBody = parsedOutput.body;
|
|
656
|
-
return throwDefaultError({
|
|
657
|
-
output,
|
|
658
|
-
parsedBody,
|
|
659
|
-
errorCode,
|
|
660
|
-
});
|
|
661
|
-
}
|
|
662
|
-
};
|
|
663
|
-
const de_BatchGetDocumentStatusCommand = async (output, context) => {
|
|
664
|
-
if (output.statusCode >= 300) {
|
|
665
|
-
return de_BatchGetDocumentStatusCommandError(output, context);
|
|
666
|
-
}
|
|
667
|
-
const data = await parseBody(output.body, context);
|
|
668
|
-
let contents = {};
|
|
669
|
-
contents = (0, smithy_client_1._json)(data);
|
|
670
|
-
const response = {
|
|
671
|
-
$metadata: deserializeMetadata(output),
|
|
672
|
-
...contents,
|
|
673
|
-
};
|
|
674
|
-
return response;
|
|
675
|
-
};
|
|
676
|
-
exports.de_BatchGetDocumentStatusCommand = de_BatchGetDocumentStatusCommand;
|
|
677
|
-
const de_BatchGetDocumentStatusCommandError = async (output, context) => {
|
|
678
|
-
const parsedOutput = {
|
|
679
|
-
...output,
|
|
680
|
-
body: await parseErrorBody(output.body, context),
|
|
681
|
-
};
|
|
682
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
683
|
-
switch (errorCode) {
|
|
684
|
-
case "AccessDeniedException":
|
|
685
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
686
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
687
|
-
case "ConflictException":
|
|
688
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
689
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
690
|
-
case "InternalServerException":
|
|
691
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
692
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
693
|
-
case "ResourceNotFoundException":
|
|
694
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
695
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
696
|
-
case "ThrottlingException":
|
|
697
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
698
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
699
|
-
case "ValidationException":
|
|
700
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
701
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
702
|
-
default:
|
|
703
|
-
const parsedBody = parsedOutput.body;
|
|
704
|
-
return throwDefaultError({
|
|
705
|
-
output,
|
|
706
|
-
parsedBody,
|
|
707
|
-
errorCode,
|
|
708
|
-
});
|
|
709
|
-
}
|
|
710
|
-
};
|
|
711
|
-
const de_BatchPutDocumentCommand = async (output, context) => {
|
|
712
|
-
if (output.statusCode >= 300) {
|
|
713
|
-
return de_BatchPutDocumentCommandError(output, context);
|
|
714
|
-
}
|
|
715
|
-
const data = await parseBody(output.body, context);
|
|
716
|
-
let contents = {};
|
|
717
|
-
contents = (0, smithy_client_1._json)(data);
|
|
718
|
-
const response = {
|
|
719
|
-
$metadata: deserializeMetadata(output),
|
|
720
|
-
...contents,
|
|
721
|
-
};
|
|
722
|
-
return response;
|
|
723
|
-
};
|
|
724
|
-
exports.de_BatchPutDocumentCommand = de_BatchPutDocumentCommand;
|
|
725
|
-
const de_BatchPutDocumentCommandError = async (output, context) => {
|
|
726
|
-
const parsedOutput = {
|
|
727
|
-
...output,
|
|
728
|
-
body: await parseErrorBody(output.body, context),
|
|
729
|
-
};
|
|
730
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
731
|
-
switch (errorCode) {
|
|
732
|
-
case "AccessDeniedException":
|
|
733
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
734
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
735
|
-
case "ConflictException":
|
|
736
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
737
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
738
|
-
case "InternalServerException":
|
|
739
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
740
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
741
|
-
case "ResourceNotFoundException":
|
|
742
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
743
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
744
|
-
case "ServiceQuotaExceededException":
|
|
745
|
-
case "com.amazonaws.kendra#ServiceQuotaExceededException":
|
|
746
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
747
|
-
case "ThrottlingException":
|
|
748
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
749
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
750
|
-
case "ValidationException":
|
|
751
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
752
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
753
|
-
default:
|
|
754
|
-
const parsedBody = parsedOutput.body;
|
|
755
|
-
return throwDefaultError({
|
|
756
|
-
output,
|
|
757
|
-
parsedBody,
|
|
758
|
-
errorCode,
|
|
759
|
-
});
|
|
760
|
-
}
|
|
761
|
-
};
|
|
762
|
-
const de_ClearQuerySuggestionsCommand = async (output, context) => {
|
|
763
|
-
if (output.statusCode >= 300) {
|
|
764
|
-
return de_ClearQuerySuggestionsCommandError(output, context);
|
|
765
|
-
}
|
|
766
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
767
|
-
const response = {
|
|
768
|
-
$metadata: deserializeMetadata(output),
|
|
769
|
-
};
|
|
770
|
-
return response;
|
|
771
|
-
};
|
|
772
|
-
exports.de_ClearQuerySuggestionsCommand = de_ClearQuerySuggestionsCommand;
|
|
773
|
-
const de_ClearQuerySuggestionsCommandError = async (output, context) => {
|
|
774
|
-
const parsedOutput = {
|
|
775
|
-
...output,
|
|
776
|
-
body: await parseErrorBody(output.body, context),
|
|
777
|
-
};
|
|
778
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
779
|
-
switch (errorCode) {
|
|
780
|
-
case "AccessDeniedException":
|
|
781
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
782
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
783
|
-
case "ConflictException":
|
|
784
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
785
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
786
|
-
case "InternalServerException":
|
|
787
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
788
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
789
|
-
case "ResourceNotFoundException":
|
|
790
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
791
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
792
|
-
case "ThrottlingException":
|
|
793
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
794
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
795
|
-
case "ValidationException":
|
|
796
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
797
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
798
|
-
default:
|
|
799
|
-
const parsedBody = parsedOutput.body;
|
|
800
|
-
return throwDefaultError({
|
|
801
|
-
output,
|
|
802
|
-
parsedBody,
|
|
803
|
-
errorCode,
|
|
804
|
-
});
|
|
805
|
-
}
|
|
806
|
-
};
|
|
807
|
-
const de_CreateAccessControlConfigurationCommand = async (output, context) => {
|
|
808
|
-
if (output.statusCode >= 300) {
|
|
809
|
-
return de_CreateAccessControlConfigurationCommandError(output, context);
|
|
810
|
-
}
|
|
811
|
-
const data = await parseBody(output.body, context);
|
|
812
|
-
let contents = {};
|
|
813
|
-
contents = (0, smithy_client_1._json)(data);
|
|
814
|
-
const response = {
|
|
815
|
-
$metadata: deserializeMetadata(output),
|
|
816
|
-
...contents,
|
|
817
|
-
};
|
|
818
|
-
return response;
|
|
819
|
-
};
|
|
820
|
-
exports.de_CreateAccessControlConfigurationCommand = de_CreateAccessControlConfigurationCommand;
|
|
821
|
-
const de_CreateAccessControlConfigurationCommandError = async (output, context) => {
|
|
822
|
-
const parsedOutput = {
|
|
823
|
-
...output,
|
|
824
|
-
body: await parseErrorBody(output.body, context),
|
|
825
|
-
};
|
|
826
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
827
|
-
switch (errorCode) {
|
|
828
|
-
case "AccessDeniedException":
|
|
829
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
830
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
831
|
-
case "ConflictException":
|
|
832
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
833
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
834
|
-
case "InternalServerException":
|
|
835
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
836
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
837
|
-
case "ResourceNotFoundException":
|
|
838
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
839
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
840
|
-
case "ServiceQuotaExceededException":
|
|
841
|
-
case "com.amazonaws.kendra#ServiceQuotaExceededException":
|
|
842
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
843
|
-
case "ThrottlingException":
|
|
844
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
845
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
846
|
-
case "ValidationException":
|
|
847
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
848
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
849
|
-
default:
|
|
850
|
-
const parsedBody = parsedOutput.body;
|
|
851
|
-
return throwDefaultError({
|
|
852
|
-
output,
|
|
853
|
-
parsedBody,
|
|
854
|
-
errorCode,
|
|
855
|
-
});
|
|
856
|
-
}
|
|
857
|
-
};
|
|
858
|
-
const de_CreateDataSourceCommand = async (output, context) => {
|
|
859
|
-
if (output.statusCode >= 300) {
|
|
860
|
-
return de_CreateDataSourceCommandError(output, context);
|
|
861
|
-
}
|
|
862
|
-
const data = await parseBody(output.body, context);
|
|
863
|
-
let contents = {};
|
|
864
|
-
contents = (0, smithy_client_1._json)(data);
|
|
865
|
-
const response = {
|
|
866
|
-
$metadata: deserializeMetadata(output),
|
|
867
|
-
...contents,
|
|
868
|
-
};
|
|
869
|
-
return response;
|
|
870
|
-
};
|
|
871
|
-
exports.de_CreateDataSourceCommand = de_CreateDataSourceCommand;
|
|
872
|
-
const de_CreateDataSourceCommandError = async (output, context) => {
|
|
873
|
-
const parsedOutput = {
|
|
874
|
-
...output,
|
|
875
|
-
body: await parseErrorBody(output.body, context),
|
|
876
|
-
};
|
|
877
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
878
|
-
switch (errorCode) {
|
|
879
|
-
case "AccessDeniedException":
|
|
880
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
881
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
882
|
-
case "ConflictException":
|
|
883
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
884
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
885
|
-
case "InternalServerException":
|
|
886
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
887
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
888
|
-
case "ResourceAlreadyExistException":
|
|
889
|
-
case "com.amazonaws.kendra#ResourceAlreadyExistException":
|
|
890
|
-
throw await de_ResourceAlreadyExistExceptionRes(parsedOutput, context);
|
|
891
|
-
case "ResourceNotFoundException":
|
|
892
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
893
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
894
|
-
case "ServiceQuotaExceededException":
|
|
895
|
-
case "com.amazonaws.kendra#ServiceQuotaExceededException":
|
|
896
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
897
|
-
case "ThrottlingException":
|
|
898
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
899
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
900
|
-
case "ValidationException":
|
|
901
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
902
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
903
|
-
default:
|
|
904
|
-
const parsedBody = parsedOutput.body;
|
|
905
|
-
return throwDefaultError({
|
|
906
|
-
output,
|
|
907
|
-
parsedBody,
|
|
908
|
-
errorCode,
|
|
909
|
-
});
|
|
910
|
-
}
|
|
911
|
-
};
|
|
912
|
-
const de_CreateExperienceCommand = async (output, context) => {
|
|
913
|
-
if (output.statusCode >= 300) {
|
|
914
|
-
return de_CreateExperienceCommandError(output, context);
|
|
915
|
-
}
|
|
916
|
-
const data = await parseBody(output.body, context);
|
|
917
|
-
let contents = {};
|
|
918
|
-
contents = (0, smithy_client_1._json)(data);
|
|
919
|
-
const response = {
|
|
920
|
-
$metadata: deserializeMetadata(output),
|
|
921
|
-
...contents,
|
|
922
|
-
};
|
|
923
|
-
return response;
|
|
924
|
-
};
|
|
925
|
-
exports.de_CreateExperienceCommand = de_CreateExperienceCommand;
|
|
926
|
-
const de_CreateExperienceCommandError = async (output, context) => {
|
|
927
|
-
const parsedOutput = {
|
|
928
|
-
...output,
|
|
929
|
-
body: await parseErrorBody(output.body, context),
|
|
930
|
-
};
|
|
931
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
932
|
-
switch (errorCode) {
|
|
933
|
-
case "AccessDeniedException":
|
|
934
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
935
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
936
|
-
case "ConflictException":
|
|
937
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
938
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
939
|
-
case "InternalServerException":
|
|
940
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
941
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
942
|
-
case "ResourceNotFoundException":
|
|
943
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
944
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
945
|
-
case "ServiceQuotaExceededException":
|
|
946
|
-
case "com.amazonaws.kendra#ServiceQuotaExceededException":
|
|
947
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
948
|
-
case "ThrottlingException":
|
|
949
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
950
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
951
|
-
case "ValidationException":
|
|
952
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
953
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
954
|
-
default:
|
|
955
|
-
const parsedBody = parsedOutput.body;
|
|
956
|
-
return throwDefaultError({
|
|
957
|
-
output,
|
|
958
|
-
parsedBody,
|
|
959
|
-
errorCode,
|
|
960
|
-
});
|
|
961
|
-
}
|
|
962
|
-
};
|
|
963
|
-
const de_CreateFaqCommand = async (output, context) => {
|
|
964
|
-
if (output.statusCode >= 300) {
|
|
965
|
-
return de_CreateFaqCommandError(output, context);
|
|
966
|
-
}
|
|
967
|
-
const data = await parseBody(output.body, context);
|
|
968
|
-
let contents = {};
|
|
969
|
-
contents = (0, smithy_client_1._json)(data);
|
|
970
|
-
const response = {
|
|
971
|
-
$metadata: deserializeMetadata(output),
|
|
972
|
-
...contents,
|
|
973
|
-
};
|
|
974
|
-
return response;
|
|
975
|
-
};
|
|
976
|
-
exports.de_CreateFaqCommand = de_CreateFaqCommand;
|
|
977
|
-
const de_CreateFaqCommandError = async (output, context) => {
|
|
978
|
-
const parsedOutput = {
|
|
979
|
-
...output,
|
|
980
|
-
body: await parseErrorBody(output.body, context),
|
|
981
|
-
};
|
|
982
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
983
|
-
switch (errorCode) {
|
|
984
|
-
case "AccessDeniedException":
|
|
985
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
986
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
987
|
-
case "ConflictException":
|
|
988
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
989
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
990
|
-
case "InternalServerException":
|
|
991
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
992
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
993
|
-
case "ResourceNotFoundException":
|
|
994
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
995
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
996
|
-
case "ServiceQuotaExceededException":
|
|
997
|
-
case "com.amazonaws.kendra#ServiceQuotaExceededException":
|
|
998
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
999
|
-
case "ThrottlingException":
|
|
1000
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
1001
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1002
|
-
case "ValidationException":
|
|
1003
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
1004
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1005
|
-
default:
|
|
1006
|
-
const parsedBody = parsedOutput.body;
|
|
1007
|
-
return throwDefaultError({
|
|
1008
|
-
output,
|
|
1009
|
-
parsedBody,
|
|
1010
|
-
errorCode,
|
|
1011
|
-
});
|
|
1012
|
-
}
|
|
1013
|
-
};
|
|
1014
|
-
const de_CreateFeaturedResultsSetCommand = async (output, context) => {
|
|
1015
|
-
if (output.statusCode >= 300) {
|
|
1016
|
-
return de_CreateFeaturedResultsSetCommandError(output, context);
|
|
1017
|
-
}
|
|
1018
|
-
const data = await parseBody(output.body, context);
|
|
1019
|
-
let contents = {};
|
|
1020
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1021
|
-
const response = {
|
|
1022
|
-
$metadata: deserializeMetadata(output),
|
|
1023
|
-
...contents,
|
|
1024
|
-
};
|
|
1025
|
-
return response;
|
|
1026
|
-
};
|
|
1027
|
-
exports.de_CreateFeaturedResultsSetCommand = de_CreateFeaturedResultsSetCommand;
|
|
1028
|
-
const de_CreateFeaturedResultsSetCommandError = async (output, context) => {
|
|
1029
|
-
const parsedOutput = {
|
|
1030
|
-
...output,
|
|
1031
|
-
body: await parseErrorBody(output.body, context),
|
|
1032
|
-
};
|
|
1033
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1034
|
-
switch (errorCode) {
|
|
1035
|
-
case "AccessDeniedException":
|
|
1036
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
1037
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1038
|
-
case "ConflictException":
|
|
1039
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
1040
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1041
|
-
case "FeaturedResultsConflictException":
|
|
1042
|
-
case "com.amazonaws.kendra#FeaturedResultsConflictException":
|
|
1043
|
-
throw await de_FeaturedResultsConflictExceptionRes(parsedOutput, context);
|
|
1044
|
-
case "InternalServerException":
|
|
1045
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
1046
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1047
|
-
case "ResourceNotFoundException":
|
|
1048
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
1049
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1050
|
-
case "ThrottlingException":
|
|
1051
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
1052
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1053
|
-
case "ValidationException":
|
|
1054
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
1055
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1056
|
-
default:
|
|
1057
|
-
const parsedBody = parsedOutput.body;
|
|
1058
|
-
return throwDefaultError({
|
|
1059
|
-
output,
|
|
1060
|
-
parsedBody,
|
|
1061
|
-
errorCode,
|
|
1062
|
-
});
|
|
1063
|
-
}
|
|
1064
|
-
};
|
|
1065
|
-
const de_CreateIndexCommand = async (output, context) => {
|
|
1066
|
-
if (output.statusCode >= 300) {
|
|
1067
|
-
return de_CreateIndexCommandError(output, context);
|
|
1068
|
-
}
|
|
1069
|
-
const data = await parseBody(output.body, context);
|
|
1070
|
-
let contents = {};
|
|
1071
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1072
|
-
const response = {
|
|
1073
|
-
$metadata: deserializeMetadata(output),
|
|
1074
|
-
...contents,
|
|
1075
|
-
};
|
|
1076
|
-
return response;
|
|
1077
|
-
};
|
|
1078
|
-
exports.de_CreateIndexCommand = de_CreateIndexCommand;
|
|
1079
|
-
const de_CreateIndexCommandError = async (output, context) => {
|
|
1080
|
-
const parsedOutput = {
|
|
1081
|
-
...output,
|
|
1082
|
-
body: await parseErrorBody(output.body, context),
|
|
1083
|
-
};
|
|
1084
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1085
|
-
switch (errorCode) {
|
|
1086
|
-
case "AccessDeniedException":
|
|
1087
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
1088
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1089
|
-
case "ConflictException":
|
|
1090
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
1091
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1092
|
-
case "InternalServerException":
|
|
1093
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
1094
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1095
|
-
case "ResourceAlreadyExistException":
|
|
1096
|
-
case "com.amazonaws.kendra#ResourceAlreadyExistException":
|
|
1097
|
-
throw await de_ResourceAlreadyExistExceptionRes(parsedOutput, context);
|
|
1098
|
-
case "ServiceQuotaExceededException":
|
|
1099
|
-
case "com.amazonaws.kendra#ServiceQuotaExceededException":
|
|
1100
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1101
|
-
case "ThrottlingException":
|
|
1102
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
1103
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1104
|
-
case "ValidationException":
|
|
1105
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
1106
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1107
|
-
default:
|
|
1108
|
-
const parsedBody = parsedOutput.body;
|
|
1109
|
-
return throwDefaultError({
|
|
1110
|
-
output,
|
|
1111
|
-
parsedBody,
|
|
1112
|
-
errorCode,
|
|
1113
|
-
});
|
|
1114
|
-
}
|
|
1115
|
-
};
|
|
1116
|
-
const de_CreateQuerySuggestionsBlockListCommand = async (output, context) => {
|
|
1117
|
-
if (output.statusCode >= 300) {
|
|
1118
|
-
return de_CreateQuerySuggestionsBlockListCommandError(output, context);
|
|
1119
|
-
}
|
|
1120
|
-
const data = await parseBody(output.body, context);
|
|
1121
|
-
let contents = {};
|
|
1122
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1123
|
-
const response = {
|
|
1124
|
-
$metadata: deserializeMetadata(output),
|
|
1125
|
-
...contents,
|
|
1126
|
-
};
|
|
1127
|
-
return response;
|
|
1128
|
-
};
|
|
1129
|
-
exports.de_CreateQuerySuggestionsBlockListCommand = de_CreateQuerySuggestionsBlockListCommand;
|
|
1130
|
-
const de_CreateQuerySuggestionsBlockListCommandError = async (output, context) => {
|
|
1131
|
-
const parsedOutput = {
|
|
1132
|
-
...output,
|
|
1133
|
-
body: await parseErrorBody(output.body, context),
|
|
1134
|
-
};
|
|
1135
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1136
|
-
switch (errorCode) {
|
|
1137
|
-
case "AccessDeniedException":
|
|
1138
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
1139
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1140
|
-
case "ConflictException":
|
|
1141
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
1142
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1143
|
-
case "InternalServerException":
|
|
1144
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
1145
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1146
|
-
case "ResourceNotFoundException":
|
|
1147
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
1148
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1149
|
-
case "ServiceQuotaExceededException":
|
|
1150
|
-
case "com.amazonaws.kendra#ServiceQuotaExceededException":
|
|
1151
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1152
|
-
case "ThrottlingException":
|
|
1153
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
1154
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1155
|
-
case "ValidationException":
|
|
1156
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
1157
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1158
|
-
default:
|
|
1159
|
-
const parsedBody = parsedOutput.body;
|
|
1160
|
-
return throwDefaultError({
|
|
1161
|
-
output,
|
|
1162
|
-
parsedBody,
|
|
1163
|
-
errorCode,
|
|
1164
|
-
});
|
|
1165
|
-
}
|
|
1166
|
-
};
|
|
1167
|
-
const de_CreateThesaurusCommand = async (output, context) => {
|
|
1168
|
-
if (output.statusCode >= 300) {
|
|
1169
|
-
return de_CreateThesaurusCommandError(output, context);
|
|
1170
|
-
}
|
|
1171
|
-
const data = await parseBody(output.body, context);
|
|
1172
|
-
let contents = {};
|
|
1173
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1174
|
-
const response = {
|
|
1175
|
-
$metadata: deserializeMetadata(output),
|
|
1176
|
-
...contents,
|
|
1177
|
-
};
|
|
1178
|
-
return response;
|
|
1179
|
-
};
|
|
1180
|
-
exports.de_CreateThesaurusCommand = de_CreateThesaurusCommand;
|
|
1181
|
-
const de_CreateThesaurusCommandError = async (output, context) => {
|
|
1182
|
-
const parsedOutput = {
|
|
1183
|
-
...output,
|
|
1184
|
-
body: await parseErrorBody(output.body, context),
|
|
1185
|
-
};
|
|
1186
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1187
|
-
switch (errorCode) {
|
|
1188
|
-
case "AccessDeniedException":
|
|
1189
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
1190
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1191
|
-
case "ConflictException":
|
|
1192
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
1193
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1194
|
-
case "InternalServerException":
|
|
1195
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
1196
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1197
|
-
case "ResourceNotFoundException":
|
|
1198
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
1199
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1200
|
-
case "ServiceQuotaExceededException":
|
|
1201
|
-
case "com.amazonaws.kendra#ServiceQuotaExceededException":
|
|
1202
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1203
|
-
case "ThrottlingException":
|
|
1204
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
1205
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1206
|
-
case "ValidationException":
|
|
1207
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
1208
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1209
|
-
default:
|
|
1210
|
-
const parsedBody = parsedOutput.body;
|
|
1211
|
-
return throwDefaultError({
|
|
1212
|
-
output,
|
|
1213
|
-
parsedBody,
|
|
1214
|
-
errorCode,
|
|
1215
|
-
});
|
|
1216
|
-
}
|
|
1217
|
-
};
|
|
1218
|
-
const de_DeleteAccessControlConfigurationCommand = async (output, context) => {
|
|
1219
|
-
if (output.statusCode >= 300) {
|
|
1220
|
-
return de_DeleteAccessControlConfigurationCommandError(output, context);
|
|
1221
|
-
}
|
|
1222
|
-
const data = await parseBody(output.body, context);
|
|
1223
|
-
let contents = {};
|
|
1224
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1225
|
-
const response = {
|
|
1226
|
-
$metadata: deserializeMetadata(output),
|
|
1227
|
-
...contents,
|
|
1228
|
-
};
|
|
1229
|
-
return response;
|
|
1230
|
-
};
|
|
1231
|
-
exports.de_DeleteAccessControlConfigurationCommand = de_DeleteAccessControlConfigurationCommand;
|
|
1232
|
-
const de_DeleteAccessControlConfigurationCommandError = async (output, context) => {
|
|
1233
|
-
const parsedOutput = {
|
|
1234
|
-
...output,
|
|
1235
|
-
body: await parseErrorBody(output.body, context),
|
|
1236
|
-
};
|
|
1237
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1238
|
-
switch (errorCode) {
|
|
1239
|
-
case "AccessDeniedException":
|
|
1240
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
1241
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1242
|
-
case "ConflictException":
|
|
1243
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
1244
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1245
|
-
case "InternalServerException":
|
|
1246
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
1247
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1248
|
-
case "ResourceNotFoundException":
|
|
1249
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
1250
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1251
|
-
case "ThrottlingException":
|
|
1252
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
1253
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1254
|
-
case "ValidationException":
|
|
1255
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
1256
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1257
|
-
default:
|
|
1258
|
-
const parsedBody = parsedOutput.body;
|
|
1259
|
-
return throwDefaultError({
|
|
1260
|
-
output,
|
|
1261
|
-
parsedBody,
|
|
1262
|
-
errorCode,
|
|
1263
|
-
});
|
|
1264
|
-
}
|
|
1265
|
-
};
|
|
1266
|
-
const de_DeleteDataSourceCommand = async (output, context) => {
|
|
1267
|
-
if (output.statusCode >= 300) {
|
|
1268
|
-
return de_DeleteDataSourceCommandError(output, context);
|
|
1269
|
-
}
|
|
1270
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1271
|
-
const response = {
|
|
1272
|
-
$metadata: deserializeMetadata(output),
|
|
1273
|
-
};
|
|
1274
|
-
return response;
|
|
1275
|
-
};
|
|
1276
|
-
exports.de_DeleteDataSourceCommand = de_DeleteDataSourceCommand;
|
|
1277
|
-
const de_DeleteDataSourceCommandError = async (output, context) => {
|
|
1278
|
-
const parsedOutput = {
|
|
1279
|
-
...output,
|
|
1280
|
-
body: await parseErrorBody(output.body, context),
|
|
1281
|
-
};
|
|
1282
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1283
|
-
switch (errorCode) {
|
|
1284
|
-
case "AccessDeniedException":
|
|
1285
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
1286
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1287
|
-
case "ConflictException":
|
|
1288
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
1289
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1290
|
-
case "InternalServerException":
|
|
1291
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
1292
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1293
|
-
case "ResourceNotFoundException":
|
|
1294
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
1295
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1296
|
-
case "ThrottlingException":
|
|
1297
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
1298
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1299
|
-
case "ValidationException":
|
|
1300
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
1301
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1302
|
-
default:
|
|
1303
|
-
const parsedBody = parsedOutput.body;
|
|
1304
|
-
return throwDefaultError({
|
|
1305
|
-
output,
|
|
1306
|
-
parsedBody,
|
|
1307
|
-
errorCode,
|
|
1308
|
-
});
|
|
1309
|
-
}
|
|
1310
|
-
};
|
|
1311
|
-
const de_DeleteExperienceCommand = async (output, context) => {
|
|
1312
|
-
if (output.statusCode >= 300) {
|
|
1313
|
-
return de_DeleteExperienceCommandError(output, context);
|
|
1314
|
-
}
|
|
1315
|
-
const data = await parseBody(output.body, context);
|
|
1316
|
-
let contents = {};
|
|
1317
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1318
|
-
const response = {
|
|
1319
|
-
$metadata: deserializeMetadata(output),
|
|
1320
|
-
...contents,
|
|
1321
|
-
};
|
|
1322
|
-
return response;
|
|
1323
|
-
};
|
|
1324
|
-
exports.de_DeleteExperienceCommand = de_DeleteExperienceCommand;
|
|
1325
|
-
const de_DeleteExperienceCommandError = async (output, context) => {
|
|
1326
|
-
const parsedOutput = {
|
|
1327
|
-
...output,
|
|
1328
|
-
body: await parseErrorBody(output.body, context),
|
|
1329
|
-
};
|
|
1330
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1331
|
-
switch (errorCode) {
|
|
1332
|
-
case "AccessDeniedException":
|
|
1333
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
1334
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1335
|
-
case "ConflictException":
|
|
1336
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
1337
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1338
|
-
case "InternalServerException":
|
|
1339
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
1340
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1341
|
-
case "ResourceNotFoundException":
|
|
1342
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
1343
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1344
|
-
case "ThrottlingException":
|
|
1345
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
1346
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1347
|
-
case "ValidationException":
|
|
1348
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
1349
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1350
|
-
default:
|
|
1351
|
-
const parsedBody = parsedOutput.body;
|
|
1352
|
-
return throwDefaultError({
|
|
1353
|
-
output,
|
|
1354
|
-
parsedBody,
|
|
1355
|
-
errorCode,
|
|
1356
|
-
});
|
|
1357
|
-
}
|
|
1358
|
-
};
|
|
1359
|
-
const de_DeleteFaqCommand = async (output, context) => {
|
|
1360
|
-
if (output.statusCode >= 300) {
|
|
1361
|
-
return de_DeleteFaqCommandError(output, context);
|
|
1362
|
-
}
|
|
1363
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1364
|
-
const response = {
|
|
1365
|
-
$metadata: deserializeMetadata(output),
|
|
1366
|
-
};
|
|
1367
|
-
return response;
|
|
1368
|
-
};
|
|
1369
|
-
exports.de_DeleteFaqCommand = de_DeleteFaqCommand;
|
|
1370
|
-
const de_DeleteFaqCommandError = async (output, context) => {
|
|
1371
|
-
const parsedOutput = {
|
|
1372
|
-
...output,
|
|
1373
|
-
body: await parseErrorBody(output.body, context),
|
|
1374
|
-
};
|
|
1375
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1376
|
-
switch (errorCode) {
|
|
1377
|
-
case "AccessDeniedException":
|
|
1378
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
1379
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1380
|
-
case "ConflictException":
|
|
1381
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
1382
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1383
|
-
case "InternalServerException":
|
|
1384
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
1385
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1386
|
-
case "ResourceNotFoundException":
|
|
1387
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
1388
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1389
|
-
case "ThrottlingException":
|
|
1390
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
1391
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1392
|
-
case "ValidationException":
|
|
1393
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
1394
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1395
|
-
default:
|
|
1396
|
-
const parsedBody = parsedOutput.body;
|
|
1397
|
-
return throwDefaultError({
|
|
1398
|
-
output,
|
|
1399
|
-
parsedBody,
|
|
1400
|
-
errorCode,
|
|
1401
|
-
});
|
|
1402
|
-
}
|
|
1403
|
-
};
|
|
1404
|
-
const de_DeleteIndexCommand = async (output, context) => {
|
|
1405
|
-
if (output.statusCode >= 300) {
|
|
1406
|
-
return de_DeleteIndexCommandError(output, context);
|
|
1407
|
-
}
|
|
1408
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1409
|
-
const response = {
|
|
1410
|
-
$metadata: deserializeMetadata(output),
|
|
1411
|
-
};
|
|
1412
|
-
return response;
|
|
1413
|
-
};
|
|
1414
|
-
exports.de_DeleteIndexCommand = de_DeleteIndexCommand;
|
|
1415
|
-
const de_DeleteIndexCommandError = async (output, context) => {
|
|
1416
|
-
const parsedOutput = {
|
|
1417
|
-
...output,
|
|
1418
|
-
body: await parseErrorBody(output.body, context),
|
|
1419
|
-
};
|
|
1420
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1421
|
-
switch (errorCode) {
|
|
1422
|
-
case "AccessDeniedException":
|
|
1423
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
1424
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1425
|
-
case "ConflictException":
|
|
1426
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
1427
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1428
|
-
case "InternalServerException":
|
|
1429
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
1430
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1431
|
-
case "ResourceNotFoundException":
|
|
1432
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
1433
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1434
|
-
case "ThrottlingException":
|
|
1435
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
1436
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1437
|
-
case "ValidationException":
|
|
1438
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
1439
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1440
|
-
default:
|
|
1441
|
-
const parsedBody = parsedOutput.body;
|
|
1442
|
-
return throwDefaultError({
|
|
1443
|
-
output,
|
|
1444
|
-
parsedBody,
|
|
1445
|
-
errorCode,
|
|
1446
|
-
});
|
|
1447
|
-
}
|
|
1448
|
-
};
|
|
1449
|
-
const de_DeletePrincipalMappingCommand = async (output, context) => {
|
|
1450
|
-
if (output.statusCode >= 300) {
|
|
1451
|
-
return de_DeletePrincipalMappingCommandError(output, context);
|
|
1452
|
-
}
|
|
1453
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1454
|
-
const response = {
|
|
1455
|
-
$metadata: deserializeMetadata(output),
|
|
1456
|
-
};
|
|
1457
|
-
return response;
|
|
1458
|
-
};
|
|
1459
|
-
exports.de_DeletePrincipalMappingCommand = de_DeletePrincipalMappingCommand;
|
|
1460
|
-
const de_DeletePrincipalMappingCommandError = async (output, context) => {
|
|
1461
|
-
const parsedOutput = {
|
|
1462
|
-
...output,
|
|
1463
|
-
body: await parseErrorBody(output.body, context),
|
|
1464
|
-
};
|
|
1465
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1466
|
-
switch (errorCode) {
|
|
1467
|
-
case "AccessDeniedException":
|
|
1468
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
1469
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1470
|
-
case "ConflictException":
|
|
1471
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
1472
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1473
|
-
case "InternalServerException":
|
|
1474
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
1475
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1476
|
-
case "ResourceNotFoundException":
|
|
1477
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
1478
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1479
|
-
case "ThrottlingException":
|
|
1480
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
1481
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1482
|
-
case "ValidationException":
|
|
1483
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
1484
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1485
|
-
default:
|
|
1486
|
-
const parsedBody = parsedOutput.body;
|
|
1487
|
-
return throwDefaultError({
|
|
1488
|
-
output,
|
|
1489
|
-
parsedBody,
|
|
1490
|
-
errorCode,
|
|
1491
|
-
});
|
|
1492
|
-
}
|
|
1493
|
-
};
|
|
1494
|
-
const de_DeleteQuerySuggestionsBlockListCommand = async (output, context) => {
|
|
1495
|
-
if (output.statusCode >= 300) {
|
|
1496
|
-
return de_DeleteQuerySuggestionsBlockListCommandError(output, context);
|
|
1497
|
-
}
|
|
1498
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1499
|
-
const response = {
|
|
1500
|
-
$metadata: deserializeMetadata(output),
|
|
1501
|
-
};
|
|
1502
|
-
return response;
|
|
1503
|
-
};
|
|
1504
|
-
exports.de_DeleteQuerySuggestionsBlockListCommand = de_DeleteQuerySuggestionsBlockListCommand;
|
|
1505
|
-
const de_DeleteQuerySuggestionsBlockListCommandError = async (output, context) => {
|
|
1506
|
-
const parsedOutput = {
|
|
1507
|
-
...output,
|
|
1508
|
-
body: await parseErrorBody(output.body, context),
|
|
1509
|
-
};
|
|
1510
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1511
|
-
switch (errorCode) {
|
|
1512
|
-
case "AccessDeniedException":
|
|
1513
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
1514
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1515
|
-
case "ConflictException":
|
|
1516
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
1517
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1518
|
-
case "InternalServerException":
|
|
1519
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
1520
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1521
|
-
case "ResourceNotFoundException":
|
|
1522
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
1523
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1524
|
-
case "ThrottlingException":
|
|
1525
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
1526
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1527
|
-
case "ValidationException":
|
|
1528
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
1529
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1530
|
-
default:
|
|
1531
|
-
const parsedBody = parsedOutput.body;
|
|
1532
|
-
return throwDefaultError({
|
|
1533
|
-
output,
|
|
1534
|
-
parsedBody,
|
|
1535
|
-
errorCode,
|
|
1536
|
-
});
|
|
1537
|
-
}
|
|
1538
|
-
};
|
|
1539
|
-
const de_DeleteThesaurusCommand = async (output, context) => {
|
|
1540
|
-
if (output.statusCode >= 300) {
|
|
1541
|
-
return de_DeleteThesaurusCommandError(output, context);
|
|
1542
|
-
}
|
|
1543
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1544
|
-
const response = {
|
|
1545
|
-
$metadata: deserializeMetadata(output),
|
|
1546
|
-
};
|
|
1547
|
-
return response;
|
|
1548
|
-
};
|
|
1549
|
-
exports.de_DeleteThesaurusCommand = de_DeleteThesaurusCommand;
|
|
1550
|
-
const de_DeleteThesaurusCommandError = async (output, context) => {
|
|
1551
|
-
const parsedOutput = {
|
|
1552
|
-
...output,
|
|
1553
|
-
body: await parseErrorBody(output.body, context),
|
|
1554
|
-
};
|
|
1555
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1556
|
-
switch (errorCode) {
|
|
1557
|
-
case "AccessDeniedException":
|
|
1558
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
1559
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1560
|
-
case "ConflictException":
|
|
1561
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
1562
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1563
|
-
case "InternalServerException":
|
|
1564
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
1565
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1566
|
-
case "ResourceNotFoundException":
|
|
1567
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
1568
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1569
|
-
case "ThrottlingException":
|
|
1570
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
1571
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1572
|
-
case "ValidationException":
|
|
1573
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
1574
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1575
|
-
default:
|
|
1576
|
-
const parsedBody = parsedOutput.body;
|
|
1577
|
-
return throwDefaultError({
|
|
1578
|
-
output,
|
|
1579
|
-
parsedBody,
|
|
1580
|
-
errorCode,
|
|
1581
|
-
});
|
|
1582
|
-
}
|
|
1583
|
-
};
|
|
1584
|
-
const de_DescribeAccessControlConfigurationCommand = async (output, context) => {
|
|
1585
|
-
if (output.statusCode >= 300) {
|
|
1586
|
-
return de_DescribeAccessControlConfigurationCommandError(output, context);
|
|
1587
|
-
}
|
|
1588
|
-
const data = await parseBody(output.body, context);
|
|
1589
|
-
let contents = {};
|
|
1590
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1591
|
-
const response = {
|
|
1592
|
-
$metadata: deserializeMetadata(output),
|
|
1593
|
-
...contents,
|
|
1594
|
-
};
|
|
1595
|
-
return response;
|
|
1596
|
-
};
|
|
1597
|
-
exports.de_DescribeAccessControlConfigurationCommand = de_DescribeAccessControlConfigurationCommand;
|
|
1598
|
-
const de_DescribeAccessControlConfigurationCommandError = async (output, context) => {
|
|
1599
|
-
const parsedOutput = {
|
|
1600
|
-
...output,
|
|
1601
|
-
body: await parseErrorBody(output.body, context),
|
|
1602
|
-
};
|
|
1603
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1604
|
-
switch (errorCode) {
|
|
1605
|
-
case "AccessDeniedException":
|
|
1606
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
1607
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1608
|
-
case "InternalServerException":
|
|
1609
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
1610
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1611
|
-
case "ResourceNotFoundException":
|
|
1612
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
1613
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1614
|
-
case "ThrottlingException":
|
|
1615
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
1616
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1617
|
-
case "ValidationException":
|
|
1618
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
1619
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1620
|
-
default:
|
|
1621
|
-
const parsedBody = parsedOutput.body;
|
|
1622
|
-
return throwDefaultError({
|
|
1623
|
-
output,
|
|
1624
|
-
parsedBody,
|
|
1625
|
-
errorCode,
|
|
1626
|
-
});
|
|
1627
|
-
}
|
|
1628
|
-
};
|
|
1629
|
-
const de_DescribeDataSourceCommand = async (output, context) => {
|
|
1630
|
-
if (output.statusCode >= 300) {
|
|
1631
|
-
return de_DescribeDataSourceCommandError(output, context);
|
|
1632
|
-
}
|
|
1633
|
-
const data = await parseBody(output.body, context);
|
|
1634
|
-
let contents = {};
|
|
1635
|
-
contents = de_DescribeDataSourceResponse(data, context);
|
|
1636
|
-
const response = {
|
|
1637
|
-
$metadata: deserializeMetadata(output),
|
|
1638
|
-
...contents,
|
|
1639
|
-
};
|
|
1640
|
-
return response;
|
|
1641
|
-
};
|
|
1642
|
-
exports.de_DescribeDataSourceCommand = de_DescribeDataSourceCommand;
|
|
1643
|
-
const de_DescribeDataSourceCommandError = async (output, context) => {
|
|
1644
|
-
const parsedOutput = {
|
|
1645
|
-
...output,
|
|
1646
|
-
body: await parseErrorBody(output.body, context),
|
|
1647
|
-
};
|
|
1648
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1649
|
-
switch (errorCode) {
|
|
1650
|
-
case "AccessDeniedException":
|
|
1651
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
1652
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1653
|
-
case "InternalServerException":
|
|
1654
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
1655
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1656
|
-
case "ResourceNotFoundException":
|
|
1657
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
1658
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1659
|
-
case "ThrottlingException":
|
|
1660
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
1661
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1662
|
-
case "ValidationException":
|
|
1663
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
1664
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1665
|
-
default:
|
|
1666
|
-
const parsedBody = parsedOutput.body;
|
|
1667
|
-
return throwDefaultError({
|
|
1668
|
-
output,
|
|
1669
|
-
parsedBody,
|
|
1670
|
-
errorCode,
|
|
1671
|
-
});
|
|
1672
|
-
}
|
|
1673
|
-
};
|
|
1674
|
-
const de_DescribeExperienceCommand = async (output, context) => {
|
|
1675
|
-
if (output.statusCode >= 300) {
|
|
1676
|
-
return de_DescribeExperienceCommandError(output, context);
|
|
1677
|
-
}
|
|
1678
|
-
const data = await parseBody(output.body, context);
|
|
1679
|
-
let contents = {};
|
|
1680
|
-
contents = de_DescribeExperienceResponse(data, context);
|
|
1681
|
-
const response = {
|
|
1682
|
-
$metadata: deserializeMetadata(output),
|
|
1683
|
-
...contents,
|
|
1684
|
-
};
|
|
1685
|
-
return response;
|
|
1686
|
-
};
|
|
1687
|
-
exports.de_DescribeExperienceCommand = de_DescribeExperienceCommand;
|
|
1688
|
-
const de_DescribeExperienceCommandError = async (output, context) => {
|
|
1689
|
-
const parsedOutput = {
|
|
1690
|
-
...output,
|
|
1691
|
-
body: await parseErrorBody(output.body, context),
|
|
1692
|
-
};
|
|
1693
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1694
|
-
switch (errorCode) {
|
|
1695
|
-
case "AccessDeniedException":
|
|
1696
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
1697
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1698
|
-
case "InternalServerException":
|
|
1699
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
1700
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1701
|
-
case "ResourceNotFoundException":
|
|
1702
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
1703
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1704
|
-
case "ThrottlingException":
|
|
1705
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
1706
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1707
|
-
case "ValidationException":
|
|
1708
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
1709
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1710
|
-
default:
|
|
1711
|
-
const parsedBody = parsedOutput.body;
|
|
1712
|
-
return throwDefaultError({
|
|
1713
|
-
output,
|
|
1714
|
-
parsedBody,
|
|
1715
|
-
errorCode,
|
|
1716
|
-
});
|
|
1717
|
-
}
|
|
1718
|
-
};
|
|
1719
|
-
const de_DescribeFaqCommand = async (output, context) => {
|
|
1720
|
-
if (output.statusCode >= 300) {
|
|
1721
|
-
return de_DescribeFaqCommandError(output, context);
|
|
1722
|
-
}
|
|
1723
|
-
const data = await parseBody(output.body, context);
|
|
1724
|
-
let contents = {};
|
|
1725
|
-
contents = de_DescribeFaqResponse(data, context);
|
|
1726
|
-
const response = {
|
|
1727
|
-
$metadata: deserializeMetadata(output),
|
|
1728
|
-
...contents,
|
|
1729
|
-
};
|
|
1730
|
-
return response;
|
|
1731
|
-
};
|
|
1732
|
-
exports.de_DescribeFaqCommand = de_DescribeFaqCommand;
|
|
1733
|
-
const de_DescribeFaqCommandError = async (output, context) => {
|
|
1734
|
-
const parsedOutput = {
|
|
1735
|
-
...output,
|
|
1736
|
-
body: await parseErrorBody(output.body, context),
|
|
1737
|
-
};
|
|
1738
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1739
|
-
switch (errorCode) {
|
|
1740
|
-
case "AccessDeniedException":
|
|
1741
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
1742
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1743
|
-
case "InternalServerException":
|
|
1744
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
1745
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1746
|
-
case "ResourceNotFoundException":
|
|
1747
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
1748
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1749
|
-
case "ThrottlingException":
|
|
1750
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
1751
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1752
|
-
case "ValidationException":
|
|
1753
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
1754
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1755
|
-
default:
|
|
1756
|
-
const parsedBody = parsedOutput.body;
|
|
1757
|
-
return throwDefaultError({
|
|
1758
|
-
output,
|
|
1759
|
-
parsedBody,
|
|
1760
|
-
errorCode,
|
|
1761
|
-
});
|
|
1762
|
-
}
|
|
1763
|
-
};
|
|
1764
|
-
const de_DescribeFeaturedResultsSetCommand = async (output, context) => {
|
|
1765
|
-
if (output.statusCode >= 300) {
|
|
1766
|
-
return de_DescribeFeaturedResultsSetCommandError(output, context);
|
|
1767
|
-
}
|
|
1768
|
-
const data = await parseBody(output.body, context);
|
|
1769
|
-
let contents = {};
|
|
1770
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1771
|
-
const response = {
|
|
1772
|
-
$metadata: deserializeMetadata(output),
|
|
1773
|
-
...contents,
|
|
1774
|
-
};
|
|
1775
|
-
return response;
|
|
1776
|
-
};
|
|
1777
|
-
exports.de_DescribeFeaturedResultsSetCommand = de_DescribeFeaturedResultsSetCommand;
|
|
1778
|
-
const de_DescribeFeaturedResultsSetCommandError = async (output, context) => {
|
|
1779
|
-
const parsedOutput = {
|
|
1780
|
-
...output,
|
|
1781
|
-
body: await parseErrorBody(output.body, context),
|
|
1782
|
-
};
|
|
1783
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1784
|
-
switch (errorCode) {
|
|
1785
|
-
case "AccessDeniedException":
|
|
1786
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
1787
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1788
|
-
case "InternalServerException":
|
|
1789
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
1790
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1791
|
-
case "ResourceNotFoundException":
|
|
1792
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
1793
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1794
|
-
case "ThrottlingException":
|
|
1795
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
1796
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1797
|
-
case "ValidationException":
|
|
1798
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
1799
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1800
|
-
default:
|
|
1801
|
-
const parsedBody = parsedOutput.body;
|
|
1802
|
-
return throwDefaultError({
|
|
1803
|
-
output,
|
|
1804
|
-
parsedBody,
|
|
1805
|
-
errorCode,
|
|
1806
|
-
});
|
|
1807
|
-
}
|
|
1808
|
-
};
|
|
1809
|
-
const de_DescribeIndexCommand = async (output, context) => {
|
|
1810
|
-
if (output.statusCode >= 300) {
|
|
1811
|
-
return de_DescribeIndexCommandError(output, context);
|
|
1812
|
-
}
|
|
1813
|
-
const data = await parseBody(output.body, context);
|
|
1814
|
-
let contents = {};
|
|
1815
|
-
contents = de_DescribeIndexResponse(data, context);
|
|
1816
|
-
const response = {
|
|
1817
|
-
$metadata: deserializeMetadata(output),
|
|
1818
|
-
...contents,
|
|
1819
|
-
};
|
|
1820
|
-
return response;
|
|
1821
|
-
};
|
|
1822
|
-
exports.de_DescribeIndexCommand = de_DescribeIndexCommand;
|
|
1823
|
-
const de_DescribeIndexCommandError = async (output, context) => {
|
|
1824
|
-
const parsedOutput = {
|
|
1825
|
-
...output,
|
|
1826
|
-
body: await parseErrorBody(output.body, context),
|
|
1827
|
-
};
|
|
1828
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1829
|
-
switch (errorCode) {
|
|
1830
|
-
case "AccessDeniedException":
|
|
1831
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
1832
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1833
|
-
case "InternalServerException":
|
|
1834
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
1835
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1836
|
-
case "ResourceNotFoundException":
|
|
1837
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
1838
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1839
|
-
case "ThrottlingException":
|
|
1840
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
1841
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1842
|
-
case "ValidationException":
|
|
1843
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
1844
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1845
|
-
default:
|
|
1846
|
-
const parsedBody = parsedOutput.body;
|
|
1847
|
-
return throwDefaultError({
|
|
1848
|
-
output,
|
|
1849
|
-
parsedBody,
|
|
1850
|
-
errorCode,
|
|
1851
|
-
});
|
|
1852
|
-
}
|
|
1853
|
-
};
|
|
1854
|
-
const de_DescribePrincipalMappingCommand = async (output, context) => {
|
|
1855
|
-
if (output.statusCode >= 300) {
|
|
1856
|
-
return de_DescribePrincipalMappingCommandError(output, context);
|
|
1857
|
-
}
|
|
1858
|
-
const data = await parseBody(output.body, context);
|
|
1859
|
-
let contents = {};
|
|
1860
|
-
contents = de_DescribePrincipalMappingResponse(data, context);
|
|
1861
|
-
const response = {
|
|
1862
|
-
$metadata: deserializeMetadata(output),
|
|
1863
|
-
...contents,
|
|
1864
|
-
};
|
|
1865
|
-
return response;
|
|
1866
|
-
};
|
|
1867
|
-
exports.de_DescribePrincipalMappingCommand = de_DescribePrincipalMappingCommand;
|
|
1868
|
-
const de_DescribePrincipalMappingCommandError = async (output, context) => {
|
|
1869
|
-
const parsedOutput = {
|
|
1870
|
-
...output,
|
|
1871
|
-
body: await parseErrorBody(output.body, context),
|
|
1872
|
-
};
|
|
1873
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1874
|
-
switch (errorCode) {
|
|
1875
|
-
case "AccessDeniedException":
|
|
1876
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
1877
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1878
|
-
case "InternalServerException":
|
|
1879
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
1880
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1881
|
-
case "ResourceNotFoundException":
|
|
1882
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
1883
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1884
|
-
case "ThrottlingException":
|
|
1885
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
1886
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1887
|
-
case "ValidationException":
|
|
1888
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
1889
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1890
|
-
default:
|
|
1891
|
-
const parsedBody = parsedOutput.body;
|
|
1892
|
-
return throwDefaultError({
|
|
1893
|
-
output,
|
|
1894
|
-
parsedBody,
|
|
1895
|
-
errorCode,
|
|
1896
|
-
});
|
|
1897
|
-
}
|
|
1898
|
-
};
|
|
1899
|
-
const de_DescribeQuerySuggestionsBlockListCommand = async (output, context) => {
|
|
1900
|
-
if (output.statusCode >= 300) {
|
|
1901
|
-
return de_DescribeQuerySuggestionsBlockListCommandError(output, context);
|
|
1902
|
-
}
|
|
1903
|
-
const data = await parseBody(output.body, context);
|
|
1904
|
-
let contents = {};
|
|
1905
|
-
contents = de_DescribeQuerySuggestionsBlockListResponse(data, context);
|
|
1906
|
-
const response = {
|
|
1907
|
-
$metadata: deserializeMetadata(output),
|
|
1908
|
-
...contents,
|
|
1909
|
-
};
|
|
1910
|
-
return response;
|
|
1911
|
-
};
|
|
1912
|
-
exports.de_DescribeQuerySuggestionsBlockListCommand = de_DescribeQuerySuggestionsBlockListCommand;
|
|
1913
|
-
const de_DescribeQuerySuggestionsBlockListCommandError = async (output, context) => {
|
|
1914
|
-
const parsedOutput = {
|
|
1915
|
-
...output,
|
|
1916
|
-
body: await parseErrorBody(output.body, context),
|
|
1917
|
-
};
|
|
1918
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1919
|
-
switch (errorCode) {
|
|
1920
|
-
case "AccessDeniedException":
|
|
1921
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
1922
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1923
|
-
case "InternalServerException":
|
|
1924
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
1925
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1926
|
-
case "ResourceNotFoundException":
|
|
1927
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
1928
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1929
|
-
case "ThrottlingException":
|
|
1930
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
1931
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1932
|
-
case "ValidationException":
|
|
1933
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
1934
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1935
|
-
default:
|
|
1936
|
-
const parsedBody = parsedOutput.body;
|
|
1937
|
-
return throwDefaultError({
|
|
1938
|
-
output,
|
|
1939
|
-
parsedBody,
|
|
1940
|
-
errorCode,
|
|
1941
|
-
});
|
|
1942
|
-
}
|
|
1943
|
-
};
|
|
1944
|
-
const de_DescribeQuerySuggestionsConfigCommand = async (output, context) => {
|
|
1945
|
-
if (output.statusCode >= 300) {
|
|
1946
|
-
return de_DescribeQuerySuggestionsConfigCommandError(output, context);
|
|
1947
|
-
}
|
|
1948
|
-
const data = await parseBody(output.body, context);
|
|
1949
|
-
let contents = {};
|
|
1950
|
-
contents = de_DescribeQuerySuggestionsConfigResponse(data, context);
|
|
1951
|
-
const response = {
|
|
1952
|
-
$metadata: deserializeMetadata(output),
|
|
1953
|
-
...contents,
|
|
1954
|
-
};
|
|
1955
|
-
return response;
|
|
1956
|
-
};
|
|
1957
|
-
exports.de_DescribeQuerySuggestionsConfigCommand = de_DescribeQuerySuggestionsConfigCommand;
|
|
1958
|
-
const de_DescribeQuerySuggestionsConfigCommandError = async (output, context) => {
|
|
1959
|
-
const parsedOutput = {
|
|
1960
|
-
...output,
|
|
1961
|
-
body: await parseErrorBody(output.body, context),
|
|
1962
|
-
};
|
|
1963
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1964
|
-
switch (errorCode) {
|
|
1965
|
-
case "AccessDeniedException":
|
|
1966
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
1967
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1968
|
-
case "InternalServerException":
|
|
1969
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
1970
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1971
|
-
case "ResourceNotFoundException":
|
|
1972
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
1973
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1974
|
-
case "ThrottlingException":
|
|
1975
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
1976
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1977
|
-
case "ValidationException":
|
|
1978
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
1979
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1980
|
-
default:
|
|
1981
|
-
const parsedBody = parsedOutput.body;
|
|
1982
|
-
return throwDefaultError({
|
|
1983
|
-
output,
|
|
1984
|
-
parsedBody,
|
|
1985
|
-
errorCode,
|
|
1986
|
-
});
|
|
1987
|
-
}
|
|
1988
|
-
};
|
|
1989
|
-
const de_DescribeThesaurusCommand = async (output, context) => {
|
|
1990
|
-
if (output.statusCode >= 300) {
|
|
1991
|
-
return de_DescribeThesaurusCommandError(output, context);
|
|
1992
|
-
}
|
|
1993
|
-
const data = await parseBody(output.body, context);
|
|
1994
|
-
let contents = {};
|
|
1995
|
-
contents = de_DescribeThesaurusResponse(data, context);
|
|
1996
|
-
const response = {
|
|
1997
|
-
$metadata: deserializeMetadata(output),
|
|
1998
|
-
...contents,
|
|
1999
|
-
};
|
|
2000
|
-
return response;
|
|
2001
|
-
};
|
|
2002
|
-
exports.de_DescribeThesaurusCommand = de_DescribeThesaurusCommand;
|
|
2003
|
-
const de_DescribeThesaurusCommandError = async (output, context) => {
|
|
2004
|
-
const parsedOutput = {
|
|
2005
|
-
...output,
|
|
2006
|
-
body: await parseErrorBody(output.body, context),
|
|
2007
|
-
};
|
|
2008
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2009
|
-
switch (errorCode) {
|
|
2010
|
-
case "AccessDeniedException":
|
|
2011
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2012
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2013
|
-
case "InternalServerException":
|
|
2014
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
2015
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2016
|
-
case "ResourceNotFoundException":
|
|
2017
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2018
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2019
|
-
case "ThrottlingException":
|
|
2020
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
2021
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2022
|
-
case "ValidationException":
|
|
2023
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
2024
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2025
|
-
default:
|
|
2026
|
-
const parsedBody = parsedOutput.body;
|
|
2027
|
-
return throwDefaultError({
|
|
2028
|
-
output,
|
|
2029
|
-
parsedBody,
|
|
2030
|
-
errorCode,
|
|
2031
|
-
});
|
|
2032
|
-
}
|
|
2033
|
-
};
|
|
2034
|
-
const de_DisassociateEntitiesFromExperienceCommand = async (output, context) => {
|
|
2035
|
-
if (output.statusCode >= 300) {
|
|
2036
|
-
return de_DisassociateEntitiesFromExperienceCommandError(output, context);
|
|
2037
|
-
}
|
|
2038
|
-
const data = await parseBody(output.body, context);
|
|
2039
|
-
let contents = {};
|
|
2040
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2041
|
-
const response = {
|
|
2042
|
-
$metadata: deserializeMetadata(output),
|
|
2043
|
-
...contents,
|
|
2044
|
-
};
|
|
2045
|
-
return response;
|
|
2046
|
-
};
|
|
2047
|
-
exports.de_DisassociateEntitiesFromExperienceCommand = de_DisassociateEntitiesFromExperienceCommand;
|
|
2048
|
-
const de_DisassociateEntitiesFromExperienceCommandError = async (output, context) => {
|
|
2049
|
-
const parsedOutput = {
|
|
2050
|
-
...output,
|
|
2051
|
-
body: await parseErrorBody(output.body, context),
|
|
2052
|
-
};
|
|
2053
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2054
|
-
switch (errorCode) {
|
|
2055
|
-
case "AccessDeniedException":
|
|
2056
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2057
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2058
|
-
case "InternalServerException":
|
|
2059
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
2060
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2061
|
-
case "ResourceNotFoundException":
|
|
2062
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2063
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2064
|
-
case "ThrottlingException":
|
|
2065
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
2066
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2067
|
-
case "ValidationException":
|
|
2068
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
2069
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2070
|
-
default:
|
|
2071
|
-
const parsedBody = parsedOutput.body;
|
|
2072
|
-
return throwDefaultError({
|
|
2073
|
-
output,
|
|
2074
|
-
parsedBody,
|
|
2075
|
-
errorCode,
|
|
2076
|
-
});
|
|
2077
|
-
}
|
|
2078
|
-
};
|
|
2079
|
-
const de_DisassociatePersonasFromEntitiesCommand = async (output, context) => {
|
|
2080
|
-
if (output.statusCode >= 300) {
|
|
2081
|
-
return de_DisassociatePersonasFromEntitiesCommandError(output, context);
|
|
2082
|
-
}
|
|
2083
|
-
const data = await parseBody(output.body, context);
|
|
2084
|
-
let contents = {};
|
|
2085
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2086
|
-
const response = {
|
|
2087
|
-
$metadata: deserializeMetadata(output),
|
|
2088
|
-
...contents,
|
|
2089
|
-
};
|
|
2090
|
-
return response;
|
|
2091
|
-
};
|
|
2092
|
-
exports.de_DisassociatePersonasFromEntitiesCommand = de_DisassociatePersonasFromEntitiesCommand;
|
|
2093
|
-
const de_DisassociatePersonasFromEntitiesCommandError = async (output, context) => {
|
|
2094
|
-
const parsedOutput = {
|
|
2095
|
-
...output,
|
|
2096
|
-
body: await parseErrorBody(output.body, context),
|
|
2097
|
-
};
|
|
2098
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2099
|
-
switch (errorCode) {
|
|
2100
|
-
case "AccessDeniedException":
|
|
2101
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2102
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2103
|
-
case "InternalServerException":
|
|
2104
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
2105
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2106
|
-
case "ResourceNotFoundException":
|
|
2107
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2108
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2109
|
-
case "ThrottlingException":
|
|
2110
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
2111
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2112
|
-
case "ValidationException":
|
|
2113
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
2114
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2115
|
-
default:
|
|
2116
|
-
const parsedBody = parsedOutput.body;
|
|
2117
|
-
return throwDefaultError({
|
|
2118
|
-
output,
|
|
2119
|
-
parsedBody,
|
|
2120
|
-
errorCode,
|
|
2121
|
-
});
|
|
2122
|
-
}
|
|
2123
|
-
};
|
|
2124
|
-
const de_GetQuerySuggestionsCommand = async (output, context) => {
|
|
2125
|
-
if (output.statusCode >= 300) {
|
|
2126
|
-
return de_GetQuerySuggestionsCommandError(output, context);
|
|
2127
|
-
}
|
|
2128
|
-
const data = await parseBody(output.body, context);
|
|
2129
|
-
let contents = {};
|
|
2130
|
-
contents = de_GetQuerySuggestionsResponse(data, context);
|
|
2131
|
-
const response = {
|
|
2132
|
-
$metadata: deserializeMetadata(output),
|
|
2133
|
-
...contents,
|
|
2134
|
-
};
|
|
2135
|
-
return response;
|
|
2136
|
-
};
|
|
2137
|
-
exports.de_GetQuerySuggestionsCommand = de_GetQuerySuggestionsCommand;
|
|
2138
|
-
const de_GetQuerySuggestionsCommandError = async (output, context) => {
|
|
2139
|
-
const parsedOutput = {
|
|
2140
|
-
...output,
|
|
2141
|
-
body: await parseErrorBody(output.body, context),
|
|
2142
|
-
};
|
|
2143
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2144
|
-
switch (errorCode) {
|
|
2145
|
-
case "AccessDeniedException":
|
|
2146
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2147
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2148
|
-
case "ConflictException":
|
|
2149
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
2150
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2151
|
-
case "InternalServerException":
|
|
2152
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
2153
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2154
|
-
case "ResourceNotFoundException":
|
|
2155
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2156
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2157
|
-
case "ServiceQuotaExceededException":
|
|
2158
|
-
case "com.amazonaws.kendra#ServiceQuotaExceededException":
|
|
2159
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2160
|
-
case "ThrottlingException":
|
|
2161
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
2162
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2163
|
-
case "ValidationException":
|
|
2164
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
2165
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2166
|
-
default:
|
|
2167
|
-
const parsedBody = parsedOutput.body;
|
|
2168
|
-
return throwDefaultError({
|
|
2169
|
-
output,
|
|
2170
|
-
parsedBody,
|
|
2171
|
-
errorCode,
|
|
2172
|
-
});
|
|
2173
|
-
}
|
|
2174
|
-
};
|
|
2175
|
-
const de_GetSnapshotsCommand = async (output, context) => {
|
|
2176
|
-
if (output.statusCode >= 300) {
|
|
2177
|
-
return de_GetSnapshotsCommandError(output, context);
|
|
2178
|
-
}
|
|
2179
|
-
const data = await parseBody(output.body, context);
|
|
2180
|
-
let contents = {};
|
|
2181
|
-
contents = de_GetSnapshotsResponse(data, context);
|
|
2182
|
-
const response = {
|
|
2183
|
-
$metadata: deserializeMetadata(output),
|
|
2184
|
-
...contents,
|
|
2185
|
-
};
|
|
2186
|
-
return response;
|
|
2187
|
-
};
|
|
2188
|
-
exports.de_GetSnapshotsCommand = de_GetSnapshotsCommand;
|
|
2189
|
-
const de_GetSnapshotsCommandError = async (output, context) => {
|
|
2190
|
-
const parsedOutput = {
|
|
2191
|
-
...output,
|
|
2192
|
-
body: await parseErrorBody(output.body, context),
|
|
2193
|
-
};
|
|
2194
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2195
|
-
switch (errorCode) {
|
|
2196
|
-
case "AccessDeniedException":
|
|
2197
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2198
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2199
|
-
case "InternalServerException":
|
|
2200
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
2201
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2202
|
-
case "InvalidRequestException":
|
|
2203
|
-
case "com.amazonaws.kendra#InvalidRequestException":
|
|
2204
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2205
|
-
case "ResourceNotFoundException":
|
|
2206
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2207
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2208
|
-
default:
|
|
2209
|
-
const parsedBody = parsedOutput.body;
|
|
2210
|
-
return throwDefaultError({
|
|
2211
|
-
output,
|
|
2212
|
-
parsedBody,
|
|
2213
|
-
errorCode,
|
|
2214
|
-
});
|
|
2215
|
-
}
|
|
2216
|
-
};
|
|
2217
|
-
const de_ListAccessControlConfigurationsCommand = async (output, context) => {
|
|
2218
|
-
if (output.statusCode >= 300) {
|
|
2219
|
-
return de_ListAccessControlConfigurationsCommandError(output, context);
|
|
2220
|
-
}
|
|
2221
|
-
const data = await parseBody(output.body, context);
|
|
2222
|
-
let contents = {};
|
|
2223
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2224
|
-
const response = {
|
|
2225
|
-
$metadata: deserializeMetadata(output),
|
|
2226
|
-
...contents,
|
|
2227
|
-
};
|
|
2228
|
-
return response;
|
|
2229
|
-
};
|
|
2230
|
-
exports.de_ListAccessControlConfigurationsCommand = de_ListAccessControlConfigurationsCommand;
|
|
2231
|
-
const de_ListAccessControlConfigurationsCommandError = async (output, context) => {
|
|
2232
|
-
const parsedOutput = {
|
|
2233
|
-
...output,
|
|
2234
|
-
body: await parseErrorBody(output.body, context),
|
|
2235
|
-
};
|
|
2236
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2237
|
-
switch (errorCode) {
|
|
2238
|
-
case "AccessDeniedException":
|
|
2239
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2240
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2241
|
-
case "InternalServerException":
|
|
2242
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
2243
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2244
|
-
case "ResourceNotFoundException":
|
|
2245
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2246
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2247
|
-
case "ThrottlingException":
|
|
2248
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
2249
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2250
|
-
case "ValidationException":
|
|
2251
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
2252
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2253
|
-
default:
|
|
2254
|
-
const parsedBody = parsedOutput.body;
|
|
2255
|
-
return throwDefaultError({
|
|
2256
|
-
output,
|
|
2257
|
-
parsedBody,
|
|
2258
|
-
errorCode,
|
|
2259
|
-
});
|
|
2260
|
-
}
|
|
2261
|
-
};
|
|
2262
|
-
const de_ListDataSourcesCommand = async (output, context) => {
|
|
2263
|
-
if (output.statusCode >= 300) {
|
|
2264
|
-
return de_ListDataSourcesCommandError(output, context);
|
|
2265
|
-
}
|
|
2266
|
-
const data = await parseBody(output.body, context);
|
|
2267
|
-
let contents = {};
|
|
2268
|
-
contents = de_ListDataSourcesResponse(data, context);
|
|
2269
|
-
const response = {
|
|
2270
|
-
$metadata: deserializeMetadata(output),
|
|
2271
|
-
...contents,
|
|
2272
|
-
};
|
|
2273
|
-
return response;
|
|
2274
|
-
};
|
|
2275
|
-
exports.de_ListDataSourcesCommand = de_ListDataSourcesCommand;
|
|
2276
|
-
const de_ListDataSourcesCommandError = async (output, context) => {
|
|
2277
|
-
const parsedOutput = {
|
|
2278
|
-
...output,
|
|
2279
|
-
body: await parseErrorBody(output.body, context),
|
|
2280
|
-
};
|
|
2281
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2282
|
-
switch (errorCode) {
|
|
2283
|
-
case "AccessDeniedException":
|
|
2284
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2285
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2286
|
-
case "InternalServerException":
|
|
2287
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
2288
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2289
|
-
case "ResourceNotFoundException":
|
|
2290
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2291
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2292
|
-
case "ThrottlingException":
|
|
2293
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
2294
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2295
|
-
case "ValidationException":
|
|
2296
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
2297
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2298
|
-
default:
|
|
2299
|
-
const parsedBody = parsedOutput.body;
|
|
2300
|
-
return throwDefaultError({
|
|
2301
|
-
output,
|
|
2302
|
-
parsedBody,
|
|
2303
|
-
errorCode,
|
|
2304
|
-
});
|
|
2305
|
-
}
|
|
2306
|
-
};
|
|
2307
|
-
const de_ListDataSourceSyncJobsCommand = async (output, context) => {
|
|
2308
|
-
if (output.statusCode >= 300) {
|
|
2309
|
-
return de_ListDataSourceSyncJobsCommandError(output, context);
|
|
2310
|
-
}
|
|
2311
|
-
const data = await parseBody(output.body, context);
|
|
2312
|
-
let contents = {};
|
|
2313
|
-
contents = de_ListDataSourceSyncJobsResponse(data, context);
|
|
2314
|
-
const response = {
|
|
2315
|
-
$metadata: deserializeMetadata(output),
|
|
2316
|
-
...contents,
|
|
2317
|
-
};
|
|
2318
|
-
return response;
|
|
2319
|
-
};
|
|
2320
|
-
exports.de_ListDataSourceSyncJobsCommand = de_ListDataSourceSyncJobsCommand;
|
|
2321
|
-
const de_ListDataSourceSyncJobsCommandError = async (output, context) => {
|
|
2322
|
-
const parsedOutput = {
|
|
2323
|
-
...output,
|
|
2324
|
-
body: await parseErrorBody(output.body, context),
|
|
2325
|
-
};
|
|
2326
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2327
|
-
switch (errorCode) {
|
|
2328
|
-
case "AccessDeniedException":
|
|
2329
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2330
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2331
|
-
case "ConflictException":
|
|
2332
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
2333
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2334
|
-
case "InternalServerException":
|
|
2335
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
2336
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2337
|
-
case "ResourceNotFoundException":
|
|
2338
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2339
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2340
|
-
case "ThrottlingException":
|
|
2341
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
2342
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2343
|
-
case "ValidationException":
|
|
2344
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
2345
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2346
|
-
default:
|
|
2347
|
-
const parsedBody = parsedOutput.body;
|
|
2348
|
-
return throwDefaultError({
|
|
2349
|
-
output,
|
|
2350
|
-
parsedBody,
|
|
2351
|
-
errorCode,
|
|
2352
|
-
});
|
|
2353
|
-
}
|
|
2354
|
-
};
|
|
2355
|
-
const de_ListEntityPersonasCommand = async (output, context) => {
|
|
2356
|
-
if (output.statusCode >= 300) {
|
|
2357
|
-
return de_ListEntityPersonasCommandError(output, context);
|
|
2358
|
-
}
|
|
2359
|
-
const data = await parseBody(output.body, context);
|
|
2360
|
-
let contents = {};
|
|
2361
|
-
contents = de_ListEntityPersonasResponse(data, context);
|
|
2362
|
-
const response = {
|
|
2363
|
-
$metadata: deserializeMetadata(output),
|
|
2364
|
-
...contents,
|
|
2365
|
-
};
|
|
2366
|
-
return response;
|
|
2367
|
-
};
|
|
2368
|
-
exports.de_ListEntityPersonasCommand = de_ListEntityPersonasCommand;
|
|
2369
|
-
const de_ListEntityPersonasCommandError = async (output, context) => {
|
|
2370
|
-
const parsedOutput = {
|
|
2371
|
-
...output,
|
|
2372
|
-
body: await parseErrorBody(output.body, context),
|
|
2373
|
-
};
|
|
2374
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2375
|
-
switch (errorCode) {
|
|
2376
|
-
case "AccessDeniedException":
|
|
2377
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2378
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2379
|
-
case "InternalServerException":
|
|
2380
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
2381
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2382
|
-
case "ResourceNotFoundException":
|
|
2383
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2384
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2385
|
-
case "ThrottlingException":
|
|
2386
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
2387
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2388
|
-
case "ValidationException":
|
|
2389
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
2390
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2391
|
-
default:
|
|
2392
|
-
const parsedBody = parsedOutput.body;
|
|
2393
|
-
return throwDefaultError({
|
|
2394
|
-
output,
|
|
2395
|
-
parsedBody,
|
|
2396
|
-
errorCode,
|
|
2397
|
-
});
|
|
2398
|
-
}
|
|
2399
|
-
};
|
|
2400
|
-
const de_ListExperienceEntitiesCommand = async (output, context) => {
|
|
2401
|
-
if (output.statusCode >= 300) {
|
|
2402
|
-
return de_ListExperienceEntitiesCommandError(output, context);
|
|
2403
|
-
}
|
|
2404
|
-
const data = await parseBody(output.body, context);
|
|
2405
|
-
let contents = {};
|
|
2406
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2407
|
-
const response = {
|
|
2408
|
-
$metadata: deserializeMetadata(output),
|
|
2409
|
-
...contents,
|
|
2410
|
-
};
|
|
2411
|
-
return response;
|
|
2412
|
-
};
|
|
2413
|
-
exports.de_ListExperienceEntitiesCommand = de_ListExperienceEntitiesCommand;
|
|
2414
|
-
const de_ListExperienceEntitiesCommandError = async (output, context) => {
|
|
2415
|
-
const parsedOutput = {
|
|
2416
|
-
...output,
|
|
2417
|
-
body: await parseErrorBody(output.body, context),
|
|
2418
|
-
};
|
|
2419
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2420
|
-
switch (errorCode) {
|
|
2421
|
-
case "AccessDeniedException":
|
|
2422
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2423
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2424
|
-
case "InternalServerException":
|
|
2425
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
2426
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2427
|
-
case "ResourceNotFoundException":
|
|
2428
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2429
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2430
|
-
case "ThrottlingException":
|
|
2431
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
2432
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2433
|
-
case "ValidationException":
|
|
2434
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
2435
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2436
|
-
default:
|
|
2437
|
-
const parsedBody = parsedOutput.body;
|
|
2438
|
-
return throwDefaultError({
|
|
2439
|
-
output,
|
|
2440
|
-
parsedBody,
|
|
2441
|
-
errorCode,
|
|
2442
|
-
});
|
|
2443
|
-
}
|
|
2444
|
-
};
|
|
2445
|
-
const de_ListExperiencesCommand = async (output, context) => {
|
|
2446
|
-
if (output.statusCode >= 300) {
|
|
2447
|
-
return de_ListExperiencesCommandError(output, context);
|
|
2448
|
-
}
|
|
2449
|
-
const data = await parseBody(output.body, context);
|
|
2450
|
-
let contents = {};
|
|
2451
|
-
contents = de_ListExperiencesResponse(data, context);
|
|
2452
|
-
const response = {
|
|
2453
|
-
$metadata: deserializeMetadata(output),
|
|
2454
|
-
...contents,
|
|
2455
|
-
};
|
|
2456
|
-
return response;
|
|
2457
|
-
};
|
|
2458
|
-
exports.de_ListExperiencesCommand = de_ListExperiencesCommand;
|
|
2459
|
-
const de_ListExperiencesCommandError = async (output, context) => {
|
|
2460
|
-
const parsedOutput = {
|
|
2461
|
-
...output,
|
|
2462
|
-
body: await parseErrorBody(output.body, context),
|
|
2463
|
-
};
|
|
2464
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2465
|
-
switch (errorCode) {
|
|
2466
|
-
case "AccessDeniedException":
|
|
2467
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2468
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2469
|
-
case "InternalServerException":
|
|
2470
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
2471
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2472
|
-
case "ResourceNotFoundException":
|
|
2473
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2474
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2475
|
-
case "ThrottlingException":
|
|
2476
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
2477
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2478
|
-
case "ValidationException":
|
|
2479
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
2480
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2481
|
-
default:
|
|
2482
|
-
const parsedBody = parsedOutput.body;
|
|
2483
|
-
return throwDefaultError({
|
|
2484
|
-
output,
|
|
2485
|
-
parsedBody,
|
|
2486
|
-
errorCode,
|
|
2487
|
-
});
|
|
2488
|
-
}
|
|
2489
|
-
};
|
|
2490
|
-
const de_ListFaqsCommand = async (output, context) => {
|
|
2491
|
-
if (output.statusCode >= 300) {
|
|
2492
|
-
return de_ListFaqsCommandError(output, context);
|
|
2493
|
-
}
|
|
2494
|
-
const data = await parseBody(output.body, context);
|
|
2495
|
-
let contents = {};
|
|
2496
|
-
contents = de_ListFaqsResponse(data, context);
|
|
2497
|
-
const response = {
|
|
2498
|
-
$metadata: deserializeMetadata(output),
|
|
2499
|
-
...contents,
|
|
2500
|
-
};
|
|
2501
|
-
return response;
|
|
2502
|
-
};
|
|
2503
|
-
exports.de_ListFaqsCommand = de_ListFaqsCommand;
|
|
2504
|
-
const de_ListFaqsCommandError = async (output, context) => {
|
|
2505
|
-
const parsedOutput = {
|
|
2506
|
-
...output,
|
|
2507
|
-
body: await parseErrorBody(output.body, context),
|
|
2508
|
-
};
|
|
2509
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2510
|
-
switch (errorCode) {
|
|
2511
|
-
case "AccessDeniedException":
|
|
2512
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2513
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2514
|
-
case "InternalServerException":
|
|
2515
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
2516
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2517
|
-
case "ResourceNotFoundException":
|
|
2518
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2519
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2520
|
-
case "ThrottlingException":
|
|
2521
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
2522
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2523
|
-
case "ValidationException":
|
|
2524
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
2525
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2526
|
-
default:
|
|
2527
|
-
const parsedBody = parsedOutput.body;
|
|
2528
|
-
return throwDefaultError({
|
|
2529
|
-
output,
|
|
2530
|
-
parsedBody,
|
|
2531
|
-
errorCode,
|
|
2532
|
-
});
|
|
2533
|
-
}
|
|
2534
|
-
};
|
|
2535
|
-
const de_ListFeaturedResultsSetsCommand = async (output, context) => {
|
|
2536
|
-
if (output.statusCode >= 300) {
|
|
2537
|
-
return de_ListFeaturedResultsSetsCommandError(output, context);
|
|
2538
|
-
}
|
|
2539
|
-
const data = await parseBody(output.body, context);
|
|
2540
|
-
let contents = {};
|
|
2541
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2542
|
-
const response = {
|
|
2543
|
-
$metadata: deserializeMetadata(output),
|
|
2544
|
-
...contents,
|
|
2545
|
-
};
|
|
2546
|
-
return response;
|
|
2547
|
-
};
|
|
2548
|
-
exports.de_ListFeaturedResultsSetsCommand = de_ListFeaturedResultsSetsCommand;
|
|
2549
|
-
const de_ListFeaturedResultsSetsCommandError = async (output, context) => {
|
|
2550
|
-
const parsedOutput = {
|
|
2551
|
-
...output,
|
|
2552
|
-
body: await parseErrorBody(output.body, context),
|
|
2553
|
-
};
|
|
2554
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2555
|
-
switch (errorCode) {
|
|
2556
|
-
case "AccessDeniedException":
|
|
2557
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2558
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2559
|
-
case "InternalServerException":
|
|
2560
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
2561
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2562
|
-
case "ResourceNotFoundException":
|
|
2563
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2564
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2565
|
-
case "ThrottlingException":
|
|
2566
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
2567
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2568
|
-
case "ValidationException":
|
|
2569
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
2570
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2571
|
-
default:
|
|
2572
|
-
const parsedBody = parsedOutput.body;
|
|
2573
|
-
return throwDefaultError({
|
|
2574
|
-
output,
|
|
2575
|
-
parsedBody,
|
|
2576
|
-
errorCode,
|
|
2577
|
-
});
|
|
2578
|
-
}
|
|
2579
|
-
};
|
|
2580
|
-
const de_ListGroupsOlderThanOrderingIdCommand = async (output, context) => {
|
|
2581
|
-
if (output.statusCode >= 300) {
|
|
2582
|
-
return de_ListGroupsOlderThanOrderingIdCommandError(output, context);
|
|
2583
|
-
}
|
|
2584
|
-
const data = await parseBody(output.body, context);
|
|
2585
|
-
let contents = {};
|
|
2586
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2587
|
-
const response = {
|
|
2588
|
-
$metadata: deserializeMetadata(output),
|
|
2589
|
-
...contents,
|
|
2590
|
-
};
|
|
2591
|
-
return response;
|
|
2592
|
-
};
|
|
2593
|
-
exports.de_ListGroupsOlderThanOrderingIdCommand = de_ListGroupsOlderThanOrderingIdCommand;
|
|
2594
|
-
const de_ListGroupsOlderThanOrderingIdCommandError = async (output, context) => {
|
|
2595
|
-
const parsedOutput = {
|
|
2596
|
-
...output,
|
|
2597
|
-
body: await parseErrorBody(output.body, context),
|
|
2598
|
-
};
|
|
2599
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2600
|
-
switch (errorCode) {
|
|
2601
|
-
case "AccessDeniedException":
|
|
2602
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2603
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2604
|
-
case "ConflictException":
|
|
2605
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
2606
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2607
|
-
case "InternalServerException":
|
|
2608
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
2609
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2610
|
-
case "ResourceNotFoundException":
|
|
2611
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2612
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2613
|
-
case "ThrottlingException":
|
|
2614
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
2615
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2616
|
-
case "ValidationException":
|
|
2617
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
2618
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2619
|
-
default:
|
|
2620
|
-
const parsedBody = parsedOutput.body;
|
|
2621
|
-
return throwDefaultError({
|
|
2622
|
-
output,
|
|
2623
|
-
parsedBody,
|
|
2624
|
-
errorCode,
|
|
2625
|
-
});
|
|
2626
|
-
}
|
|
2627
|
-
};
|
|
2628
|
-
const de_ListIndicesCommand = async (output, context) => {
|
|
2629
|
-
if (output.statusCode >= 300) {
|
|
2630
|
-
return de_ListIndicesCommandError(output, context);
|
|
2631
|
-
}
|
|
2632
|
-
const data = await parseBody(output.body, context);
|
|
2633
|
-
let contents = {};
|
|
2634
|
-
contents = de_ListIndicesResponse(data, context);
|
|
2635
|
-
const response = {
|
|
2636
|
-
$metadata: deserializeMetadata(output),
|
|
2637
|
-
...contents,
|
|
2638
|
-
};
|
|
2639
|
-
return response;
|
|
2640
|
-
};
|
|
2641
|
-
exports.de_ListIndicesCommand = de_ListIndicesCommand;
|
|
2642
|
-
const de_ListIndicesCommandError = async (output, context) => {
|
|
2643
|
-
const parsedOutput = {
|
|
2644
|
-
...output,
|
|
2645
|
-
body: await parseErrorBody(output.body, context),
|
|
2646
|
-
};
|
|
2647
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2648
|
-
switch (errorCode) {
|
|
2649
|
-
case "AccessDeniedException":
|
|
2650
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2651
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2652
|
-
case "InternalServerException":
|
|
2653
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
2654
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2655
|
-
case "ThrottlingException":
|
|
2656
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
2657
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2658
|
-
case "ValidationException":
|
|
2659
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
2660
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2661
|
-
default:
|
|
2662
|
-
const parsedBody = parsedOutput.body;
|
|
2663
|
-
return throwDefaultError({
|
|
2664
|
-
output,
|
|
2665
|
-
parsedBody,
|
|
2666
|
-
errorCode,
|
|
2667
|
-
});
|
|
2668
|
-
}
|
|
2669
|
-
};
|
|
2670
|
-
const de_ListQuerySuggestionsBlockListsCommand = async (output, context) => {
|
|
2671
|
-
if (output.statusCode >= 300) {
|
|
2672
|
-
return de_ListQuerySuggestionsBlockListsCommandError(output, context);
|
|
2673
|
-
}
|
|
2674
|
-
const data = await parseBody(output.body, context);
|
|
2675
|
-
let contents = {};
|
|
2676
|
-
contents = de_ListQuerySuggestionsBlockListsResponse(data, context);
|
|
2677
|
-
const response = {
|
|
2678
|
-
$metadata: deserializeMetadata(output),
|
|
2679
|
-
...contents,
|
|
2680
|
-
};
|
|
2681
|
-
return response;
|
|
2682
|
-
};
|
|
2683
|
-
exports.de_ListQuerySuggestionsBlockListsCommand = de_ListQuerySuggestionsBlockListsCommand;
|
|
2684
|
-
const de_ListQuerySuggestionsBlockListsCommandError = async (output, context) => {
|
|
2685
|
-
const parsedOutput = {
|
|
2686
|
-
...output,
|
|
2687
|
-
body: await parseErrorBody(output.body, context),
|
|
2688
|
-
};
|
|
2689
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2690
|
-
switch (errorCode) {
|
|
2691
|
-
case "AccessDeniedException":
|
|
2692
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2693
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2694
|
-
case "InternalServerException":
|
|
2695
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
2696
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2697
|
-
case "ResourceNotFoundException":
|
|
2698
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2699
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2700
|
-
case "ThrottlingException":
|
|
2701
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
2702
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2703
|
-
case "ValidationException":
|
|
2704
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
2705
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2706
|
-
default:
|
|
2707
|
-
const parsedBody = parsedOutput.body;
|
|
2708
|
-
return throwDefaultError({
|
|
2709
|
-
output,
|
|
2710
|
-
parsedBody,
|
|
2711
|
-
errorCode,
|
|
2712
|
-
});
|
|
2713
|
-
}
|
|
2714
|
-
};
|
|
2715
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2716
|
-
if (output.statusCode >= 300) {
|
|
2717
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
2718
|
-
}
|
|
2719
|
-
const data = await parseBody(output.body, context);
|
|
2720
|
-
let contents = {};
|
|
2721
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2722
|
-
const response = {
|
|
2723
|
-
$metadata: deserializeMetadata(output),
|
|
2724
|
-
...contents,
|
|
2725
|
-
};
|
|
2726
|
-
return response;
|
|
2727
|
-
};
|
|
2728
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
2729
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
2730
|
-
const parsedOutput = {
|
|
2731
|
-
...output,
|
|
2732
|
-
body: await parseErrorBody(output.body, context),
|
|
2733
|
-
};
|
|
2734
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2735
|
-
switch (errorCode) {
|
|
2736
|
-
case "AccessDeniedException":
|
|
2737
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2738
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2739
|
-
case "InternalServerException":
|
|
2740
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
2741
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2742
|
-
case "ResourceUnavailableException":
|
|
2743
|
-
case "com.amazonaws.kendra#ResourceUnavailableException":
|
|
2744
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
2745
|
-
case "ThrottlingException":
|
|
2746
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
2747
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2748
|
-
case "ValidationException":
|
|
2749
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
2750
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2751
|
-
default:
|
|
2752
|
-
const parsedBody = parsedOutput.body;
|
|
2753
|
-
return throwDefaultError({
|
|
2754
|
-
output,
|
|
2755
|
-
parsedBody,
|
|
2756
|
-
errorCode,
|
|
2757
|
-
});
|
|
2758
|
-
}
|
|
2759
|
-
};
|
|
2760
|
-
const de_ListThesauriCommand = async (output, context) => {
|
|
2761
|
-
if (output.statusCode >= 300) {
|
|
2762
|
-
return de_ListThesauriCommandError(output, context);
|
|
2763
|
-
}
|
|
2764
|
-
const data = await parseBody(output.body, context);
|
|
2765
|
-
let contents = {};
|
|
2766
|
-
contents = de_ListThesauriResponse(data, context);
|
|
2767
|
-
const response = {
|
|
2768
|
-
$metadata: deserializeMetadata(output),
|
|
2769
|
-
...contents,
|
|
2770
|
-
};
|
|
2771
|
-
return response;
|
|
2772
|
-
};
|
|
2773
|
-
exports.de_ListThesauriCommand = de_ListThesauriCommand;
|
|
2774
|
-
const de_ListThesauriCommandError = async (output, context) => {
|
|
2775
|
-
const parsedOutput = {
|
|
2776
|
-
...output,
|
|
2777
|
-
body: await parseErrorBody(output.body, context),
|
|
2778
|
-
};
|
|
2779
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2780
|
-
switch (errorCode) {
|
|
2781
|
-
case "AccessDeniedException":
|
|
2782
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2783
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2784
|
-
case "InternalServerException":
|
|
2785
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
2786
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2787
|
-
case "ResourceNotFoundException":
|
|
2788
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2789
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2790
|
-
case "ThrottlingException":
|
|
2791
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
2792
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2793
|
-
case "ValidationException":
|
|
2794
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
2795
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2796
|
-
default:
|
|
2797
|
-
const parsedBody = parsedOutput.body;
|
|
2798
|
-
return throwDefaultError({
|
|
2799
|
-
output,
|
|
2800
|
-
parsedBody,
|
|
2801
|
-
errorCode,
|
|
2802
|
-
});
|
|
2803
|
-
}
|
|
2804
|
-
};
|
|
2805
|
-
const de_PutPrincipalMappingCommand = async (output, context) => {
|
|
2806
|
-
if (output.statusCode >= 300) {
|
|
2807
|
-
return de_PutPrincipalMappingCommandError(output, context);
|
|
2808
|
-
}
|
|
2809
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2810
|
-
const response = {
|
|
2811
|
-
$metadata: deserializeMetadata(output),
|
|
2812
|
-
};
|
|
2813
|
-
return response;
|
|
2814
|
-
};
|
|
2815
|
-
exports.de_PutPrincipalMappingCommand = de_PutPrincipalMappingCommand;
|
|
2816
|
-
const de_PutPrincipalMappingCommandError = async (output, context) => {
|
|
2817
|
-
const parsedOutput = {
|
|
2818
|
-
...output,
|
|
2819
|
-
body: await parseErrorBody(output.body, context),
|
|
2820
|
-
};
|
|
2821
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2822
|
-
switch (errorCode) {
|
|
2823
|
-
case "AccessDeniedException":
|
|
2824
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2825
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2826
|
-
case "ConflictException":
|
|
2827
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
2828
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2829
|
-
case "InternalServerException":
|
|
2830
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
2831
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2832
|
-
case "ResourceNotFoundException":
|
|
2833
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2834
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2835
|
-
case "ServiceQuotaExceededException":
|
|
2836
|
-
case "com.amazonaws.kendra#ServiceQuotaExceededException":
|
|
2837
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2838
|
-
case "ThrottlingException":
|
|
2839
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
2840
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2841
|
-
case "ValidationException":
|
|
2842
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
2843
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2844
|
-
default:
|
|
2845
|
-
const parsedBody = parsedOutput.body;
|
|
2846
|
-
return throwDefaultError({
|
|
2847
|
-
output,
|
|
2848
|
-
parsedBody,
|
|
2849
|
-
errorCode,
|
|
2850
|
-
});
|
|
2851
|
-
}
|
|
2852
|
-
};
|
|
2853
|
-
const de_QueryCommand = async (output, context) => {
|
|
2854
|
-
if (output.statusCode >= 300) {
|
|
2855
|
-
return de_QueryCommandError(output, context);
|
|
2856
|
-
}
|
|
2857
|
-
const data = await parseBody(output.body, context);
|
|
2858
|
-
let contents = {};
|
|
2859
|
-
contents = de_QueryResult(data, context);
|
|
2860
|
-
const response = {
|
|
2861
|
-
$metadata: deserializeMetadata(output),
|
|
2862
|
-
...contents,
|
|
2863
|
-
};
|
|
2864
|
-
return response;
|
|
2865
|
-
};
|
|
2866
|
-
exports.de_QueryCommand = de_QueryCommand;
|
|
2867
|
-
const de_QueryCommandError = async (output, context) => {
|
|
2868
|
-
const parsedOutput = {
|
|
2869
|
-
...output,
|
|
2870
|
-
body: await parseErrorBody(output.body, context),
|
|
2871
|
-
};
|
|
2872
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2873
|
-
switch (errorCode) {
|
|
2874
|
-
case "AccessDeniedException":
|
|
2875
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2876
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2877
|
-
case "ConflictException":
|
|
2878
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
2879
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2880
|
-
case "InternalServerException":
|
|
2881
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
2882
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2883
|
-
case "ResourceNotFoundException":
|
|
2884
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2885
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2886
|
-
case "ServiceQuotaExceededException":
|
|
2887
|
-
case "com.amazonaws.kendra#ServiceQuotaExceededException":
|
|
2888
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2889
|
-
case "ThrottlingException":
|
|
2890
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
2891
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2892
|
-
case "ValidationException":
|
|
2893
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
2894
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2895
|
-
default:
|
|
2896
|
-
const parsedBody = parsedOutput.body;
|
|
2897
|
-
return throwDefaultError({
|
|
2898
|
-
output,
|
|
2899
|
-
parsedBody,
|
|
2900
|
-
errorCode,
|
|
2901
|
-
});
|
|
2902
|
-
}
|
|
2903
|
-
};
|
|
2904
|
-
const de_RetrieveCommand = async (output, context) => {
|
|
2905
|
-
if (output.statusCode >= 300) {
|
|
2906
|
-
return de_RetrieveCommandError(output, context);
|
|
2907
|
-
}
|
|
2908
|
-
const data = await parseBody(output.body, context);
|
|
2909
|
-
let contents = {};
|
|
2910
|
-
contents = de_RetrieveResult(data, context);
|
|
2911
|
-
const response = {
|
|
2912
|
-
$metadata: deserializeMetadata(output),
|
|
2913
|
-
...contents,
|
|
2914
|
-
};
|
|
2915
|
-
return response;
|
|
2916
|
-
};
|
|
2917
|
-
exports.de_RetrieveCommand = de_RetrieveCommand;
|
|
2918
|
-
const de_RetrieveCommandError = async (output, context) => {
|
|
2919
|
-
const parsedOutput = {
|
|
2920
|
-
...output,
|
|
2921
|
-
body: await parseErrorBody(output.body, context),
|
|
2922
|
-
};
|
|
2923
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2924
|
-
switch (errorCode) {
|
|
2925
|
-
case "AccessDeniedException":
|
|
2926
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2927
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2928
|
-
case "ConflictException":
|
|
2929
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
2930
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2931
|
-
case "InternalServerException":
|
|
2932
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
2933
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2934
|
-
case "ResourceNotFoundException":
|
|
2935
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2936
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2937
|
-
case "ServiceQuotaExceededException":
|
|
2938
|
-
case "com.amazonaws.kendra#ServiceQuotaExceededException":
|
|
2939
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2940
|
-
case "ThrottlingException":
|
|
2941
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
2942
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2943
|
-
case "ValidationException":
|
|
2944
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
2945
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2946
|
-
default:
|
|
2947
|
-
const parsedBody = parsedOutput.body;
|
|
2948
|
-
return throwDefaultError({
|
|
2949
|
-
output,
|
|
2950
|
-
parsedBody,
|
|
2951
|
-
errorCode,
|
|
2952
|
-
});
|
|
2953
|
-
}
|
|
2954
|
-
};
|
|
2955
|
-
const de_StartDataSourceSyncJobCommand = async (output, context) => {
|
|
2956
|
-
if (output.statusCode >= 300) {
|
|
2957
|
-
return de_StartDataSourceSyncJobCommandError(output, context);
|
|
2958
|
-
}
|
|
2959
|
-
const data = await parseBody(output.body, context);
|
|
2960
|
-
let contents = {};
|
|
2961
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2962
|
-
const response = {
|
|
2963
|
-
$metadata: deserializeMetadata(output),
|
|
2964
|
-
...contents,
|
|
2965
|
-
};
|
|
2966
|
-
return response;
|
|
2967
|
-
};
|
|
2968
|
-
exports.de_StartDataSourceSyncJobCommand = de_StartDataSourceSyncJobCommand;
|
|
2969
|
-
const de_StartDataSourceSyncJobCommandError = async (output, context) => {
|
|
2970
|
-
const parsedOutput = {
|
|
2971
|
-
...output,
|
|
2972
|
-
body: await parseErrorBody(output.body, context),
|
|
2973
|
-
};
|
|
2974
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2975
|
-
switch (errorCode) {
|
|
2976
|
-
case "AccessDeniedException":
|
|
2977
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2978
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2979
|
-
case "ConflictException":
|
|
2980
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
2981
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2982
|
-
case "InternalServerException":
|
|
2983
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
2984
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2985
|
-
case "ResourceInUseException":
|
|
2986
|
-
case "com.amazonaws.kendra#ResourceInUseException":
|
|
2987
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2988
|
-
case "ResourceNotFoundException":
|
|
2989
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2990
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2991
|
-
case "ThrottlingException":
|
|
2992
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
2993
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2994
|
-
case "ValidationException":
|
|
2995
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
2996
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2997
|
-
default:
|
|
2998
|
-
const parsedBody = parsedOutput.body;
|
|
2999
|
-
return throwDefaultError({
|
|
3000
|
-
output,
|
|
3001
|
-
parsedBody,
|
|
3002
|
-
errorCode,
|
|
3003
|
-
});
|
|
3004
|
-
}
|
|
3005
|
-
};
|
|
3006
|
-
const de_StopDataSourceSyncJobCommand = async (output, context) => {
|
|
3007
|
-
if (output.statusCode >= 300) {
|
|
3008
|
-
return de_StopDataSourceSyncJobCommandError(output, context);
|
|
3009
|
-
}
|
|
3010
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3011
|
-
const response = {
|
|
3012
|
-
$metadata: deserializeMetadata(output),
|
|
3013
|
-
};
|
|
3014
|
-
return response;
|
|
3015
|
-
};
|
|
3016
|
-
exports.de_StopDataSourceSyncJobCommand = de_StopDataSourceSyncJobCommand;
|
|
3017
|
-
const de_StopDataSourceSyncJobCommandError = async (output, context) => {
|
|
3018
|
-
const parsedOutput = {
|
|
3019
|
-
...output,
|
|
3020
|
-
body: await parseErrorBody(output.body, context),
|
|
3021
|
-
};
|
|
3022
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3023
|
-
switch (errorCode) {
|
|
3024
|
-
case "AccessDeniedException":
|
|
3025
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
3026
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3027
|
-
case "InternalServerException":
|
|
3028
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
3029
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3030
|
-
case "ResourceNotFoundException":
|
|
3031
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
3032
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3033
|
-
case "ThrottlingException":
|
|
3034
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
3035
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3036
|
-
case "ValidationException":
|
|
3037
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
3038
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3039
|
-
default:
|
|
3040
|
-
const parsedBody = parsedOutput.body;
|
|
3041
|
-
return throwDefaultError({
|
|
3042
|
-
output,
|
|
3043
|
-
parsedBody,
|
|
3044
|
-
errorCode,
|
|
3045
|
-
});
|
|
3046
|
-
}
|
|
3047
|
-
};
|
|
3048
|
-
const de_SubmitFeedbackCommand = async (output, context) => {
|
|
3049
|
-
if (output.statusCode >= 300) {
|
|
3050
|
-
return de_SubmitFeedbackCommandError(output, context);
|
|
3051
|
-
}
|
|
3052
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3053
|
-
const response = {
|
|
3054
|
-
$metadata: deserializeMetadata(output),
|
|
3055
|
-
};
|
|
3056
|
-
return response;
|
|
3057
|
-
};
|
|
3058
|
-
exports.de_SubmitFeedbackCommand = de_SubmitFeedbackCommand;
|
|
3059
|
-
const de_SubmitFeedbackCommandError = async (output, context) => {
|
|
3060
|
-
const parsedOutput = {
|
|
3061
|
-
...output,
|
|
3062
|
-
body: await parseErrorBody(output.body, context),
|
|
3063
|
-
};
|
|
3064
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3065
|
-
switch (errorCode) {
|
|
3066
|
-
case "AccessDeniedException":
|
|
3067
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
3068
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3069
|
-
case "InternalServerException":
|
|
3070
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
3071
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3072
|
-
case "ResourceNotFoundException":
|
|
3073
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
3074
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3075
|
-
case "ResourceUnavailableException":
|
|
3076
|
-
case "com.amazonaws.kendra#ResourceUnavailableException":
|
|
3077
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
3078
|
-
case "ThrottlingException":
|
|
3079
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
3080
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3081
|
-
case "ValidationException":
|
|
3082
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
3083
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3084
|
-
default:
|
|
3085
|
-
const parsedBody = parsedOutput.body;
|
|
3086
|
-
return throwDefaultError({
|
|
3087
|
-
output,
|
|
3088
|
-
parsedBody,
|
|
3089
|
-
errorCode,
|
|
3090
|
-
});
|
|
3091
|
-
}
|
|
3092
|
-
};
|
|
3093
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
3094
|
-
if (output.statusCode >= 300) {
|
|
3095
|
-
return de_TagResourceCommandError(output, context);
|
|
3096
|
-
}
|
|
3097
|
-
const data = await parseBody(output.body, context);
|
|
3098
|
-
let contents = {};
|
|
3099
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3100
|
-
const response = {
|
|
3101
|
-
$metadata: deserializeMetadata(output),
|
|
3102
|
-
...contents,
|
|
3103
|
-
};
|
|
3104
|
-
return response;
|
|
3105
|
-
};
|
|
3106
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
3107
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
3108
|
-
const parsedOutput = {
|
|
3109
|
-
...output,
|
|
3110
|
-
body: await parseErrorBody(output.body, context),
|
|
3111
|
-
};
|
|
3112
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3113
|
-
switch (errorCode) {
|
|
3114
|
-
case "AccessDeniedException":
|
|
3115
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
3116
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3117
|
-
case "InternalServerException":
|
|
3118
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
3119
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3120
|
-
case "ResourceUnavailableException":
|
|
3121
|
-
case "com.amazonaws.kendra#ResourceUnavailableException":
|
|
3122
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
3123
|
-
case "ThrottlingException":
|
|
3124
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
3125
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3126
|
-
case "ValidationException":
|
|
3127
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
3128
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3129
|
-
default:
|
|
3130
|
-
const parsedBody = parsedOutput.body;
|
|
3131
|
-
return throwDefaultError({
|
|
3132
|
-
output,
|
|
3133
|
-
parsedBody,
|
|
3134
|
-
errorCode,
|
|
3135
|
-
});
|
|
3136
|
-
}
|
|
3137
|
-
};
|
|
3138
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
3139
|
-
if (output.statusCode >= 300) {
|
|
3140
|
-
return de_UntagResourceCommandError(output, context);
|
|
3141
|
-
}
|
|
3142
|
-
const data = await parseBody(output.body, context);
|
|
3143
|
-
let contents = {};
|
|
3144
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3145
|
-
const response = {
|
|
3146
|
-
$metadata: deserializeMetadata(output),
|
|
3147
|
-
...contents,
|
|
3148
|
-
};
|
|
3149
|
-
return response;
|
|
3150
|
-
};
|
|
3151
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
3152
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
3153
|
-
const parsedOutput = {
|
|
3154
|
-
...output,
|
|
3155
|
-
body: await parseErrorBody(output.body, context),
|
|
3156
|
-
};
|
|
3157
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3158
|
-
switch (errorCode) {
|
|
3159
|
-
case "AccessDeniedException":
|
|
3160
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
3161
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3162
|
-
case "InternalServerException":
|
|
3163
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
3164
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3165
|
-
case "ResourceUnavailableException":
|
|
3166
|
-
case "com.amazonaws.kendra#ResourceUnavailableException":
|
|
3167
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
3168
|
-
case "ThrottlingException":
|
|
3169
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
3170
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3171
|
-
case "ValidationException":
|
|
3172
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
3173
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3174
|
-
default:
|
|
3175
|
-
const parsedBody = parsedOutput.body;
|
|
3176
|
-
return throwDefaultError({
|
|
3177
|
-
output,
|
|
3178
|
-
parsedBody,
|
|
3179
|
-
errorCode,
|
|
3180
|
-
});
|
|
3181
|
-
}
|
|
3182
|
-
};
|
|
3183
|
-
const de_UpdateAccessControlConfigurationCommand = async (output, context) => {
|
|
3184
|
-
if (output.statusCode >= 300) {
|
|
3185
|
-
return de_UpdateAccessControlConfigurationCommandError(output, context);
|
|
3186
|
-
}
|
|
3187
|
-
const data = await parseBody(output.body, context);
|
|
3188
|
-
let contents = {};
|
|
3189
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3190
|
-
const response = {
|
|
3191
|
-
$metadata: deserializeMetadata(output),
|
|
3192
|
-
...contents,
|
|
3193
|
-
};
|
|
3194
|
-
return response;
|
|
3195
|
-
};
|
|
3196
|
-
exports.de_UpdateAccessControlConfigurationCommand = de_UpdateAccessControlConfigurationCommand;
|
|
3197
|
-
const de_UpdateAccessControlConfigurationCommandError = async (output, context) => {
|
|
3198
|
-
const parsedOutput = {
|
|
3199
|
-
...output,
|
|
3200
|
-
body: await parseErrorBody(output.body, context),
|
|
3201
|
-
};
|
|
3202
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3203
|
-
switch (errorCode) {
|
|
3204
|
-
case "AccessDeniedException":
|
|
3205
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
3206
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3207
|
-
case "ConflictException":
|
|
3208
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
3209
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3210
|
-
case "InternalServerException":
|
|
3211
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
3212
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3213
|
-
case "ResourceNotFoundException":
|
|
3214
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
3215
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3216
|
-
case "ServiceQuotaExceededException":
|
|
3217
|
-
case "com.amazonaws.kendra#ServiceQuotaExceededException":
|
|
3218
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3219
|
-
case "ThrottlingException":
|
|
3220
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
3221
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3222
|
-
case "ValidationException":
|
|
3223
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
3224
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3225
|
-
default:
|
|
3226
|
-
const parsedBody = parsedOutput.body;
|
|
3227
|
-
return throwDefaultError({
|
|
3228
|
-
output,
|
|
3229
|
-
parsedBody,
|
|
3230
|
-
errorCode,
|
|
3231
|
-
});
|
|
3232
|
-
}
|
|
3233
|
-
};
|
|
3234
|
-
const de_UpdateDataSourceCommand = async (output, context) => {
|
|
3235
|
-
if (output.statusCode >= 300) {
|
|
3236
|
-
return de_UpdateDataSourceCommandError(output, context);
|
|
3237
|
-
}
|
|
3238
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3239
|
-
const response = {
|
|
3240
|
-
$metadata: deserializeMetadata(output),
|
|
3241
|
-
};
|
|
3242
|
-
return response;
|
|
3243
|
-
};
|
|
3244
|
-
exports.de_UpdateDataSourceCommand = de_UpdateDataSourceCommand;
|
|
3245
|
-
const de_UpdateDataSourceCommandError = async (output, context) => {
|
|
3246
|
-
const parsedOutput = {
|
|
3247
|
-
...output,
|
|
3248
|
-
body: await parseErrorBody(output.body, context),
|
|
3249
|
-
};
|
|
3250
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3251
|
-
switch (errorCode) {
|
|
3252
|
-
case "AccessDeniedException":
|
|
3253
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
3254
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3255
|
-
case "ConflictException":
|
|
3256
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
3257
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3258
|
-
case "InternalServerException":
|
|
3259
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
3260
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3261
|
-
case "ResourceNotFoundException":
|
|
3262
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
3263
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3264
|
-
case "ThrottlingException":
|
|
3265
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
3266
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3267
|
-
case "ValidationException":
|
|
3268
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
3269
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3270
|
-
default:
|
|
3271
|
-
const parsedBody = parsedOutput.body;
|
|
3272
|
-
return throwDefaultError({
|
|
3273
|
-
output,
|
|
3274
|
-
parsedBody,
|
|
3275
|
-
errorCode,
|
|
3276
|
-
});
|
|
3277
|
-
}
|
|
3278
|
-
};
|
|
3279
|
-
const de_UpdateExperienceCommand = async (output, context) => {
|
|
3280
|
-
if (output.statusCode >= 300) {
|
|
3281
|
-
return de_UpdateExperienceCommandError(output, context);
|
|
3282
|
-
}
|
|
3283
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3284
|
-
const response = {
|
|
3285
|
-
$metadata: deserializeMetadata(output),
|
|
3286
|
-
};
|
|
3287
|
-
return response;
|
|
3288
|
-
};
|
|
3289
|
-
exports.de_UpdateExperienceCommand = de_UpdateExperienceCommand;
|
|
3290
|
-
const de_UpdateExperienceCommandError = async (output, context) => {
|
|
3291
|
-
const parsedOutput = {
|
|
3292
|
-
...output,
|
|
3293
|
-
body: await parseErrorBody(output.body, context),
|
|
3294
|
-
};
|
|
3295
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3296
|
-
switch (errorCode) {
|
|
3297
|
-
case "AccessDeniedException":
|
|
3298
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
3299
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3300
|
-
case "ConflictException":
|
|
3301
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
3302
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3303
|
-
case "InternalServerException":
|
|
3304
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
3305
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3306
|
-
case "ResourceNotFoundException":
|
|
3307
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
3308
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3309
|
-
case "ThrottlingException":
|
|
3310
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
3311
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3312
|
-
case "ValidationException":
|
|
3313
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
3314
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3315
|
-
default:
|
|
3316
|
-
const parsedBody = parsedOutput.body;
|
|
3317
|
-
return throwDefaultError({
|
|
3318
|
-
output,
|
|
3319
|
-
parsedBody,
|
|
3320
|
-
errorCode,
|
|
3321
|
-
});
|
|
3322
|
-
}
|
|
3323
|
-
};
|
|
3324
|
-
const de_UpdateFeaturedResultsSetCommand = async (output, context) => {
|
|
3325
|
-
if (output.statusCode >= 300) {
|
|
3326
|
-
return de_UpdateFeaturedResultsSetCommandError(output, context);
|
|
3327
|
-
}
|
|
3328
|
-
const data = await parseBody(output.body, context);
|
|
3329
|
-
let contents = {};
|
|
3330
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3331
|
-
const response = {
|
|
3332
|
-
$metadata: deserializeMetadata(output),
|
|
3333
|
-
...contents,
|
|
3334
|
-
};
|
|
3335
|
-
return response;
|
|
3336
|
-
};
|
|
3337
|
-
exports.de_UpdateFeaturedResultsSetCommand = de_UpdateFeaturedResultsSetCommand;
|
|
3338
|
-
const de_UpdateFeaturedResultsSetCommandError = async (output, context) => {
|
|
3339
|
-
const parsedOutput = {
|
|
3340
|
-
...output,
|
|
3341
|
-
body: await parseErrorBody(output.body, context),
|
|
3342
|
-
};
|
|
3343
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3344
|
-
switch (errorCode) {
|
|
3345
|
-
case "AccessDeniedException":
|
|
3346
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
3347
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3348
|
-
case "FeaturedResultsConflictException":
|
|
3349
|
-
case "com.amazonaws.kendra#FeaturedResultsConflictException":
|
|
3350
|
-
throw await de_FeaturedResultsConflictExceptionRes(parsedOutput, context);
|
|
3351
|
-
case "InternalServerException":
|
|
3352
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
3353
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3354
|
-
case "ResourceNotFoundException":
|
|
3355
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
3356
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3357
|
-
case "ThrottlingException":
|
|
3358
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
3359
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3360
|
-
case "ValidationException":
|
|
3361
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
3362
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3363
|
-
default:
|
|
3364
|
-
const parsedBody = parsedOutput.body;
|
|
3365
|
-
return throwDefaultError({
|
|
3366
|
-
output,
|
|
3367
|
-
parsedBody,
|
|
3368
|
-
errorCode,
|
|
3369
|
-
});
|
|
3370
|
-
}
|
|
3371
|
-
};
|
|
3372
|
-
const de_UpdateIndexCommand = async (output, context) => {
|
|
3373
|
-
if (output.statusCode >= 300) {
|
|
3374
|
-
return de_UpdateIndexCommandError(output, context);
|
|
3375
|
-
}
|
|
3376
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3377
|
-
const response = {
|
|
3378
|
-
$metadata: deserializeMetadata(output),
|
|
3379
|
-
};
|
|
3380
|
-
return response;
|
|
3381
|
-
};
|
|
3382
|
-
exports.de_UpdateIndexCommand = de_UpdateIndexCommand;
|
|
3383
|
-
const de_UpdateIndexCommandError = async (output, context) => {
|
|
3384
|
-
const parsedOutput = {
|
|
3385
|
-
...output,
|
|
3386
|
-
body: await parseErrorBody(output.body, context),
|
|
3387
|
-
};
|
|
3388
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3389
|
-
switch (errorCode) {
|
|
3390
|
-
case "AccessDeniedException":
|
|
3391
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
3392
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3393
|
-
case "ConflictException":
|
|
3394
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
3395
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3396
|
-
case "InternalServerException":
|
|
3397
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
3398
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3399
|
-
case "ResourceNotFoundException":
|
|
3400
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
3401
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3402
|
-
case "ServiceQuotaExceededException":
|
|
3403
|
-
case "com.amazonaws.kendra#ServiceQuotaExceededException":
|
|
3404
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3405
|
-
case "ThrottlingException":
|
|
3406
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
3407
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3408
|
-
case "ValidationException":
|
|
3409
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
3410
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3411
|
-
default:
|
|
3412
|
-
const parsedBody = parsedOutput.body;
|
|
3413
|
-
return throwDefaultError({
|
|
3414
|
-
output,
|
|
3415
|
-
parsedBody,
|
|
3416
|
-
errorCode,
|
|
3417
|
-
});
|
|
3418
|
-
}
|
|
3419
|
-
};
|
|
3420
|
-
const de_UpdateQuerySuggestionsBlockListCommand = async (output, context) => {
|
|
3421
|
-
if (output.statusCode >= 300) {
|
|
3422
|
-
return de_UpdateQuerySuggestionsBlockListCommandError(output, context);
|
|
3423
|
-
}
|
|
3424
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3425
|
-
const response = {
|
|
3426
|
-
$metadata: deserializeMetadata(output),
|
|
3427
|
-
};
|
|
3428
|
-
return response;
|
|
3429
|
-
};
|
|
3430
|
-
exports.de_UpdateQuerySuggestionsBlockListCommand = de_UpdateQuerySuggestionsBlockListCommand;
|
|
3431
|
-
const de_UpdateQuerySuggestionsBlockListCommandError = async (output, context) => {
|
|
3432
|
-
const parsedOutput = {
|
|
3433
|
-
...output,
|
|
3434
|
-
body: await parseErrorBody(output.body, context),
|
|
3435
|
-
};
|
|
3436
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3437
|
-
switch (errorCode) {
|
|
3438
|
-
case "AccessDeniedException":
|
|
3439
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
3440
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3441
|
-
case "ConflictException":
|
|
3442
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
3443
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3444
|
-
case "InternalServerException":
|
|
3445
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
3446
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3447
|
-
case "ResourceNotFoundException":
|
|
3448
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
3449
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3450
|
-
case "ThrottlingException":
|
|
3451
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
3452
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3453
|
-
case "ValidationException":
|
|
3454
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
3455
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3456
|
-
default:
|
|
3457
|
-
const parsedBody = parsedOutput.body;
|
|
3458
|
-
return throwDefaultError({
|
|
3459
|
-
output,
|
|
3460
|
-
parsedBody,
|
|
3461
|
-
errorCode,
|
|
3462
|
-
});
|
|
3463
|
-
}
|
|
3464
|
-
};
|
|
3465
|
-
const de_UpdateQuerySuggestionsConfigCommand = async (output, context) => {
|
|
3466
|
-
if (output.statusCode >= 300) {
|
|
3467
|
-
return de_UpdateQuerySuggestionsConfigCommandError(output, context);
|
|
3468
|
-
}
|
|
3469
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3470
|
-
const response = {
|
|
3471
|
-
$metadata: deserializeMetadata(output),
|
|
3472
|
-
};
|
|
3473
|
-
return response;
|
|
3474
|
-
};
|
|
3475
|
-
exports.de_UpdateQuerySuggestionsConfigCommand = de_UpdateQuerySuggestionsConfigCommand;
|
|
3476
|
-
const de_UpdateQuerySuggestionsConfigCommandError = async (output, context) => {
|
|
3477
|
-
const parsedOutput = {
|
|
3478
|
-
...output,
|
|
3479
|
-
body: await parseErrorBody(output.body, context),
|
|
3480
|
-
};
|
|
3481
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3482
|
-
switch (errorCode) {
|
|
3483
|
-
case "AccessDeniedException":
|
|
3484
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
3485
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3486
|
-
case "ConflictException":
|
|
3487
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
3488
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3489
|
-
case "InternalServerException":
|
|
3490
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
3491
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3492
|
-
case "ResourceNotFoundException":
|
|
3493
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
3494
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3495
|
-
case "ThrottlingException":
|
|
3496
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
3497
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3498
|
-
case "ValidationException":
|
|
3499
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
3500
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3501
|
-
default:
|
|
3502
|
-
const parsedBody = parsedOutput.body;
|
|
3503
|
-
return throwDefaultError({
|
|
3504
|
-
output,
|
|
3505
|
-
parsedBody,
|
|
3506
|
-
errorCode,
|
|
3507
|
-
});
|
|
3508
|
-
}
|
|
3509
|
-
};
|
|
3510
|
-
const de_UpdateThesaurusCommand = async (output, context) => {
|
|
3511
|
-
if (output.statusCode >= 300) {
|
|
3512
|
-
return de_UpdateThesaurusCommandError(output, context);
|
|
3513
|
-
}
|
|
3514
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3515
|
-
const response = {
|
|
3516
|
-
$metadata: deserializeMetadata(output),
|
|
3517
|
-
};
|
|
3518
|
-
return response;
|
|
3519
|
-
};
|
|
3520
|
-
exports.de_UpdateThesaurusCommand = de_UpdateThesaurusCommand;
|
|
3521
|
-
const de_UpdateThesaurusCommandError = async (output, context) => {
|
|
3522
|
-
const parsedOutput = {
|
|
3523
|
-
...output,
|
|
3524
|
-
body: await parseErrorBody(output.body, context),
|
|
3525
|
-
};
|
|
3526
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3527
|
-
switch (errorCode) {
|
|
3528
|
-
case "AccessDeniedException":
|
|
3529
|
-
case "com.amazonaws.kendra#AccessDeniedException":
|
|
3530
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3531
|
-
case "ConflictException":
|
|
3532
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
3533
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3534
|
-
case "InternalServerException":
|
|
3535
|
-
case "com.amazonaws.kendra#InternalServerException":
|
|
3536
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3537
|
-
case "ResourceNotFoundException":
|
|
3538
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
3539
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3540
|
-
case "ThrottlingException":
|
|
3541
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
3542
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3543
|
-
case "ValidationException":
|
|
3544
|
-
case "com.amazonaws.kendra#ValidationException":
|
|
3545
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3546
|
-
default:
|
|
3547
|
-
const parsedBody = parsedOutput.body;
|
|
3548
|
-
return throwDefaultError({
|
|
3549
|
-
output,
|
|
3550
|
-
parsedBody,
|
|
3551
|
-
errorCode,
|
|
3552
|
-
});
|
|
3553
|
-
}
|
|
3554
|
-
};
|
|
3555
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
3556
|
-
const body = parsedOutput.body;
|
|
3557
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3558
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
3559
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3560
|
-
...deserialized,
|
|
3561
|
-
});
|
|
3562
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3563
|
-
};
|
|
3564
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
3565
|
-
const body = parsedOutput.body;
|
|
3566
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3567
|
-
const exception = new models_0_1.ConflictException({
|
|
3568
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3569
|
-
...deserialized,
|
|
3570
|
-
});
|
|
3571
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3572
|
-
};
|
|
3573
|
-
const de_FeaturedResultsConflictExceptionRes = async (parsedOutput, context) => {
|
|
3574
|
-
const body = parsedOutput.body;
|
|
3575
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3576
|
-
const exception = new models_0_1.FeaturedResultsConflictException({
|
|
3577
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3578
|
-
...deserialized,
|
|
3579
|
-
});
|
|
3580
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3581
|
-
};
|
|
3582
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
3583
|
-
const body = parsedOutput.body;
|
|
3584
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3585
|
-
const exception = new models_0_1.InternalServerException({
|
|
3586
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3587
|
-
...deserialized,
|
|
3588
|
-
});
|
|
3589
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3590
|
-
};
|
|
3591
|
-
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
3592
|
-
const body = parsedOutput.body;
|
|
3593
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3594
|
-
const exception = new models_0_1.InvalidRequestException({
|
|
3595
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3596
|
-
...deserialized,
|
|
3597
|
-
});
|
|
3598
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3599
|
-
};
|
|
3600
|
-
const de_ResourceAlreadyExistExceptionRes = async (parsedOutput, context) => {
|
|
3601
|
-
const body = parsedOutput.body;
|
|
3602
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3603
|
-
const exception = new models_0_1.ResourceAlreadyExistException({
|
|
3604
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3605
|
-
...deserialized,
|
|
3606
|
-
});
|
|
3607
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3608
|
-
};
|
|
3609
|
-
const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
|
|
3610
|
-
const body = parsedOutput.body;
|
|
3611
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3612
|
-
const exception = new models_1_1.ResourceInUseException({
|
|
3613
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3614
|
-
...deserialized,
|
|
3615
|
-
});
|
|
3616
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3617
|
-
};
|
|
3618
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3619
|
-
const body = parsedOutput.body;
|
|
3620
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3621
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
3622
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3623
|
-
...deserialized,
|
|
3624
|
-
});
|
|
3625
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3626
|
-
};
|
|
3627
|
-
const de_ResourceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
3628
|
-
const body = parsedOutput.body;
|
|
3629
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3630
|
-
const exception = new models_0_1.ResourceUnavailableException({
|
|
3631
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3632
|
-
...deserialized,
|
|
3633
|
-
});
|
|
3634
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3635
|
-
};
|
|
3636
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
3637
|
-
const body = parsedOutput.body;
|
|
3638
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3639
|
-
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
3640
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3641
|
-
...deserialized,
|
|
3642
|
-
});
|
|
3643
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3644
|
-
};
|
|
3645
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
3646
|
-
const body = parsedOutput.body;
|
|
3647
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3648
|
-
const exception = new models_0_1.ThrottlingException({
|
|
3649
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3650
|
-
...deserialized,
|
|
3651
|
-
});
|
|
3652
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3653
|
-
};
|
|
3654
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
3655
|
-
const body = parsedOutput.body;
|
|
3656
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3657
|
-
const exception = new models_0_1.ValidationException({
|
|
3658
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3659
|
-
...deserialized,
|
|
3660
|
-
});
|
|
3661
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3662
|
-
};
|
|
3663
|
-
const se_AttributeFilter = (input, context) => {
|
|
3664
|
-
return (0, smithy_client_1.take)(input, {
|
|
3665
|
-
AndAllFilters: (_) => se_AttributeFilterList(_, context),
|
|
3666
|
-
ContainsAll: (_) => se_DocumentAttribute(_, context),
|
|
3667
|
-
ContainsAny: (_) => se_DocumentAttribute(_, context),
|
|
3668
|
-
EqualsTo: (_) => se_DocumentAttribute(_, context),
|
|
3669
|
-
GreaterThan: (_) => se_DocumentAttribute(_, context),
|
|
3670
|
-
GreaterThanOrEquals: (_) => se_DocumentAttribute(_, context),
|
|
3671
|
-
LessThan: (_) => se_DocumentAttribute(_, context),
|
|
3672
|
-
LessThanOrEquals: (_) => se_DocumentAttribute(_, context),
|
|
3673
|
-
NotFilter: (_) => se_AttributeFilter(_, context),
|
|
3674
|
-
OrAllFilters: (_) => se_AttributeFilterList(_, context),
|
|
3675
|
-
});
|
|
3676
|
-
};
|
|
3677
|
-
const se_AttributeFilterList = (input, context) => {
|
|
3678
|
-
return input
|
|
3679
|
-
.filter((e) => e != null)
|
|
3680
|
-
.map((entry) => {
|
|
3681
|
-
return se_AttributeFilter(entry, context);
|
|
3682
|
-
});
|
|
3683
|
-
};
|
|
3684
|
-
const se_AttributeSuggestionsGetConfig = (input, context) => {
|
|
3685
|
-
return (0, smithy_client_1.take)(input, {
|
|
3686
|
-
AdditionalResponseAttributes: smithy_client_1._json,
|
|
3687
|
-
AttributeFilter: (_) => se_AttributeFilter(_, context),
|
|
3688
|
-
SuggestionAttributes: smithy_client_1._json,
|
|
3689
|
-
UserContext: smithy_client_1._json,
|
|
3690
|
-
});
|
|
3691
|
-
};
|
|
3692
|
-
const se_BatchGetDocumentStatusRequest = (input, context) => {
|
|
3693
|
-
return (0, smithy_client_1.take)(input, {
|
|
3694
|
-
DocumentInfoList: (_) => se_DocumentInfoList(_, context),
|
|
3695
|
-
IndexId: [],
|
|
3696
|
-
});
|
|
3697
|
-
};
|
|
3698
|
-
const se_BatchPutDocumentRequest = (input, context) => {
|
|
3699
|
-
return (0, smithy_client_1.take)(input, {
|
|
3700
|
-
CustomDocumentEnrichmentConfiguration: (_) => se_CustomDocumentEnrichmentConfiguration(_, context),
|
|
3701
|
-
Documents: (_) => se_DocumentList(_, context),
|
|
3702
|
-
IndexId: [],
|
|
3703
|
-
RoleArn: [],
|
|
3704
|
-
});
|
|
3705
|
-
};
|
|
3706
|
-
const se_ClickFeedback = (input, context) => {
|
|
3707
|
-
return (0, smithy_client_1.take)(input, {
|
|
3708
|
-
ClickTime: (_) => Math.round(_.getTime() / 1000),
|
|
3709
|
-
ResultId: [],
|
|
3710
|
-
});
|
|
3711
|
-
};
|
|
3712
|
-
const se_ClickFeedbackList = (input, context) => {
|
|
3713
|
-
return input
|
|
3714
|
-
.filter((e) => e != null)
|
|
3715
|
-
.map((entry) => {
|
|
3716
|
-
return se_ClickFeedback(entry, context);
|
|
3717
|
-
});
|
|
3718
|
-
};
|
|
3719
|
-
const se_CreateAccessControlConfigurationRequest = (input, context) => {
|
|
3720
|
-
return (0, smithy_client_1.take)(input, {
|
|
3721
|
-
AccessControlList: smithy_client_1._json,
|
|
3722
|
-
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
3723
|
-
Description: [],
|
|
3724
|
-
HierarchicalAccessControlList: smithy_client_1._json,
|
|
3725
|
-
IndexId: [],
|
|
3726
|
-
Name: [],
|
|
3727
|
-
});
|
|
3728
|
-
};
|
|
3729
|
-
const se_CreateDataSourceRequest = (input, context) => {
|
|
3730
|
-
return (0, smithy_client_1.take)(input, {
|
|
3731
|
-
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
3732
|
-
Configuration: (_) => se_DataSourceConfiguration(_, context),
|
|
3733
|
-
CustomDocumentEnrichmentConfiguration: (_) => se_CustomDocumentEnrichmentConfiguration(_, context),
|
|
3734
|
-
Description: [],
|
|
3735
|
-
IndexId: [],
|
|
3736
|
-
LanguageCode: [],
|
|
3737
|
-
Name: [],
|
|
3738
|
-
RoleArn: [],
|
|
3739
|
-
Schedule: [],
|
|
3740
|
-
Tags: smithy_client_1._json,
|
|
3741
|
-
Type: [],
|
|
3742
|
-
VpcConfiguration: smithy_client_1._json,
|
|
3743
|
-
});
|
|
3744
|
-
};
|
|
3745
|
-
const se_CreateExperienceRequest = (input, context) => {
|
|
3746
|
-
return (0, smithy_client_1.take)(input, {
|
|
3747
|
-
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
3748
|
-
Configuration: smithy_client_1._json,
|
|
3749
|
-
Description: [],
|
|
3750
|
-
IndexId: [],
|
|
3751
|
-
Name: [],
|
|
3752
|
-
RoleArn: [],
|
|
3753
|
-
});
|
|
3754
|
-
};
|
|
3755
|
-
const se_CreateFaqRequest = (input, context) => {
|
|
3756
|
-
return (0, smithy_client_1.take)(input, {
|
|
3757
|
-
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
3758
|
-
Description: [],
|
|
3759
|
-
FileFormat: [],
|
|
3760
|
-
IndexId: [],
|
|
3761
|
-
LanguageCode: [],
|
|
3762
|
-
Name: [],
|
|
3763
|
-
RoleArn: [],
|
|
3764
|
-
S3Path: smithy_client_1._json,
|
|
3765
|
-
Tags: smithy_client_1._json,
|
|
3766
|
-
});
|
|
3767
|
-
};
|
|
3768
|
-
const se_CreateIndexRequest = (input, context) => {
|
|
3769
|
-
return (0, smithy_client_1.take)(input, {
|
|
3770
|
-
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
3771
|
-
Description: [],
|
|
3772
|
-
Edition: [],
|
|
3773
|
-
Name: [],
|
|
3774
|
-
RoleArn: [],
|
|
3775
|
-
ServerSideEncryptionConfiguration: smithy_client_1._json,
|
|
3776
|
-
Tags: smithy_client_1._json,
|
|
3777
|
-
UserContextPolicy: [],
|
|
3778
|
-
UserGroupResolutionConfiguration: smithy_client_1._json,
|
|
3779
|
-
UserTokenConfigurations: smithy_client_1._json,
|
|
3780
|
-
});
|
|
3781
|
-
};
|
|
3782
|
-
const se_CreateQuerySuggestionsBlockListRequest = (input, context) => {
|
|
3783
|
-
return (0, smithy_client_1.take)(input, {
|
|
3784
|
-
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
3785
|
-
Description: [],
|
|
3786
|
-
IndexId: [],
|
|
3787
|
-
Name: [],
|
|
3788
|
-
RoleArn: [],
|
|
3789
|
-
SourceS3Path: smithy_client_1._json,
|
|
3790
|
-
Tags: smithy_client_1._json,
|
|
3791
|
-
});
|
|
3792
|
-
};
|
|
3793
|
-
const se_CreateThesaurusRequest = (input, context) => {
|
|
3794
|
-
return (0, smithy_client_1.take)(input, {
|
|
3795
|
-
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
3796
|
-
Description: [],
|
|
3797
|
-
IndexId: [],
|
|
3798
|
-
Name: [],
|
|
3799
|
-
RoleArn: [],
|
|
3800
|
-
SourceS3Path: smithy_client_1._json,
|
|
3801
|
-
Tags: smithy_client_1._json,
|
|
3802
|
-
});
|
|
3803
|
-
};
|
|
3804
|
-
const se_CustomDocumentEnrichmentConfiguration = (input, context) => {
|
|
3805
|
-
return (0, smithy_client_1.take)(input, {
|
|
3806
|
-
InlineConfigurations: (_) => se_InlineCustomDocumentEnrichmentConfigurationList(_, context),
|
|
3807
|
-
PostExtractionHookConfiguration: (_) => se_HookConfiguration(_, context),
|
|
3808
|
-
PreExtractionHookConfiguration: (_) => se_HookConfiguration(_, context),
|
|
3809
|
-
RoleArn: [],
|
|
3810
|
-
});
|
|
3811
|
-
};
|
|
3812
|
-
const se_DataSourceConfiguration = (input, context) => {
|
|
3813
|
-
return (0, smithy_client_1.take)(input, {
|
|
3814
|
-
AlfrescoConfiguration: smithy_client_1._json,
|
|
3815
|
-
BoxConfiguration: smithy_client_1._json,
|
|
3816
|
-
ConfluenceConfiguration: smithy_client_1._json,
|
|
3817
|
-
DatabaseConfiguration: smithy_client_1._json,
|
|
3818
|
-
FsxConfiguration: smithy_client_1._json,
|
|
3819
|
-
GitHubConfiguration: smithy_client_1._json,
|
|
3820
|
-
GoogleDriveConfiguration: smithy_client_1._json,
|
|
3821
|
-
JiraConfiguration: smithy_client_1._json,
|
|
3822
|
-
OneDriveConfiguration: smithy_client_1._json,
|
|
3823
|
-
QuipConfiguration: smithy_client_1._json,
|
|
3824
|
-
S3Configuration: smithy_client_1._json,
|
|
3825
|
-
SalesforceConfiguration: smithy_client_1._json,
|
|
3826
|
-
ServiceNowConfiguration: smithy_client_1._json,
|
|
3827
|
-
SharePointConfiguration: smithy_client_1._json,
|
|
3828
|
-
SlackConfiguration: smithy_client_1._json,
|
|
3829
|
-
TemplateConfiguration: (_) => se_TemplateConfiguration(_, context),
|
|
3830
|
-
WebCrawlerConfiguration: (_) => se_WebCrawlerConfiguration(_, context),
|
|
3831
|
-
WorkDocsConfiguration: smithy_client_1._json,
|
|
3832
|
-
});
|
|
3833
|
-
};
|
|
3834
|
-
const se_Document = (input, context) => {
|
|
3835
|
-
return (0, smithy_client_1.take)(input, {
|
|
3836
|
-
AccessControlConfigurationId: [],
|
|
3837
|
-
AccessControlList: smithy_client_1._json,
|
|
3838
|
-
Attributes: (_) => se_DocumentAttributeList(_, context),
|
|
3839
|
-
Blob: context.base64Encoder,
|
|
3840
|
-
ContentType: [],
|
|
3841
|
-
HierarchicalAccessControlList: smithy_client_1._json,
|
|
3842
|
-
Id: [],
|
|
3843
|
-
S3Path: smithy_client_1._json,
|
|
3844
|
-
Title: [],
|
|
3845
|
-
});
|
|
3846
|
-
};
|
|
3847
|
-
const se_DocumentAttribute = (input, context) => {
|
|
3848
|
-
return (0, smithy_client_1.take)(input, {
|
|
3849
|
-
Key: [],
|
|
3850
|
-
Value: (_) => se_DocumentAttributeValue(_, context),
|
|
3851
|
-
});
|
|
3852
|
-
};
|
|
3853
|
-
const se_DocumentAttributeCondition = (input, context) => {
|
|
3854
|
-
return (0, smithy_client_1.take)(input, {
|
|
3855
|
-
ConditionDocumentAttributeKey: [],
|
|
3856
|
-
ConditionOnValue: (_) => se_DocumentAttributeValue(_, context),
|
|
3857
|
-
Operator: [],
|
|
3858
|
-
});
|
|
3859
|
-
};
|
|
3860
|
-
const se_DocumentAttributeList = (input, context) => {
|
|
3861
|
-
return input
|
|
3862
|
-
.filter((e) => e != null)
|
|
3863
|
-
.map((entry) => {
|
|
3864
|
-
return se_DocumentAttribute(entry, context);
|
|
3865
|
-
});
|
|
3866
|
-
};
|
|
3867
|
-
const se_DocumentAttributeTarget = (input, context) => {
|
|
3868
|
-
return (0, smithy_client_1.take)(input, {
|
|
3869
|
-
TargetDocumentAttributeKey: [],
|
|
3870
|
-
TargetDocumentAttributeValue: (_) => se_DocumentAttributeValue(_, context),
|
|
3871
|
-
TargetDocumentAttributeValueDeletion: [],
|
|
3872
|
-
});
|
|
3873
|
-
};
|
|
3874
|
-
const se_DocumentAttributeValue = (input, context) => {
|
|
3875
|
-
return (0, smithy_client_1.take)(input, {
|
|
3876
|
-
DateValue: (_) => Math.round(_.getTime() / 1000),
|
|
3877
|
-
LongValue: [],
|
|
3878
|
-
StringListValue: smithy_client_1._json,
|
|
3879
|
-
StringValue: [],
|
|
3880
|
-
});
|
|
3881
|
-
};
|
|
3882
|
-
const se_DocumentInfo = (input, context) => {
|
|
3883
|
-
return (0, smithy_client_1.take)(input, {
|
|
3884
|
-
Attributes: (_) => se_DocumentAttributeList(_, context),
|
|
3885
|
-
DocumentId: [],
|
|
3886
|
-
});
|
|
3887
|
-
};
|
|
3888
|
-
const se_DocumentInfoList = (input, context) => {
|
|
3889
|
-
return input
|
|
3890
|
-
.filter((e) => e != null)
|
|
3891
|
-
.map((entry) => {
|
|
3892
|
-
return se_DocumentInfo(entry, context);
|
|
3893
|
-
});
|
|
3894
|
-
};
|
|
3895
|
-
const se_DocumentList = (input, context) => {
|
|
3896
|
-
return input
|
|
3897
|
-
.filter((e) => e != null)
|
|
3898
|
-
.map((entry) => {
|
|
3899
|
-
return se_Document(entry, context);
|
|
3900
|
-
});
|
|
3901
|
-
};
|
|
3902
|
-
const se_Facet = (input, context) => {
|
|
3903
|
-
return (0, smithy_client_1.take)(input, {
|
|
3904
|
-
DocumentAttributeKey: [],
|
|
3905
|
-
Facets: (_) => se_FacetList(_, context),
|
|
3906
|
-
MaxResults: [],
|
|
3907
|
-
});
|
|
3908
|
-
};
|
|
3909
|
-
const se_FacetList = (input, context) => {
|
|
3910
|
-
return input
|
|
3911
|
-
.filter((e) => e != null)
|
|
3912
|
-
.map((entry) => {
|
|
3913
|
-
return se_Facet(entry, context);
|
|
3914
|
-
});
|
|
3915
|
-
};
|
|
3916
|
-
const se_GetQuerySuggestionsRequest = (input, context) => {
|
|
3917
|
-
return (0, smithy_client_1.take)(input, {
|
|
3918
|
-
AttributeSuggestionsConfig: (_) => se_AttributeSuggestionsGetConfig(_, context),
|
|
3919
|
-
IndexId: [],
|
|
3920
|
-
MaxSuggestionsCount: [],
|
|
3921
|
-
QueryText: [],
|
|
3922
|
-
SuggestionTypes: smithy_client_1._json,
|
|
3923
|
-
});
|
|
3924
|
-
};
|
|
3925
|
-
const se_HookConfiguration = (input, context) => {
|
|
3926
|
-
return (0, smithy_client_1.take)(input, {
|
|
3927
|
-
InvocationCondition: (_) => se_DocumentAttributeCondition(_, context),
|
|
3928
|
-
LambdaArn: [],
|
|
3929
|
-
S3Bucket: [],
|
|
3930
|
-
});
|
|
3931
|
-
};
|
|
3932
|
-
const se_InlineCustomDocumentEnrichmentConfiguration = (input, context) => {
|
|
3933
|
-
return (0, smithy_client_1.take)(input, {
|
|
3934
|
-
Condition: (_) => se_DocumentAttributeCondition(_, context),
|
|
3935
|
-
DocumentContentDeletion: [],
|
|
3936
|
-
Target: (_) => se_DocumentAttributeTarget(_, context),
|
|
3937
|
-
});
|
|
3938
|
-
};
|
|
3939
|
-
const se_InlineCustomDocumentEnrichmentConfigurationList = (input, context) => {
|
|
3940
|
-
return input
|
|
3941
|
-
.filter((e) => e != null)
|
|
3942
|
-
.map((entry) => {
|
|
3943
|
-
return se_InlineCustomDocumentEnrichmentConfiguration(entry, context);
|
|
3944
|
-
});
|
|
3945
|
-
};
|
|
3946
|
-
const se_ListDataSourceSyncJobsRequest = (input, context) => {
|
|
3947
|
-
return (0, smithy_client_1.take)(input, {
|
|
3948
|
-
Id: [],
|
|
3949
|
-
IndexId: [],
|
|
3950
|
-
MaxResults: [],
|
|
3951
|
-
NextToken: [],
|
|
3952
|
-
StartTimeFilter: (_) => se_TimeRange(_, context),
|
|
3953
|
-
StatusFilter: [],
|
|
3954
|
-
});
|
|
3955
|
-
};
|
|
3956
|
-
const se_QueryRequest = (input, context) => {
|
|
3957
|
-
return (0, smithy_client_1.take)(input, {
|
|
3958
|
-
AttributeFilter: (_) => se_AttributeFilter(_, context),
|
|
3959
|
-
CollapseConfiguration: smithy_client_1._json,
|
|
3960
|
-
DocumentRelevanceOverrideConfigurations: smithy_client_1._json,
|
|
3961
|
-
Facets: (_) => se_FacetList(_, context),
|
|
3962
|
-
IndexId: [],
|
|
3963
|
-
PageNumber: [],
|
|
3964
|
-
PageSize: [],
|
|
3965
|
-
QueryResultTypeFilter: [],
|
|
3966
|
-
QueryText: [],
|
|
3967
|
-
RequestedDocumentAttributes: smithy_client_1._json,
|
|
3968
|
-
SortingConfiguration: smithy_client_1._json,
|
|
3969
|
-
SortingConfigurations: smithy_client_1._json,
|
|
3970
|
-
SpellCorrectionConfiguration: smithy_client_1._json,
|
|
3971
|
-
UserContext: smithy_client_1._json,
|
|
3972
|
-
VisitorId: [],
|
|
3973
|
-
});
|
|
3974
|
-
};
|
|
3975
|
-
const se_RetrieveRequest = (input, context) => {
|
|
3976
|
-
return (0, smithy_client_1.take)(input, {
|
|
3977
|
-
AttributeFilter: (_) => se_AttributeFilter(_, context),
|
|
3978
|
-
DocumentRelevanceOverrideConfigurations: smithy_client_1._json,
|
|
3979
|
-
IndexId: [],
|
|
3980
|
-
PageNumber: [],
|
|
3981
|
-
PageSize: [],
|
|
3982
|
-
QueryText: [],
|
|
3983
|
-
RequestedDocumentAttributes: smithy_client_1._json,
|
|
3984
|
-
UserContext: smithy_client_1._json,
|
|
3985
|
-
});
|
|
3986
|
-
};
|
|
3987
|
-
const se_SubmitFeedbackRequest = (input, context) => {
|
|
3988
|
-
return (0, smithy_client_1.take)(input, {
|
|
3989
|
-
ClickFeedbackItems: (_) => se_ClickFeedbackList(_, context),
|
|
3990
|
-
IndexId: [],
|
|
3991
|
-
QueryId: [],
|
|
3992
|
-
RelevanceFeedbackItems: smithy_client_1._json,
|
|
3993
|
-
});
|
|
3994
|
-
};
|
|
3995
|
-
const se_Template = (input, context) => {
|
|
3996
|
-
return input;
|
|
3997
|
-
};
|
|
3998
|
-
const se_TemplateConfiguration = (input, context) => {
|
|
3999
|
-
return (0, smithy_client_1.take)(input, {
|
|
4000
|
-
Template: (_) => se_Template(_, context),
|
|
4001
|
-
});
|
|
4002
|
-
};
|
|
4003
|
-
const se_TimeRange = (input, context) => {
|
|
4004
|
-
return (0, smithy_client_1.take)(input, {
|
|
4005
|
-
EndTime: (_) => Math.round(_.getTime() / 1000),
|
|
4006
|
-
StartTime: (_) => Math.round(_.getTime() / 1000),
|
|
4007
|
-
});
|
|
4008
|
-
};
|
|
4009
|
-
const se_UpdateDataSourceRequest = (input, context) => {
|
|
4010
|
-
return (0, smithy_client_1.take)(input, {
|
|
4011
|
-
Configuration: (_) => se_DataSourceConfiguration(_, context),
|
|
4012
|
-
CustomDocumentEnrichmentConfiguration: (_) => se_CustomDocumentEnrichmentConfiguration(_, context),
|
|
4013
|
-
Description: [],
|
|
4014
|
-
Id: [],
|
|
4015
|
-
IndexId: [],
|
|
4016
|
-
LanguageCode: [],
|
|
4017
|
-
Name: [],
|
|
4018
|
-
RoleArn: [],
|
|
4019
|
-
Schedule: [],
|
|
4020
|
-
VpcConfiguration: smithy_client_1._json,
|
|
4021
|
-
});
|
|
4022
|
-
};
|
|
4023
|
-
const se_WebCrawlerConfiguration = (input, context) => {
|
|
4024
|
-
return (0, smithy_client_1.take)(input, {
|
|
4025
|
-
AuthenticationConfiguration: smithy_client_1._json,
|
|
4026
|
-
CrawlDepth: [],
|
|
4027
|
-
MaxContentSizePerPageInMegaBytes: smithy_client_1.serializeFloat,
|
|
4028
|
-
MaxLinksPerPage: [],
|
|
4029
|
-
MaxUrlsPerMinuteCrawlRate: [],
|
|
4030
|
-
ProxyConfiguration: smithy_client_1._json,
|
|
4031
|
-
UrlExclusionPatterns: smithy_client_1._json,
|
|
4032
|
-
UrlInclusionPatterns: smithy_client_1._json,
|
|
4033
|
-
Urls: smithy_client_1._json,
|
|
4034
|
-
});
|
|
4035
|
-
};
|
|
4036
|
-
const de_CollapsedResultDetail = (output, context) => {
|
|
4037
|
-
return (0, smithy_client_1.take)(output, {
|
|
4038
|
-
DocumentAttribute: (_) => de_DocumentAttribute(_, context),
|
|
4039
|
-
ExpandedResults: (_) => de_ExpandedResultList(_, context),
|
|
4040
|
-
});
|
|
4041
|
-
};
|
|
4042
|
-
const de_CustomDocumentEnrichmentConfiguration = (output, context) => {
|
|
4043
|
-
return (0, smithy_client_1.take)(output, {
|
|
4044
|
-
InlineConfigurations: (_) => de_InlineCustomDocumentEnrichmentConfigurationList(_, context),
|
|
4045
|
-
PostExtractionHookConfiguration: (_) => de_HookConfiguration(_, context),
|
|
4046
|
-
PreExtractionHookConfiguration: (_) => de_HookConfiguration(_, context),
|
|
4047
|
-
RoleArn: smithy_client_1.expectString,
|
|
4048
|
-
});
|
|
4049
|
-
};
|
|
4050
|
-
const de_DataSourceConfiguration = (output, context) => {
|
|
4051
|
-
return (0, smithy_client_1.take)(output, {
|
|
4052
|
-
AlfrescoConfiguration: smithy_client_1._json,
|
|
4053
|
-
BoxConfiguration: smithy_client_1._json,
|
|
4054
|
-
ConfluenceConfiguration: smithy_client_1._json,
|
|
4055
|
-
DatabaseConfiguration: smithy_client_1._json,
|
|
4056
|
-
FsxConfiguration: smithy_client_1._json,
|
|
4057
|
-
GitHubConfiguration: smithy_client_1._json,
|
|
4058
|
-
GoogleDriveConfiguration: smithy_client_1._json,
|
|
4059
|
-
JiraConfiguration: smithy_client_1._json,
|
|
4060
|
-
OneDriveConfiguration: smithy_client_1._json,
|
|
4061
|
-
QuipConfiguration: smithy_client_1._json,
|
|
4062
|
-
S3Configuration: smithy_client_1._json,
|
|
4063
|
-
SalesforceConfiguration: smithy_client_1._json,
|
|
4064
|
-
ServiceNowConfiguration: smithy_client_1._json,
|
|
4065
|
-
SharePointConfiguration: smithy_client_1._json,
|
|
4066
|
-
SlackConfiguration: smithy_client_1._json,
|
|
4067
|
-
TemplateConfiguration: (_) => de_TemplateConfiguration(_, context),
|
|
4068
|
-
WebCrawlerConfiguration: (_) => de_WebCrawlerConfiguration(_, context),
|
|
4069
|
-
WorkDocsConfiguration: smithy_client_1._json,
|
|
4070
|
-
});
|
|
4071
|
-
};
|
|
4072
|
-
const de_DataSourceSummary = (output, context) => {
|
|
4073
|
-
return (0, smithy_client_1.take)(output, {
|
|
4074
|
-
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4075
|
-
Id: smithy_client_1.expectString,
|
|
4076
|
-
LanguageCode: smithy_client_1.expectString,
|
|
4077
|
-
Name: smithy_client_1.expectString,
|
|
4078
|
-
Status: smithy_client_1.expectString,
|
|
4079
|
-
Type: smithy_client_1.expectString,
|
|
4080
|
-
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4081
|
-
});
|
|
4082
|
-
};
|
|
4083
|
-
const de_DataSourceSummaryList = (output, context) => {
|
|
4084
|
-
const retVal = (output || [])
|
|
4085
|
-
.filter((e) => e != null)
|
|
4086
|
-
.map((entry) => {
|
|
4087
|
-
return de_DataSourceSummary(entry, context);
|
|
4088
|
-
});
|
|
4089
|
-
return retVal;
|
|
4090
|
-
};
|
|
4091
|
-
const de_DataSourceSyncJob = (output, context) => {
|
|
4092
|
-
return (0, smithy_client_1.take)(output, {
|
|
4093
|
-
DataSourceErrorCode: smithy_client_1.expectString,
|
|
4094
|
-
EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4095
|
-
ErrorCode: smithy_client_1.expectString,
|
|
4096
|
-
ErrorMessage: smithy_client_1.expectString,
|
|
4097
|
-
ExecutionId: smithy_client_1.expectString,
|
|
4098
|
-
Metrics: smithy_client_1._json,
|
|
4099
|
-
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4100
|
-
Status: smithy_client_1.expectString,
|
|
4101
|
-
});
|
|
4102
|
-
};
|
|
4103
|
-
const de_DataSourceSyncJobHistoryList = (output, context) => {
|
|
4104
|
-
const retVal = (output || [])
|
|
4105
|
-
.filter((e) => e != null)
|
|
4106
|
-
.map((entry) => {
|
|
4107
|
-
return de_DataSourceSyncJob(entry, context);
|
|
4108
|
-
});
|
|
4109
|
-
return retVal;
|
|
4110
|
-
};
|
|
4111
|
-
const de_DescribeDataSourceResponse = (output, context) => {
|
|
4112
|
-
return (0, smithy_client_1.take)(output, {
|
|
4113
|
-
Configuration: (_) => de_DataSourceConfiguration(_, context),
|
|
4114
|
-
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4115
|
-
CustomDocumentEnrichmentConfiguration: (_) => de_CustomDocumentEnrichmentConfiguration(_, context),
|
|
4116
|
-
Description: smithy_client_1.expectString,
|
|
4117
|
-
ErrorMessage: smithy_client_1.expectString,
|
|
4118
|
-
Id: smithy_client_1.expectString,
|
|
4119
|
-
IndexId: smithy_client_1.expectString,
|
|
4120
|
-
LanguageCode: smithy_client_1.expectString,
|
|
4121
|
-
Name: smithy_client_1.expectString,
|
|
4122
|
-
RoleArn: smithy_client_1.expectString,
|
|
4123
|
-
Schedule: smithy_client_1.expectString,
|
|
4124
|
-
Status: smithy_client_1.expectString,
|
|
4125
|
-
Type: smithy_client_1.expectString,
|
|
4126
|
-
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4127
|
-
VpcConfiguration: smithy_client_1._json,
|
|
4128
|
-
});
|
|
4129
|
-
};
|
|
4130
|
-
const de_DescribeExperienceResponse = (output, context) => {
|
|
4131
|
-
return (0, smithy_client_1.take)(output, {
|
|
4132
|
-
Configuration: smithy_client_1._json,
|
|
4133
|
-
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4134
|
-
Description: smithy_client_1.expectString,
|
|
4135
|
-
Endpoints: smithy_client_1._json,
|
|
4136
|
-
ErrorMessage: smithy_client_1.expectString,
|
|
4137
|
-
Id: smithy_client_1.expectString,
|
|
4138
|
-
IndexId: smithy_client_1.expectString,
|
|
4139
|
-
Name: smithy_client_1.expectString,
|
|
4140
|
-
RoleArn: smithy_client_1.expectString,
|
|
4141
|
-
Status: smithy_client_1.expectString,
|
|
4142
|
-
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4143
|
-
});
|
|
4144
|
-
};
|
|
4145
|
-
const de_DescribeFaqResponse = (output, context) => {
|
|
4146
|
-
return (0, smithy_client_1.take)(output, {
|
|
4147
|
-
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4148
|
-
Description: smithy_client_1.expectString,
|
|
4149
|
-
ErrorMessage: smithy_client_1.expectString,
|
|
4150
|
-
FileFormat: smithy_client_1.expectString,
|
|
4151
|
-
Id: smithy_client_1.expectString,
|
|
4152
|
-
IndexId: smithy_client_1.expectString,
|
|
4153
|
-
LanguageCode: smithy_client_1.expectString,
|
|
4154
|
-
Name: smithy_client_1.expectString,
|
|
4155
|
-
RoleArn: smithy_client_1.expectString,
|
|
4156
|
-
S3Path: smithy_client_1._json,
|
|
4157
|
-
Status: smithy_client_1.expectString,
|
|
4158
|
-
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4159
|
-
});
|
|
4160
|
-
};
|
|
4161
|
-
const de_DescribeIndexResponse = (output, context) => {
|
|
4162
|
-
return (0, smithy_client_1.take)(output, {
|
|
4163
|
-
CapacityUnits: smithy_client_1._json,
|
|
4164
|
-
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4165
|
-
Description: smithy_client_1.expectString,
|
|
4166
|
-
DocumentMetadataConfigurations: smithy_client_1._json,
|
|
4167
|
-
Edition: smithy_client_1.expectString,
|
|
4168
|
-
ErrorMessage: smithy_client_1.expectString,
|
|
4169
|
-
Id: smithy_client_1.expectString,
|
|
4170
|
-
IndexStatistics: smithy_client_1._json,
|
|
4171
|
-
Name: smithy_client_1.expectString,
|
|
4172
|
-
RoleArn: smithy_client_1.expectString,
|
|
4173
|
-
ServerSideEncryptionConfiguration: smithy_client_1._json,
|
|
4174
|
-
Status: smithy_client_1.expectString,
|
|
4175
|
-
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4176
|
-
UserContextPolicy: smithy_client_1.expectString,
|
|
4177
|
-
UserGroupResolutionConfiguration: smithy_client_1._json,
|
|
4178
|
-
UserTokenConfigurations: smithy_client_1._json,
|
|
4179
|
-
});
|
|
4180
|
-
};
|
|
4181
|
-
const de_DescribePrincipalMappingResponse = (output, context) => {
|
|
4182
|
-
return (0, smithy_client_1.take)(output, {
|
|
4183
|
-
DataSourceId: smithy_client_1.expectString,
|
|
4184
|
-
GroupId: smithy_client_1.expectString,
|
|
4185
|
-
GroupOrderingIdSummaries: (_) => de_GroupOrderingIdSummaries(_, context),
|
|
4186
|
-
IndexId: smithy_client_1.expectString,
|
|
4187
|
-
});
|
|
4188
|
-
};
|
|
4189
|
-
const de_DescribeQuerySuggestionsBlockListResponse = (output, context) => {
|
|
4190
|
-
return (0, smithy_client_1.take)(output, {
|
|
4191
|
-
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4192
|
-
Description: smithy_client_1.expectString,
|
|
4193
|
-
ErrorMessage: smithy_client_1.expectString,
|
|
4194
|
-
FileSizeBytes: smithy_client_1.expectLong,
|
|
4195
|
-
Id: smithy_client_1.expectString,
|
|
4196
|
-
IndexId: smithy_client_1.expectString,
|
|
4197
|
-
ItemCount: smithy_client_1.expectInt32,
|
|
4198
|
-
Name: smithy_client_1.expectString,
|
|
4199
|
-
RoleArn: smithy_client_1.expectString,
|
|
4200
|
-
SourceS3Path: smithy_client_1._json,
|
|
4201
|
-
Status: smithy_client_1.expectString,
|
|
4202
|
-
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4203
|
-
});
|
|
4204
|
-
};
|
|
4205
|
-
const de_DescribeQuerySuggestionsConfigResponse = (output, context) => {
|
|
4206
|
-
return (0, smithy_client_1.take)(output, {
|
|
4207
|
-
AttributeSuggestionsConfig: smithy_client_1._json,
|
|
4208
|
-
IncludeQueriesWithoutUserInformation: smithy_client_1.expectBoolean,
|
|
4209
|
-
LastClearTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4210
|
-
LastSuggestionsBuildTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4211
|
-
MinimumNumberOfQueryingUsers: smithy_client_1.expectInt32,
|
|
4212
|
-
MinimumQueryCount: smithy_client_1.expectInt32,
|
|
4213
|
-
Mode: smithy_client_1.expectString,
|
|
4214
|
-
QueryLogLookBackWindowInDays: smithy_client_1.expectInt32,
|
|
4215
|
-
Status: smithy_client_1.expectString,
|
|
4216
|
-
TotalSuggestionsCount: smithy_client_1.expectInt32,
|
|
4217
|
-
});
|
|
4218
|
-
};
|
|
4219
|
-
const de_DescribeThesaurusResponse = (output, context) => {
|
|
4220
|
-
return (0, smithy_client_1.take)(output, {
|
|
4221
|
-
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4222
|
-
Description: smithy_client_1.expectString,
|
|
4223
|
-
ErrorMessage: smithy_client_1.expectString,
|
|
4224
|
-
FileSizeBytes: smithy_client_1.expectLong,
|
|
4225
|
-
Id: smithy_client_1.expectString,
|
|
4226
|
-
IndexId: smithy_client_1.expectString,
|
|
4227
|
-
Name: smithy_client_1.expectString,
|
|
4228
|
-
RoleArn: smithy_client_1.expectString,
|
|
4229
|
-
SourceS3Path: smithy_client_1._json,
|
|
4230
|
-
Status: smithy_client_1.expectString,
|
|
4231
|
-
SynonymRuleCount: smithy_client_1.expectLong,
|
|
4232
|
-
TermCount: smithy_client_1.expectLong,
|
|
4233
|
-
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4234
|
-
});
|
|
4235
|
-
};
|
|
4236
|
-
const de_DocumentAttribute = (output, context) => {
|
|
4237
|
-
return (0, smithy_client_1.take)(output, {
|
|
4238
|
-
Key: smithy_client_1.expectString,
|
|
4239
|
-
Value: (_) => de_DocumentAttributeValue(_, context),
|
|
4240
|
-
});
|
|
4241
|
-
};
|
|
4242
|
-
const de_DocumentAttributeCondition = (output, context) => {
|
|
4243
|
-
return (0, smithy_client_1.take)(output, {
|
|
4244
|
-
ConditionDocumentAttributeKey: smithy_client_1.expectString,
|
|
4245
|
-
ConditionOnValue: (_) => de_DocumentAttributeValue(_, context),
|
|
4246
|
-
Operator: smithy_client_1.expectString,
|
|
4247
|
-
});
|
|
4248
|
-
};
|
|
4249
|
-
const de_DocumentAttributeList = (output, context) => {
|
|
4250
|
-
const retVal = (output || [])
|
|
4251
|
-
.filter((e) => e != null)
|
|
4252
|
-
.map((entry) => {
|
|
4253
|
-
return de_DocumentAttribute(entry, context);
|
|
4254
|
-
});
|
|
4255
|
-
return retVal;
|
|
4256
|
-
};
|
|
4257
|
-
const de_DocumentAttributeTarget = (output, context) => {
|
|
4258
|
-
return (0, smithy_client_1.take)(output, {
|
|
4259
|
-
TargetDocumentAttributeKey: smithy_client_1.expectString,
|
|
4260
|
-
TargetDocumentAttributeValue: (_) => de_DocumentAttributeValue(_, context),
|
|
4261
|
-
TargetDocumentAttributeValueDeletion: smithy_client_1.expectBoolean,
|
|
4262
|
-
});
|
|
4263
|
-
};
|
|
4264
|
-
const de_DocumentAttributeValue = (output, context) => {
|
|
4265
|
-
return (0, smithy_client_1.take)(output, {
|
|
4266
|
-
DateValue: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4267
|
-
LongValue: smithy_client_1.expectLong,
|
|
4268
|
-
StringListValue: smithy_client_1._json,
|
|
4269
|
-
StringValue: smithy_client_1.expectString,
|
|
4270
|
-
});
|
|
4271
|
-
};
|
|
4272
|
-
const de_DocumentAttributeValueCountPair = (output, context) => {
|
|
4273
|
-
return (0, smithy_client_1.take)(output, {
|
|
4274
|
-
Count: smithy_client_1.expectInt32,
|
|
4275
|
-
DocumentAttributeValue: (_) => de_DocumentAttributeValue(_, context),
|
|
4276
|
-
FacetResults: (_) => de_FacetResultList(_, context),
|
|
4277
|
-
});
|
|
4278
|
-
};
|
|
4279
|
-
const de_DocumentAttributeValueCountPairList = (output, context) => {
|
|
4280
|
-
const retVal = (output || [])
|
|
4281
|
-
.filter((e) => e != null)
|
|
4282
|
-
.map((entry) => {
|
|
4283
|
-
return de_DocumentAttributeValueCountPair(entry, context);
|
|
4284
|
-
});
|
|
4285
|
-
return retVal;
|
|
4286
|
-
};
|
|
4287
|
-
const de_ExpandedResultItem = (output, context) => {
|
|
4288
|
-
return (0, smithy_client_1.take)(output, {
|
|
4289
|
-
DocumentAttributes: (_) => de_DocumentAttributeList(_, context),
|
|
4290
|
-
DocumentExcerpt: smithy_client_1._json,
|
|
4291
|
-
DocumentId: smithy_client_1.expectString,
|
|
4292
|
-
DocumentTitle: smithy_client_1._json,
|
|
4293
|
-
DocumentURI: smithy_client_1.expectString,
|
|
4294
|
-
Id: smithy_client_1.expectString,
|
|
4295
|
-
});
|
|
4296
|
-
};
|
|
4297
|
-
const de_ExpandedResultList = (output, context) => {
|
|
4298
|
-
const retVal = (output || [])
|
|
4299
|
-
.filter((e) => e != null)
|
|
4300
|
-
.map((entry) => {
|
|
4301
|
-
return de_ExpandedResultItem(entry, context);
|
|
4302
|
-
});
|
|
4303
|
-
return retVal;
|
|
4304
|
-
};
|
|
4305
|
-
const de_ExperiencesSummary = (output, context) => {
|
|
4306
|
-
return (0, smithy_client_1.take)(output, {
|
|
4307
|
-
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4308
|
-
Endpoints: smithy_client_1._json,
|
|
4309
|
-
Id: smithy_client_1.expectString,
|
|
4310
|
-
Name: smithy_client_1.expectString,
|
|
4311
|
-
Status: smithy_client_1.expectString,
|
|
4312
|
-
});
|
|
4313
|
-
};
|
|
4314
|
-
const de_ExperiencesSummaryList = (output, context) => {
|
|
4315
|
-
const retVal = (output || [])
|
|
4316
|
-
.filter((e) => e != null)
|
|
4317
|
-
.map((entry) => {
|
|
4318
|
-
return de_ExperiencesSummary(entry, context);
|
|
4319
|
-
});
|
|
4320
|
-
return retVal;
|
|
4321
|
-
};
|
|
4322
|
-
const de_FacetResult = (output, context) => {
|
|
4323
|
-
return (0, smithy_client_1.take)(output, {
|
|
4324
|
-
DocumentAttributeKey: smithy_client_1.expectString,
|
|
4325
|
-
DocumentAttributeValueCountPairs: (_) => de_DocumentAttributeValueCountPairList(_, context),
|
|
4326
|
-
DocumentAttributeValueType: smithy_client_1.expectString,
|
|
4327
|
-
});
|
|
4328
|
-
};
|
|
4329
|
-
const de_FacetResultList = (output, context) => {
|
|
4330
|
-
const retVal = (output || [])
|
|
4331
|
-
.filter((e) => e != null)
|
|
4332
|
-
.map((entry) => {
|
|
4333
|
-
return de_FacetResult(entry, context);
|
|
4334
|
-
});
|
|
4335
|
-
return retVal;
|
|
4336
|
-
};
|
|
4337
|
-
const de_FaqSummary = (output, context) => {
|
|
4338
|
-
return (0, smithy_client_1.take)(output, {
|
|
4339
|
-
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4340
|
-
FileFormat: smithy_client_1.expectString,
|
|
4341
|
-
Id: smithy_client_1.expectString,
|
|
4342
|
-
LanguageCode: smithy_client_1.expectString,
|
|
4343
|
-
Name: smithy_client_1.expectString,
|
|
4344
|
-
Status: smithy_client_1.expectString,
|
|
4345
|
-
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4346
|
-
});
|
|
4347
|
-
};
|
|
4348
|
-
const de_FaqSummaryItems = (output, context) => {
|
|
4349
|
-
const retVal = (output || [])
|
|
4350
|
-
.filter((e) => e != null)
|
|
4351
|
-
.map((entry) => {
|
|
4352
|
-
return de_FaqSummary(entry, context);
|
|
4353
|
-
});
|
|
4354
|
-
return retVal;
|
|
4355
|
-
};
|
|
4356
|
-
const de_FeaturedResultsItem = (output, context) => {
|
|
4357
|
-
return (0, smithy_client_1.take)(output, {
|
|
4358
|
-
AdditionalAttributes: smithy_client_1._json,
|
|
4359
|
-
DocumentAttributes: (_) => de_DocumentAttributeList(_, context),
|
|
4360
|
-
DocumentExcerpt: smithy_client_1._json,
|
|
4361
|
-
DocumentId: smithy_client_1.expectString,
|
|
4362
|
-
DocumentTitle: smithy_client_1._json,
|
|
4363
|
-
DocumentURI: smithy_client_1.expectString,
|
|
4364
|
-
FeedbackToken: smithy_client_1.expectString,
|
|
4365
|
-
Id: smithy_client_1.expectString,
|
|
4366
|
-
Type: smithy_client_1.expectString,
|
|
4367
|
-
});
|
|
4368
|
-
};
|
|
4369
|
-
const de_FeaturedResultsItemList = (output, context) => {
|
|
4370
|
-
const retVal = (output || [])
|
|
4371
|
-
.filter((e) => e != null)
|
|
4372
|
-
.map((entry) => {
|
|
4373
|
-
return de_FeaturedResultsItem(entry, context);
|
|
4374
|
-
});
|
|
4375
|
-
return retVal;
|
|
4376
|
-
};
|
|
4377
|
-
const de_GetQuerySuggestionsResponse = (output, context) => {
|
|
4378
|
-
return (0, smithy_client_1.take)(output, {
|
|
4379
|
-
QuerySuggestionsId: smithy_client_1.expectString,
|
|
4380
|
-
Suggestions: (_) => de_SuggestionList(_, context),
|
|
4381
|
-
});
|
|
4382
|
-
};
|
|
4383
|
-
const de_GetSnapshotsResponse = (output, context) => {
|
|
4384
|
-
return (0, smithy_client_1.take)(output, {
|
|
4385
|
-
NextToken: smithy_client_1.expectString,
|
|
4386
|
-
SnapShotTimeFilter: (_) => de_TimeRange(_, context),
|
|
4387
|
-
SnapshotsData: smithy_client_1._json,
|
|
4388
|
-
SnapshotsDataHeader: smithy_client_1._json,
|
|
4389
|
-
});
|
|
4390
|
-
};
|
|
4391
|
-
const de_GroupOrderingIdSummaries = (output, context) => {
|
|
4392
|
-
const retVal = (output || [])
|
|
4393
|
-
.filter((e) => e != null)
|
|
4394
|
-
.map((entry) => {
|
|
4395
|
-
return de_GroupOrderingIdSummary(entry, context);
|
|
4396
|
-
});
|
|
4397
|
-
return retVal;
|
|
4398
|
-
};
|
|
4399
|
-
const de_GroupOrderingIdSummary = (output, context) => {
|
|
4400
|
-
return (0, smithy_client_1.take)(output, {
|
|
4401
|
-
FailureReason: smithy_client_1.expectString,
|
|
4402
|
-
LastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4403
|
-
OrderingId: smithy_client_1.expectLong,
|
|
4404
|
-
ReceivedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4405
|
-
Status: smithy_client_1.expectString,
|
|
4406
|
-
});
|
|
4407
|
-
};
|
|
4408
|
-
const de_HookConfiguration = (output, context) => {
|
|
4409
|
-
return (0, smithy_client_1.take)(output, {
|
|
4410
|
-
InvocationCondition: (_) => de_DocumentAttributeCondition(_, context),
|
|
4411
|
-
LambdaArn: smithy_client_1.expectString,
|
|
4412
|
-
S3Bucket: smithy_client_1.expectString,
|
|
4413
|
-
});
|
|
4414
|
-
};
|
|
4415
|
-
const de_IndexConfigurationSummary = (output, context) => {
|
|
4416
|
-
return (0, smithy_client_1.take)(output, {
|
|
4417
|
-
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4418
|
-
Edition: smithy_client_1.expectString,
|
|
4419
|
-
Id: smithy_client_1.expectString,
|
|
4420
|
-
Name: smithy_client_1.expectString,
|
|
4421
|
-
Status: smithy_client_1.expectString,
|
|
4422
|
-
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4423
|
-
});
|
|
4424
|
-
};
|
|
4425
|
-
const de_IndexConfigurationSummaryList = (output, context) => {
|
|
4426
|
-
const retVal = (output || [])
|
|
4427
|
-
.filter((e) => e != null)
|
|
4428
|
-
.map((entry) => {
|
|
4429
|
-
return de_IndexConfigurationSummary(entry, context);
|
|
4430
|
-
});
|
|
4431
|
-
return retVal;
|
|
4432
|
-
};
|
|
4433
|
-
const de_InlineCustomDocumentEnrichmentConfiguration = (output, context) => {
|
|
4434
|
-
return (0, smithy_client_1.take)(output, {
|
|
4435
|
-
Condition: (_) => de_DocumentAttributeCondition(_, context),
|
|
4436
|
-
DocumentContentDeletion: smithy_client_1.expectBoolean,
|
|
4437
|
-
Target: (_) => de_DocumentAttributeTarget(_, context),
|
|
4438
|
-
});
|
|
4439
|
-
};
|
|
4440
|
-
const de_InlineCustomDocumentEnrichmentConfigurationList = (output, context) => {
|
|
4441
|
-
const retVal = (output || [])
|
|
4442
|
-
.filter((e) => e != null)
|
|
4443
|
-
.map((entry) => {
|
|
4444
|
-
return de_InlineCustomDocumentEnrichmentConfiguration(entry, context);
|
|
4445
|
-
});
|
|
4446
|
-
return retVal;
|
|
4447
|
-
};
|
|
4448
|
-
const de_ListDataSourcesResponse = (output, context) => {
|
|
4449
|
-
return (0, smithy_client_1.take)(output, {
|
|
4450
|
-
NextToken: smithy_client_1.expectString,
|
|
4451
|
-
SummaryItems: (_) => de_DataSourceSummaryList(_, context),
|
|
4452
|
-
});
|
|
4453
|
-
};
|
|
4454
|
-
const de_ListDataSourceSyncJobsResponse = (output, context) => {
|
|
4455
|
-
return (0, smithy_client_1.take)(output, {
|
|
4456
|
-
History: (_) => de_DataSourceSyncJobHistoryList(_, context),
|
|
4457
|
-
NextToken: smithy_client_1.expectString,
|
|
4458
|
-
});
|
|
4459
|
-
};
|
|
4460
|
-
const de_ListEntityPersonasResponse = (output, context) => {
|
|
4461
|
-
return (0, smithy_client_1.take)(output, {
|
|
4462
|
-
NextToken: smithy_client_1.expectString,
|
|
4463
|
-
SummaryItems: (_) => de_PersonasSummaryList(_, context),
|
|
4464
|
-
});
|
|
4465
|
-
};
|
|
4466
|
-
const de_ListExperiencesResponse = (output, context) => {
|
|
4467
|
-
return (0, smithy_client_1.take)(output, {
|
|
4468
|
-
NextToken: smithy_client_1.expectString,
|
|
4469
|
-
SummaryItems: (_) => de_ExperiencesSummaryList(_, context),
|
|
4470
|
-
});
|
|
4471
|
-
};
|
|
4472
|
-
const de_ListFaqsResponse = (output, context) => {
|
|
4473
|
-
return (0, smithy_client_1.take)(output, {
|
|
4474
|
-
FaqSummaryItems: (_) => de_FaqSummaryItems(_, context),
|
|
4475
|
-
NextToken: smithy_client_1.expectString,
|
|
4476
|
-
});
|
|
4477
|
-
};
|
|
4478
|
-
const de_ListIndicesResponse = (output, context) => {
|
|
4479
|
-
return (0, smithy_client_1.take)(output, {
|
|
4480
|
-
IndexConfigurationSummaryItems: (_) => de_IndexConfigurationSummaryList(_, context),
|
|
4481
|
-
NextToken: smithy_client_1.expectString,
|
|
4482
|
-
});
|
|
4483
|
-
};
|
|
4484
|
-
const de_ListQuerySuggestionsBlockListsResponse = (output, context) => {
|
|
4485
|
-
return (0, smithy_client_1.take)(output, {
|
|
4486
|
-
BlockListSummaryItems: (_) => de_QuerySuggestionsBlockListSummaryItems(_, context),
|
|
4487
|
-
NextToken: smithy_client_1.expectString,
|
|
4488
|
-
});
|
|
4489
|
-
};
|
|
4490
|
-
const de_ListThesauriResponse = (output, context) => {
|
|
4491
|
-
return (0, smithy_client_1.take)(output, {
|
|
4492
|
-
NextToken: smithy_client_1.expectString,
|
|
4493
|
-
ThesaurusSummaryItems: (_) => de_ThesaurusSummaryItems(_, context),
|
|
4494
|
-
});
|
|
4495
|
-
};
|
|
4496
|
-
const de_PersonasSummary = (output, context) => {
|
|
4497
|
-
return (0, smithy_client_1.take)(output, {
|
|
4498
|
-
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4499
|
-
EntityId: smithy_client_1.expectString,
|
|
4500
|
-
Persona: smithy_client_1.expectString,
|
|
4501
|
-
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4502
|
-
});
|
|
4503
|
-
};
|
|
4504
|
-
const de_PersonasSummaryList = (output, context) => {
|
|
4505
|
-
const retVal = (output || [])
|
|
4506
|
-
.filter((e) => e != null)
|
|
4507
|
-
.map((entry) => {
|
|
4508
|
-
return de_PersonasSummary(entry, context);
|
|
4509
|
-
});
|
|
4510
|
-
return retVal;
|
|
4511
|
-
};
|
|
4512
|
-
const de_QueryResult = (output, context) => {
|
|
4513
|
-
return (0, smithy_client_1.take)(output, {
|
|
4514
|
-
FacetResults: (_) => de_FacetResultList(_, context),
|
|
4515
|
-
FeaturedResultsItems: (_) => de_FeaturedResultsItemList(_, context),
|
|
4516
|
-
QueryId: smithy_client_1.expectString,
|
|
4517
|
-
ResultItems: (_) => de_QueryResultItemList(_, context),
|
|
4518
|
-
SpellCorrectedQueries: smithy_client_1._json,
|
|
4519
|
-
TotalNumberOfResults: smithy_client_1.expectInt32,
|
|
4520
|
-
Warnings: smithy_client_1._json,
|
|
4521
|
-
});
|
|
4522
|
-
};
|
|
4523
|
-
const de_QueryResultItem = (output, context) => {
|
|
4524
|
-
return (0, smithy_client_1.take)(output, {
|
|
4525
|
-
AdditionalAttributes: smithy_client_1._json,
|
|
4526
|
-
CollapsedResultDetail: (_) => de_CollapsedResultDetail(_, context),
|
|
4527
|
-
DocumentAttributes: (_) => de_DocumentAttributeList(_, context),
|
|
4528
|
-
DocumentExcerpt: smithy_client_1._json,
|
|
4529
|
-
DocumentId: smithy_client_1.expectString,
|
|
4530
|
-
DocumentTitle: smithy_client_1._json,
|
|
4531
|
-
DocumentURI: smithy_client_1.expectString,
|
|
4532
|
-
FeedbackToken: smithy_client_1.expectString,
|
|
4533
|
-
Format: smithy_client_1.expectString,
|
|
4534
|
-
Id: smithy_client_1.expectString,
|
|
4535
|
-
ScoreAttributes: smithy_client_1._json,
|
|
4536
|
-
TableExcerpt: smithy_client_1._json,
|
|
4537
|
-
Type: smithy_client_1.expectString,
|
|
4538
|
-
});
|
|
4539
|
-
};
|
|
4540
|
-
const de_QueryResultItemList = (output, context) => {
|
|
4541
|
-
const retVal = (output || [])
|
|
4542
|
-
.filter((e) => e != null)
|
|
4543
|
-
.map((entry) => {
|
|
4544
|
-
return de_QueryResultItem(entry, context);
|
|
4545
|
-
});
|
|
4546
|
-
return retVal;
|
|
4547
|
-
};
|
|
4548
|
-
const de_QuerySuggestionsBlockListSummary = (output, context) => {
|
|
4549
|
-
return (0, smithy_client_1.take)(output, {
|
|
4550
|
-
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4551
|
-
Id: smithy_client_1.expectString,
|
|
4552
|
-
ItemCount: smithy_client_1.expectInt32,
|
|
4553
|
-
Name: smithy_client_1.expectString,
|
|
4554
|
-
Status: smithy_client_1.expectString,
|
|
4555
|
-
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4556
|
-
});
|
|
4557
|
-
};
|
|
4558
|
-
const de_QuerySuggestionsBlockListSummaryItems = (output, context) => {
|
|
4559
|
-
const retVal = (output || [])
|
|
4560
|
-
.filter((e) => e != null)
|
|
4561
|
-
.map((entry) => {
|
|
4562
|
-
return de_QuerySuggestionsBlockListSummary(entry, context);
|
|
4563
|
-
});
|
|
4564
|
-
return retVal;
|
|
4565
|
-
};
|
|
4566
|
-
const de_RetrieveResult = (output, context) => {
|
|
4567
|
-
return (0, smithy_client_1.take)(output, {
|
|
4568
|
-
QueryId: smithy_client_1.expectString,
|
|
4569
|
-
ResultItems: (_) => de_RetrieveResultItemList(_, context),
|
|
4570
|
-
});
|
|
4571
|
-
};
|
|
4572
|
-
const de_RetrieveResultItem = (output, context) => {
|
|
4573
|
-
return (0, smithy_client_1.take)(output, {
|
|
4574
|
-
Content: smithy_client_1.expectString,
|
|
4575
|
-
DocumentAttributes: (_) => de_DocumentAttributeList(_, context),
|
|
4576
|
-
DocumentId: smithy_client_1.expectString,
|
|
4577
|
-
DocumentTitle: smithy_client_1.expectString,
|
|
4578
|
-
DocumentURI: smithy_client_1.expectString,
|
|
4579
|
-
Id: smithy_client_1.expectString,
|
|
4580
|
-
ScoreAttributes: smithy_client_1._json,
|
|
4581
|
-
});
|
|
4582
|
-
};
|
|
4583
|
-
const de_RetrieveResultItemList = (output, context) => {
|
|
4584
|
-
const retVal = (output || [])
|
|
4585
|
-
.filter((e) => e != null)
|
|
4586
|
-
.map((entry) => {
|
|
4587
|
-
return de_RetrieveResultItem(entry, context);
|
|
4588
|
-
});
|
|
4589
|
-
return retVal;
|
|
4590
|
-
};
|
|
4591
|
-
const de_SourceDocument = (output, context) => {
|
|
4592
|
-
return (0, smithy_client_1.take)(output, {
|
|
4593
|
-
AdditionalAttributes: (_) => de_DocumentAttributeList(_, context),
|
|
4594
|
-
DocumentId: smithy_client_1.expectString,
|
|
4595
|
-
SuggestionAttributes: smithy_client_1._json,
|
|
4596
|
-
});
|
|
4597
|
-
};
|
|
4598
|
-
const de_SourceDocuments = (output, context) => {
|
|
4599
|
-
const retVal = (output || [])
|
|
4600
|
-
.filter((e) => e != null)
|
|
4601
|
-
.map((entry) => {
|
|
4602
|
-
return de_SourceDocument(entry, context);
|
|
4603
|
-
});
|
|
4604
|
-
return retVal;
|
|
4605
|
-
};
|
|
4606
|
-
const de_Suggestion = (output, context) => {
|
|
4607
|
-
return (0, smithy_client_1.take)(output, {
|
|
4608
|
-
Id: smithy_client_1.expectString,
|
|
4609
|
-
SourceDocuments: (_) => de_SourceDocuments(_, context),
|
|
4610
|
-
Value: smithy_client_1._json,
|
|
4611
|
-
});
|
|
4612
|
-
};
|
|
4613
|
-
const de_SuggestionList = (output, context) => {
|
|
4614
|
-
const retVal = (output || [])
|
|
4615
|
-
.filter((e) => e != null)
|
|
4616
|
-
.map((entry) => {
|
|
4617
|
-
return de_Suggestion(entry, context);
|
|
4618
|
-
});
|
|
4619
|
-
return retVal;
|
|
4620
|
-
};
|
|
4621
|
-
const de_Template = (output, context) => {
|
|
4622
|
-
return output;
|
|
4623
|
-
};
|
|
4624
|
-
const de_TemplateConfiguration = (output, context) => {
|
|
4625
|
-
return (0, smithy_client_1.take)(output, {
|
|
4626
|
-
Template: (_) => de_Template(_, context),
|
|
4627
|
-
});
|
|
4628
|
-
};
|
|
4629
|
-
const de_ThesaurusSummary = (output, context) => {
|
|
4630
|
-
return (0, smithy_client_1.take)(output, {
|
|
4631
|
-
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4632
|
-
Id: smithy_client_1.expectString,
|
|
4633
|
-
Name: smithy_client_1.expectString,
|
|
4634
|
-
Status: smithy_client_1.expectString,
|
|
4635
|
-
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4636
|
-
});
|
|
4637
|
-
};
|
|
4638
|
-
const de_ThesaurusSummaryItems = (output, context) => {
|
|
4639
|
-
const retVal = (output || [])
|
|
4640
|
-
.filter((e) => e != null)
|
|
4641
|
-
.map((entry) => {
|
|
4642
|
-
return de_ThesaurusSummary(entry, context);
|
|
4643
|
-
});
|
|
4644
|
-
return retVal;
|
|
4645
|
-
};
|
|
4646
|
-
const de_TimeRange = (output, context) => {
|
|
4647
|
-
return (0, smithy_client_1.take)(output, {
|
|
4648
|
-
EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4649
|
-
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4650
|
-
});
|
|
4651
|
-
};
|
|
4652
|
-
const de_WebCrawlerConfiguration = (output, context) => {
|
|
4653
|
-
return (0, smithy_client_1.take)(output, {
|
|
4654
|
-
AuthenticationConfiguration: smithy_client_1._json,
|
|
4655
|
-
CrawlDepth: smithy_client_1.expectInt32,
|
|
4656
|
-
MaxContentSizePerPageInMegaBytes: smithy_client_1.limitedParseFloat32,
|
|
4657
|
-
MaxLinksPerPage: smithy_client_1.expectInt32,
|
|
4658
|
-
MaxUrlsPerMinuteCrawlRate: smithy_client_1.expectInt32,
|
|
4659
|
-
ProxyConfiguration: smithy_client_1._json,
|
|
4660
|
-
UrlExclusionPatterns: smithy_client_1._json,
|
|
4661
|
-
UrlInclusionPatterns: smithy_client_1._json,
|
|
4662
|
-
Urls: smithy_client_1._json,
|
|
4663
|
-
});
|
|
4664
|
-
};
|
|
4665
|
-
const deserializeMetadata = (output) => ({
|
|
4666
|
-
httpStatusCode: output.statusCode,
|
|
4667
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
4668
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
4669
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
4670
|
-
});
|
|
4671
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
4672
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(KendraServiceException_1.KendraServiceException);
|
|
4673
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
4674
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4675
|
-
const contents = {
|
|
4676
|
-
protocol,
|
|
4677
|
-
hostname,
|
|
4678
|
-
port,
|
|
4679
|
-
method: "POST",
|
|
4680
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
4681
|
-
headers,
|
|
4682
|
-
};
|
|
4683
|
-
if (resolvedHostname !== undefined) {
|
|
4684
|
-
contents.hostname = resolvedHostname;
|
|
4685
|
-
}
|
|
4686
|
-
if (body !== undefined) {
|
|
4687
|
-
contents.body = body;
|
|
4688
|
-
}
|
|
4689
|
-
return new protocol_http_1.HttpRequest(contents);
|
|
4690
|
-
};
|
|
4691
|
-
function sharedHeaders(operation) {
|
|
4692
|
-
return {
|
|
4693
|
-
"content-type": "application/x-amz-json-1.1",
|
|
4694
|
-
"x-amz-target": `AWSKendraFrontendService.${operation}`,
|
|
4695
|
-
};
|
|
4696
|
-
}
|
|
4697
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
4698
|
-
if (encoded.length) {
|
|
4699
|
-
return JSON.parse(encoded);
|
|
4700
|
-
}
|
|
4701
|
-
return {};
|
|
4702
|
-
});
|
|
4703
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
4704
|
-
const value = await parseBody(errorBody, context);
|
|
4705
|
-
value.message = value.message ?? value.Message;
|
|
4706
|
-
return value;
|
|
4707
|
-
};
|
|
4708
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
4709
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
4710
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
4711
|
-
let cleanValue = rawValue;
|
|
4712
|
-
if (typeof cleanValue === "number") {
|
|
4713
|
-
cleanValue = cleanValue.toString();
|
|
4714
|
-
}
|
|
4715
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
4716
|
-
cleanValue = cleanValue.split(",")[0];
|
|
4717
|
-
}
|
|
4718
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
4719
|
-
cleanValue = cleanValue.split(":")[0];
|
|
4720
|
-
}
|
|
4721
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
4722
|
-
cleanValue = cleanValue.split("#")[1];
|
|
4723
|
-
}
|
|
4724
|
-
return cleanValue;
|
|
4725
|
-
};
|
|
4726
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
4727
|
-
if (headerKey !== undefined) {
|
|
4728
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
4729
|
-
}
|
|
4730
|
-
if (data.code !== undefined) {
|
|
4731
|
-
return sanitizeErrorCode(data.code);
|
|
4732
|
-
}
|
|
4733
|
-
if (data["__type"] !== undefined) {
|
|
4734
|
-
return sanitizeErrorCode(data["__type"]);
|
|
4735
|
-
}
|
|
4736
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|