@aws-sdk/client-kendra 3.46.0 → 3.48.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/CHANGELOG.md +38 -0
- package/dist-cjs/endpoints.js +0 -16
- package/dist-cjs/models/models_0.js +16 -72
- package/dist-cjs/pagination/GetSnapshotsPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_1.js +19 -0
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +10 -2
- package/dist-es/endpoints.js +0 -16
- package/dist-es/models/models_0.js +8 -44
- package/dist-es/pagination/GetSnapshotsPaginator.js +74 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +19 -0
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -4
- package/dist-types/Kendra.d.ts +1 -0
- package/dist-types/KendraClient.d.ts +5 -1
- package/dist-types/commands/CreateFaqCommand.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +42 -71
- package/dist-types/pagination/GetSnapshotsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +4 -3
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/KendraClient.d.ts +3 -1
- package/dist-types/ts3.4/models/models_0.d.ts +17 -45
- package/dist-types/ts3.4/pagination/GetSnapshotsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +35 -35
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,44 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.48.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.2...v3.48.0) (2022-01-22)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** update clients as of 2022/01/21 ([#3228](https://github.com/aws/aws-sdk-js-v3/issues/3228)) ([fa713ef](https://github.com/aws/aws-sdk-js-v3/commit/fa713efca6b2f424c27535d000359f08830960b1))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [3.47.2](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.1...v3.47.2) (2022-01-21)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-kendra
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [3.47.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.0-release-test-1...v3.47.1) (2022-01-20)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-kendra
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
# [3.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Features
|
|
37
|
+
|
|
38
|
+
* **clients:** update clients to use default values inferred from defaults mode ([#3192](https://github.com/aws/aws-sdk-js-v3/issues/3192)) ([9152e21](https://github.com/aws/aws-sdk-js-v3/commit/9152e210c6ec29f34bb070eaf2874039022e6ab7))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
6
44
|
# [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
|
|
7
45
|
|
|
8
46
|
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -5,10 +5,6 @@ const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
|
5
5
|
const regionHash = {
|
|
6
6
|
"us-east-1": {
|
|
7
7
|
variants: [
|
|
8
|
-
{
|
|
9
|
-
hostname: "kendra.us-east-1.amazonaws.com",
|
|
10
|
-
tags: [],
|
|
11
|
-
},
|
|
12
8
|
{
|
|
13
9
|
hostname: "kendra-fips.us-east-1.amazonaws.com",
|
|
14
10
|
tags: ["fips"],
|
|
@@ -17,10 +13,6 @@ const regionHash = {
|
|
|
17
13
|
},
|
|
18
14
|
"us-east-2": {
|
|
19
15
|
variants: [
|
|
20
|
-
{
|
|
21
|
-
hostname: "kendra.us-east-2.amazonaws.com",
|
|
22
|
-
tags: [],
|
|
23
|
-
},
|
|
24
16
|
{
|
|
25
17
|
hostname: "kendra-fips.us-east-2.amazonaws.com",
|
|
26
18
|
tags: ["fips"],
|
|
@@ -29,10 +21,6 @@ const regionHash = {
|
|
|
29
21
|
},
|
|
30
22
|
"us-gov-west-1": {
|
|
31
23
|
variants: [
|
|
32
|
-
{
|
|
33
|
-
hostname: "kendra.us-gov-west-1.amazonaws.com",
|
|
34
|
-
tags: [],
|
|
35
|
-
},
|
|
36
24
|
{
|
|
37
25
|
hostname: "kendra-fips.us-gov-west-1.amazonaws.com",
|
|
38
26
|
tags: ["fips"],
|
|
@@ -41,10 +29,6 @@ const regionHash = {
|
|
|
41
29
|
},
|
|
42
30
|
"us-west-2": {
|
|
43
31
|
variants: [
|
|
44
|
-
{
|
|
45
|
-
hostname: "kendra.us-west-2.amazonaws.com",
|
|
46
|
-
tags: [],
|
|
47
|
-
},
|
|
48
32
|
{
|
|
49
33
|
hostname: "kendra-fips.us-west-2.amazonaws.com",
|
|
50
34
|
tags: ["fips"],
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HierarchicalPrincipal = exports.ContentType = exports.Principal = exports.PrincipalType = exports.ReadAccessType = exports.CustomDocumentEnrichmentConfiguration = exports.HookConfiguration = exports.InlineCustomDocumentEnrichmentConfiguration = exports.DocumentAttributeTarget = exports.DocumentAttributeCondition = exports.ConditionOperator = exports.BatchGetDocumentStatusResponse = exports.BatchGetDocumentStatusResponseError = exports.Status = exports.DocumentStatus = exports.BatchGetDocumentStatusRequest = exports.DocumentInfo = exports.
|
|
4
|
-
exports.SharePointVersion = exports.ServiceNowConfiguration = exports.ServiceNowBuildVersionType = exports.ServiceNowServiceCatalogConfiguration = exports.ServiceNowKnowledgeArticleConfiguration = exports.ServiceNowAuthenticationType = exports.SalesforceConfiguration = exports.SalesforceStandardObjectConfiguration = exports.SalesforceStandardObjectName = exports.SalesforceStandardObjectAttachmentConfiguration = exports.SalesforceKnowledgeArticleConfiguration = exports.SalesforceStandardKnowledgeArticleTypeConfiguration = exports.SalesforceKnowledgeArticleState = exports.SalesforceCustomKnowledgeArticleTypeConfiguration = exports.SalesforceChatterFeedConfiguration = exports.SalesforceChatterFeedIncludeFilterType = exports.S3DataSourceConfiguration = exports.DocumentsMetadataConfiguration = exports.OneDriveConfiguration = exports.OneDriveUsers = exports.GoogleDriveConfiguration = exports.DatabaseConfiguration = exports.SqlConfiguration = exports.QueryIdentifiersEnclosingOption = exports.DatabaseEngineType = exports.ConnectionConfiguration = exports.ColumnConfiguration = exports.DataSourceToIndexFieldMapping = exports.ConfluenceConfiguration = exports.DataSourceVpcConfiguration = exports.ConfluenceVersion = exports.ConfluenceSpaceConfiguration = exports.ConfluenceSpaceToIndexFieldMapping = exports.ConfluenceSpaceFieldName = exports.ConfluencePageConfiguration = exports.ConfluencePageToIndexFieldMapping = exports.ConfluencePageFieldName = exports.ConfluenceBlogConfiguration = exports.ConfluenceBlogToIndexFieldMapping = exports.ConfluenceBlogFieldName = exports.ConfluenceAttachmentConfiguration = exports.ConfluenceAttachmentToIndexFieldMapping =
|
|
5
|
-
exports.ExperienceEndpoint = exports.EndpointType = exports.DescribeExperienceRequest = exports.DescribeDataSourceResponse = exports.DataSourceStatus = exports.DescribeDataSourceRequest = exports.DeleteThesaurusRequest = exports.DeleteQuerySuggestionsBlockListRequest = exports.DeletePrincipalMappingRequest = exports.DeleteIndexRequest = exports.DeleteFaqRequest = exports.DeleteExperienceResponse = exports.DeleteExperienceRequest = exports.DeleteDataSourceRequest = exports.CreateThesaurusResponse = exports.CreateThesaurusRequest = exports.CreateQuerySuggestionsBlockListResponse = exports.CreateQuerySuggestionsBlockListRequest = exports.CreateIndexResponse = exports.CreateIndexRequest = exports.UserTokenConfiguration = exports.JwtTokenTypeConfiguration = exports.KeyLocation = exports.JsonTokenTypeConfiguration = exports.UserGroupResolutionConfiguration = exports.UserGroupResolutionMode = exports.UserContextPolicy = exports.ServerSideEncryptionConfiguration = exports.IndexEdition = exports.CreateFaqResponse = exports.CreateFaqRequest = exports.FaqFileFormat = exports.CreateExperienceResponse = exports.CreateExperienceRequest = exports.ExperienceConfiguration = exports.UserIdentityConfiguration = exports.ContentSourceConfiguration = exports.CreateDataSourceResponse = exports.CreateDataSourceRequest = exports.DataSourceType = exports.Tag = exports.DataSourceConfiguration =
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.QueryRequest = exports.AttributeFilter = exports.UpdateThesaurusRequest = exports.UpdateQuerySuggestionsConfigRequest = exports.UpdateQuerySuggestionsBlockListRequest = exports.UpdateIndexRequest = exports.UpdateExperienceRequest = exports.UpdateDataSourceRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse =
|
|
3
|
+
exports.ConfluenceAttachmentFieldName = exports.ClearQuerySuggestionsRequest = exports.BatchPutDocumentResponse = exports.BatchPutDocumentResponseFailedDocument = exports.BatchPutDocumentRequest = exports.Document = exports.S3Path = exports.HierarchicalPrincipal = exports.ContentType = exports.Principal = exports.PrincipalType = exports.ReadAccessType = exports.CustomDocumentEnrichmentConfiguration = exports.HookConfiguration = exports.InlineCustomDocumentEnrichmentConfiguration = exports.DocumentAttributeTarget = exports.DocumentAttributeCondition = exports.ConditionOperator = exports.BatchGetDocumentStatusResponse = exports.BatchGetDocumentStatusResponseError = exports.Status = exports.DocumentStatus = exports.BatchGetDocumentStatusRequest = exports.DocumentInfo = exports.BatchDeleteDocumentResponse = exports.BatchDeleteDocumentResponseFailedDocument = exports.ErrorCode = exports.BatchDeleteDocumentRequest = exports.DataSourceSyncJobMetricTarget = exports.AuthenticationConfiguration = exports.BasicAuthenticationConfiguration = exports.DocumentAttribute = exports.DocumentAttributeValue = exports.AssociatePersonasToEntitiesResponse = exports.AssociatePersonasToEntitiesRequest = exports.EntityPersonaConfiguration = exports.Persona = exports.AssociateEntitiesToExperienceResponse = exports.FailedEntity = exports.AssociateEntitiesToExperienceRequest = exports.EntityConfiguration = exports.EntityType = exports.AdditionalResultAttribute = exports.AdditionalResultAttributeValueType = exports.AdditionalResultAttributeValue = exports.TextWithHighlights = exports.Highlight = exports.HighlightType = exports.AclConfiguration = exports.AccessControlListConfiguration = void 0;
|
|
4
|
+
exports.WorkDocsConfiguration = exports.WebCrawlerConfiguration = exports.Urls = exports.SiteMapsConfiguration = exports.SeedUrlConfiguration = exports.WebCrawlerMode = exports.ProxyConfiguration = exports.SharePointConfiguration = exports.SharePointVersion = exports.ServiceNowConfiguration = exports.ServiceNowBuildVersionType = exports.ServiceNowServiceCatalogConfiguration = exports.ServiceNowKnowledgeArticleConfiguration = exports.ServiceNowAuthenticationType = exports.SalesforceConfiguration = exports.SalesforceStandardObjectConfiguration = exports.SalesforceStandardObjectName = exports.SalesforceStandardObjectAttachmentConfiguration = exports.SalesforceKnowledgeArticleConfiguration = exports.SalesforceStandardKnowledgeArticleTypeConfiguration = exports.SalesforceKnowledgeArticleState = exports.SalesforceCustomKnowledgeArticleTypeConfiguration = exports.SalesforceChatterFeedConfiguration = exports.SalesforceChatterFeedIncludeFilterType = exports.S3DataSourceConfiguration = exports.DocumentsMetadataConfiguration = exports.OneDriveConfiguration = exports.OneDriveUsers = exports.GoogleDriveConfiguration = exports.DatabaseConfiguration = exports.SqlConfiguration = exports.QueryIdentifiersEnclosingOption = exports.DatabaseEngineType = exports.ConnectionConfiguration = exports.ColumnConfiguration = exports.DataSourceToIndexFieldMapping = exports.ConfluenceConfiguration = exports.DataSourceVpcConfiguration = exports.ConfluenceVersion = exports.ConfluenceSpaceConfiguration = exports.ConfluenceSpaceToIndexFieldMapping = exports.ConfluenceSpaceFieldName = exports.ConfluencePageConfiguration = exports.ConfluencePageToIndexFieldMapping = exports.ConfluencePageFieldName = exports.ConfluenceBlogConfiguration = exports.ConfluenceBlogToIndexFieldMapping = exports.ConfluenceBlogFieldName = exports.ConfluenceAttachmentConfiguration = exports.ConfluenceAttachmentToIndexFieldMapping = void 0;
|
|
5
|
+
exports.Order = exports.CapacityUnitsConfiguration = exports.DescribeIndexRequest = exports.DescribeFaqResponse = exports.FaqStatus = exports.DescribeFaqRequest = exports.DescribeExperienceResponse = exports.ExperienceStatus = exports.ExperienceEndpoint = exports.EndpointType = exports.DescribeExperienceRequest = exports.DescribeDataSourceResponse = exports.DataSourceStatus = exports.DescribeDataSourceRequest = exports.DeleteThesaurusRequest = exports.DeleteQuerySuggestionsBlockListRequest = exports.DeletePrincipalMappingRequest = exports.DeleteIndexRequest = exports.DeleteFaqRequest = exports.DeleteExperienceResponse = exports.DeleteExperienceRequest = exports.DeleteDataSourceRequest = exports.CreateThesaurusResponse = exports.CreateThesaurusRequest = exports.CreateQuerySuggestionsBlockListResponse = exports.CreateQuerySuggestionsBlockListRequest = exports.CreateIndexResponse = exports.CreateIndexRequest = exports.UserTokenConfiguration = exports.JwtTokenTypeConfiguration = exports.KeyLocation = exports.JsonTokenTypeConfiguration = exports.UserGroupResolutionConfiguration = exports.UserGroupResolutionMode = exports.UserContextPolicy = exports.ServerSideEncryptionConfiguration = exports.IndexEdition = exports.CreateFaqResponse = exports.CreateFaqRequest = exports.FaqFileFormat = exports.CreateExperienceResponse = exports.CreateExperienceRequest = exports.ExperienceConfiguration = exports.UserIdentityConfiguration = exports.ContentSourceConfiguration = exports.CreateDataSourceResponse = exports.CreateDataSourceRequest = exports.DataSourceType = exports.Tag = exports.DataSourceConfiguration = void 0;
|
|
6
|
+
exports.ListExperienceEntitiesRequest = exports.ListEntityPersonasResponse = exports.PersonasSummary = exports.ListEntityPersonasRequest = exports.ListDataSourceSyncJobsResponse = exports.DataSourceSyncJob = exports.DataSourceSyncJobMetrics = exports.ListDataSourceSyncJobsRequest = exports.DataSourceSyncJobStatus = exports.ListDataSourcesResponse = exports.DataSourceSummary = exports.ListDataSourcesRequest = exports.GetSnapshotsResponse = exports.TimeRange = exports.GetSnapshotsRequest = exports.MetricType = exports.Interval = exports.GetQuerySuggestionsResponse = exports.Suggestion = exports.SuggestionValue = exports.SuggestionTextWithHighlights = exports.SuggestionHighlight = exports.GetQuerySuggestionsRequest = exports.DisassociatePersonasFromEntitiesResponse = exports.DisassociatePersonasFromEntitiesRequest = exports.DisassociateEntitiesFromExperienceResponse = exports.DisassociateEntitiesFromExperienceRequest = exports.DescribeThesaurusResponse = exports.ThesaurusStatus = exports.DescribeThesaurusRequest = exports.DescribeQuerySuggestionsConfigResponse = exports.QuerySuggestionsStatus = exports.Mode = exports.DescribeQuerySuggestionsConfigRequest = exports.DescribeQuerySuggestionsBlockListResponse = exports.QuerySuggestionsBlockListStatus = exports.DescribeQuerySuggestionsBlockListRequest = exports.DescribePrincipalMappingResponse = exports.GroupOrderingIdSummary = exports.PrincipalMappingStatus = exports.DescribePrincipalMappingRequest = exports.DescribeIndexResponse = exports.IndexStatus = exports.IndexStatistics = exports.TextDocumentStatistics = exports.FaqStatistics = exports.DocumentMetadataConfiguration = exports.DocumentAttributeValueType = exports.Search = exports.Relevance = void 0;
|
|
7
|
+
exports.TagResourceRequest = exports.SubmitFeedbackRequest = exports.RelevanceFeedback = exports.RelevanceType = exports.ClickFeedback = exports.StopDataSourceSyncJobRequest = exports.StartDataSourceSyncJobResponse = exports.StartDataSourceSyncJobRequest = exports.QueryResult = exports.Warning = exports.WarningCode = exports.QueryResultItem = exports.ScoreAttributes = exports.ScoreConfidence = exports.FacetResult = exports.DocumentAttributeValueCountPair = exports.UserContext = exports.DataSourceGroup = exports.SortingConfiguration = exports.SortOrder = exports.QueryResultType = exports.Facet = exports.DocumentRelevanceConfiguration = exports.PutPrincipalMappingRequest = exports.GroupMembers = exports.MemberUser = exports.MemberGroup = exports.ListThesauriResponse = exports.ThesaurusSummary = exports.ListThesauriRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListQuerySuggestionsBlockListsResponse = exports.QuerySuggestionsBlockListSummary = exports.ListQuerySuggestionsBlockListsRequest = exports.ListIndicesResponse = exports.IndexConfigurationSummary = exports.ListIndicesRequest = exports.ListGroupsOlderThanOrderingIdResponse = exports.GroupSummary = exports.ListGroupsOlderThanOrderingIdRequest = exports.ListFaqsResponse = exports.FaqSummary = exports.ListFaqsRequest = exports.ListExperiencesResponse = exports.ExperiencesSummary = exports.ListExperiencesRequest = exports.ListExperienceEntitiesResponse = exports.ExperienceEntitiesSummary = exports.EntityDisplayData = void 0;
|
|
8
|
+
exports.QueryRequest = exports.AttributeFilter = exports.UpdateThesaurusRequest = exports.UpdateQuerySuggestionsConfigRequest = exports.UpdateQuerySuggestionsBlockListRequest = exports.UpdateIndexRequest = exports.UpdateExperienceRequest = exports.UpdateDataSourceRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = void 0;
|
|
9
9
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
10
10
|
var AccessControlListConfiguration;
|
|
11
11
|
(function (AccessControlListConfiguration) {
|
|
@@ -13,12 +13,6 @@ var AccessControlListConfiguration;
|
|
|
13
13
|
...obj,
|
|
14
14
|
});
|
|
15
15
|
})(AccessControlListConfiguration = exports.AccessControlListConfiguration || (exports.AccessControlListConfiguration = {}));
|
|
16
|
-
var AccessDeniedException;
|
|
17
|
-
(function (AccessDeniedException) {
|
|
18
|
-
AccessDeniedException.filterSensitiveLog = (obj) => ({
|
|
19
|
-
...obj,
|
|
20
|
-
});
|
|
21
|
-
})(AccessDeniedException = exports.AccessDeniedException || (exports.AccessDeniedException = {}));
|
|
22
16
|
var AclConfiguration;
|
|
23
17
|
(function (AclConfiguration) {
|
|
24
18
|
AclConfiguration.filterSensitiveLog = (obj) => ({
|
|
@@ -87,36 +81,6 @@ var AssociateEntitiesToExperienceResponse;
|
|
|
87
81
|
...obj,
|
|
88
82
|
});
|
|
89
83
|
})(AssociateEntitiesToExperienceResponse = exports.AssociateEntitiesToExperienceResponse || (exports.AssociateEntitiesToExperienceResponse = {}));
|
|
90
|
-
var InternalServerException;
|
|
91
|
-
(function (InternalServerException) {
|
|
92
|
-
InternalServerException.filterSensitiveLog = (obj) => ({
|
|
93
|
-
...obj,
|
|
94
|
-
});
|
|
95
|
-
})(InternalServerException = exports.InternalServerException || (exports.InternalServerException = {}));
|
|
96
|
-
var ResourceAlreadyExistException;
|
|
97
|
-
(function (ResourceAlreadyExistException) {
|
|
98
|
-
ResourceAlreadyExistException.filterSensitiveLog = (obj) => ({
|
|
99
|
-
...obj,
|
|
100
|
-
});
|
|
101
|
-
})(ResourceAlreadyExistException = exports.ResourceAlreadyExistException || (exports.ResourceAlreadyExistException = {}));
|
|
102
|
-
var ResourceNotFoundException;
|
|
103
|
-
(function (ResourceNotFoundException) {
|
|
104
|
-
ResourceNotFoundException.filterSensitiveLog = (obj) => ({
|
|
105
|
-
...obj,
|
|
106
|
-
});
|
|
107
|
-
})(ResourceNotFoundException = exports.ResourceNotFoundException || (exports.ResourceNotFoundException = {}));
|
|
108
|
-
var ThrottlingException;
|
|
109
|
-
(function (ThrottlingException) {
|
|
110
|
-
ThrottlingException.filterSensitiveLog = (obj) => ({
|
|
111
|
-
...obj,
|
|
112
|
-
});
|
|
113
|
-
})(ThrottlingException = exports.ThrottlingException || (exports.ThrottlingException = {}));
|
|
114
|
-
var ValidationException;
|
|
115
|
-
(function (ValidationException) {
|
|
116
|
-
ValidationException.filterSensitiveLog = (obj) => ({
|
|
117
|
-
...obj,
|
|
118
|
-
});
|
|
119
|
-
})(ValidationException = exports.ValidationException || (exports.ValidationException = {}));
|
|
120
84
|
var Persona;
|
|
121
85
|
(function (Persona) {
|
|
122
86
|
Persona["OWNER"] = "OWNER";
|
|
@@ -193,12 +157,6 @@ var BatchDeleteDocumentResponse;
|
|
|
193
157
|
...obj,
|
|
194
158
|
});
|
|
195
159
|
})(BatchDeleteDocumentResponse = exports.BatchDeleteDocumentResponse || (exports.BatchDeleteDocumentResponse = {}));
|
|
196
|
-
var ConflictException;
|
|
197
|
-
(function (ConflictException) {
|
|
198
|
-
ConflictException.filterSensitiveLog = (obj) => ({
|
|
199
|
-
...obj,
|
|
200
|
-
});
|
|
201
|
-
})(ConflictException = exports.ConflictException || (exports.ConflictException = {}));
|
|
202
160
|
var DocumentInfo;
|
|
203
161
|
(function (DocumentInfo) {
|
|
204
162
|
DocumentInfo.filterSensitiveLog = (obj) => ({
|
|
@@ -342,12 +300,6 @@ var BatchPutDocumentResponse;
|
|
|
342
300
|
...obj,
|
|
343
301
|
});
|
|
344
302
|
})(BatchPutDocumentResponse = exports.BatchPutDocumentResponse || (exports.BatchPutDocumentResponse = {}));
|
|
345
|
-
var ServiceQuotaExceededException;
|
|
346
|
-
(function (ServiceQuotaExceededException) {
|
|
347
|
-
ServiceQuotaExceededException.filterSensitiveLog = (obj) => ({
|
|
348
|
-
...obj,
|
|
349
|
-
});
|
|
350
|
-
})(ServiceQuotaExceededException = exports.ServiceQuotaExceededException || (exports.ServiceQuotaExceededException = {}));
|
|
351
303
|
var ClearQuerySuggestionsRequest;
|
|
352
304
|
(function (ClearQuerySuggestionsRequest) {
|
|
353
305
|
ClearQuerySuggestionsRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -1251,12 +1203,6 @@ var GetSnapshotsResponse;
|
|
|
1251
1203
|
...obj,
|
|
1252
1204
|
});
|
|
1253
1205
|
})(GetSnapshotsResponse = exports.GetSnapshotsResponse || (exports.GetSnapshotsResponse = {}));
|
|
1254
|
-
var InvalidRequestException;
|
|
1255
|
-
(function (InvalidRequestException) {
|
|
1256
|
-
InvalidRequestException.filterSensitiveLog = (obj) => ({
|
|
1257
|
-
...obj,
|
|
1258
|
-
});
|
|
1259
|
-
})(InvalidRequestException = exports.InvalidRequestException || (exports.InvalidRequestException = {}));
|
|
1260
1206
|
var ListDataSourcesRequest;
|
|
1261
1207
|
(function (ListDataSourcesRequest) {
|
|
1262
1208
|
ListDataSourcesRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -1462,12 +1408,6 @@ var ListTagsForResourceResponse;
|
|
|
1462
1408
|
...obj,
|
|
1463
1409
|
});
|
|
1464
1410
|
})(ListTagsForResourceResponse = exports.ListTagsForResourceResponse || (exports.ListTagsForResourceResponse = {}));
|
|
1465
|
-
var ResourceUnavailableException;
|
|
1466
|
-
(function (ResourceUnavailableException) {
|
|
1467
|
-
ResourceUnavailableException.filterSensitiveLog = (obj) => ({
|
|
1468
|
-
...obj,
|
|
1469
|
-
});
|
|
1470
|
-
})(ResourceUnavailableException = exports.ResourceUnavailableException || (exports.ResourceUnavailableException = {}));
|
|
1471
1411
|
var ListThesauriRequest;
|
|
1472
1412
|
(function (ListThesauriRequest) {
|
|
1473
1413
|
ListThesauriRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -1583,18 +1523,22 @@ var QueryResultItem;
|
|
|
1583
1523
|
...obj,
|
|
1584
1524
|
});
|
|
1585
1525
|
})(QueryResultItem = exports.QueryResultItem || (exports.QueryResultItem = {}));
|
|
1526
|
+
var WarningCode;
|
|
1527
|
+
(function (WarningCode) {
|
|
1528
|
+
WarningCode["QUERY_LANGUAGE_INVALID_SYNTAX"] = "QUERY_LANGUAGE_INVALID_SYNTAX";
|
|
1529
|
+
})(WarningCode = exports.WarningCode || (exports.WarningCode = {}));
|
|
1530
|
+
var Warning;
|
|
1531
|
+
(function (Warning) {
|
|
1532
|
+
Warning.filterSensitiveLog = (obj) => ({
|
|
1533
|
+
...obj,
|
|
1534
|
+
});
|
|
1535
|
+
})(Warning = exports.Warning || (exports.Warning = {}));
|
|
1586
1536
|
var QueryResult;
|
|
1587
1537
|
(function (QueryResult) {
|
|
1588
1538
|
QueryResult.filterSensitiveLog = (obj) => ({
|
|
1589
1539
|
...obj,
|
|
1590
1540
|
});
|
|
1591
1541
|
})(QueryResult = exports.QueryResult || (exports.QueryResult = {}));
|
|
1592
|
-
var ResourceInUseException;
|
|
1593
|
-
(function (ResourceInUseException) {
|
|
1594
|
-
ResourceInUseException.filterSensitiveLog = (obj) => ({
|
|
1595
|
-
...obj,
|
|
1596
|
-
});
|
|
1597
|
-
})(ResourceInUseException = exports.ResourceInUseException || (exports.ResourceInUseException = {}));
|
|
1598
1542
|
var StartDataSourceSyncJobRequest;
|
|
1599
1543
|
(function (StartDataSourceSyncJobRequest) {
|
|
1600
1544
|
StartDataSourceSyncJobRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateGetSnapshots = void 0;
|
|
4
|
+
const GetSnapshotsCommand_1 = require("../commands/GetSnapshotsCommand");
|
|
5
|
+
const Kendra_1 = require("../Kendra");
|
|
6
|
+
const KendraClient_1 = require("../KendraClient");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new GetSnapshotsCommand_1.GetSnapshotsCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.getSnapshots(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateGetSnapshots(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.NextToken = token;
|
|
19
|
+
input["MaxResults"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof Kendra_1.Kendra) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof KendraClient_1.KendraClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected Kendra | KendraClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
token = page.NextToken;
|
|
31
|
+
hasNext = !!token;
|
|
32
|
+
}
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
exports.paginateGetSnapshots = paginateGetSnapshots;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./GetSnapshotsPaginator"), exports);
|
|
4
5
|
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./ListDataSourceSyncJobsPaginator"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./ListDataSourcesPaginator"), exports);
|
|
@@ -8847,6 +8847,9 @@ const deserializeAws_json1_1QueryResult = (output, context) => {
|
|
|
8847
8847
|
? deserializeAws_json1_1QueryResultItemList(output.ResultItems, context)
|
|
8848
8848
|
: undefined,
|
|
8849
8849
|
TotalNumberOfResults: smithy_client_1.expectInt32(output.TotalNumberOfResults),
|
|
8850
|
+
Warnings: output.Warnings !== undefined && output.Warnings !== null
|
|
8851
|
+
? deserializeAws_json1_1WarningList(output.Warnings, context)
|
|
8852
|
+
: undefined,
|
|
8850
8853
|
};
|
|
8851
8854
|
};
|
|
8852
8855
|
const deserializeAws_json1_1QueryResultItem = (output, context) => {
|
|
@@ -9484,6 +9487,22 @@ const deserializeAws_json1_1ValueImportanceMap = (output, context) => {
|
|
|
9484
9487
|
};
|
|
9485
9488
|
}, {});
|
|
9486
9489
|
};
|
|
9490
|
+
const deserializeAws_json1_1Warning = (output, context) => {
|
|
9491
|
+
return {
|
|
9492
|
+
Code: smithy_client_1.expectString(output.Code),
|
|
9493
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
9494
|
+
};
|
|
9495
|
+
};
|
|
9496
|
+
const deserializeAws_json1_1WarningList = (output, context) => {
|
|
9497
|
+
return (output || [])
|
|
9498
|
+
.filter((e) => e != null)
|
|
9499
|
+
.map((entry) => {
|
|
9500
|
+
if (entry === null) {
|
|
9501
|
+
return null;
|
|
9502
|
+
}
|
|
9503
|
+
return deserializeAws_json1_1Warning(entry, context);
|
|
9504
|
+
});
|
|
9505
|
+
};
|
|
9487
9506
|
const deserializeAws_json1_1WebCrawlerConfiguration = (output, context) => {
|
|
9488
9507
|
return {
|
|
9489
9508
|
AuthenticationConfiguration: output.AuthenticationConfiguration !== undefined && output.AuthenticationConfiguration !== null
|
|
@@ -13,13 +13,18 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
|
13
13
|
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
14
14
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
15
15
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
16
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
17
|
+
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
16
18
|
const getRuntimeConfig = (config) => {
|
|
17
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
|
+
const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
|
|
21
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
18
22
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
19
23
|
return {
|
|
20
24
|
...clientSharedValues,
|
|
21
25
|
...config,
|
|
22
26
|
runtime: "browser",
|
|
27
|
+
defaultsMode,
|
|
23
28
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
|
|
24
29
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
25
30
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
@@ -27,8 +32,8 @@ const getRuntimeConfig = (config) => {
|
|
|
27
32
|
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
28
33
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
29
34
|
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
|
|
30
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(),
|
|
31
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() =>
|
|
35
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
32
37
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
33
38
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
|
|
34
39
|
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
@@ -15,13 +15,18 @@ const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
|
|
|
15
15
|
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
16
16
|
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
17
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
18
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
|
+
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
18
20
|
const getRuntimeConfig = (config) => {
|
|
19
21
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
22
|
+
const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
|
|
23
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
20
24
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
21
25
|
return {
|
|
22
26
|
...clientSharedValues,
|
|
23
27
|
...config,
|
|
24
28
|
runtime: "node",
|
|
29
|
+
defaultsMode,
|
|
25
30
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
26
31
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
27
32
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
@@ -29,8 +34,11 @@ const getRuntimeConfig = (config) => {
|
|
|
29
34
|
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
30
35
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
31
36
|
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
32
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
|
|
33
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(
|
|
37
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
38
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
|
|
39
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
40
|
+
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
41
|
+
}),
|
|
34
42
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
35
43
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
36
44
|
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
package/dist-es/endpoints.js
CHANGED
|
@@ -3,10 +3,6 @@ import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
|
3
3
|
var regionHash = {
|
|
4
4
|
"us-east-1": {
|
|
5
5
|
variants: [
|
|
6
|
-
{
|
|
7
|
-
hostname: "kendra.us-east-1.amazonaws.com",
|
|
8
|
-
tags: [],
|
|
9
|
-
},
|
|
10
6
|
{
|
|
11
7
|
hostname: "kendra-fips.us-east-1.amazonaws.com",
|
|
12
8
|
tags: ["fips"],
|
|
@@ -15,10 +11,6 @@ var regionHash = {
|
|
|
15
11
|
},
|
|
16
12
|
"us-east-2": {
|
|
17
13
|
variants: [
|
|
18
|
-
{
|
|
19
|
-
hostname: "kendra.us-east-2.amazonaws.com",
|
|
20
|
-
tags: [],
|
|
21
|
-
},
|
|
22
14
|
{
|
|
23
15
|
hostname: "kendra-fips.us-east-2.amazonaws.com",
|
|
24
16
|
tags: ["fips"],
|
|
@@ -27,10 +19,6 @@ var regionHash = {
|
|
|
27
19
|
},
|
|
28
20
|
"us-gov-west-1": {
|
|
29
21
|
variants: [
|
|
30
|
-
{
|
|
31
|
-
hostname: "kendra.us-gov-west-1.amazonaws.com",
|
|
32
|
-
tags: [],
|
|
33
|
-
},
|
|
34
22
|
{
|
|
35
23
|
hostname: "kendra-fips.us-gov-west-1.amazonaws.com",
|
|
36
24
|
tags: ["fips"],
|
|
@@ -39,10 +27,6 @@ var regionHash = {
|
|
|
39
27
|
},
|
|
40
28
|
"us-west-2": {
|
|
41
29
|
variants: [
|
|
42
|
-
{
|
|
43
|
-
hostname: "kendra.us-west-2.amazonaws.com",
|
|
44
|
-
tags: [],
|
|
45
|
-
},
|
|
46
30
|
{
|
|
47
31
|
hostname: "kendra-fips.us-west-2.amazonaws.com",
|
|
48
32
|
tags: ["fips"],
|
|
@@ -4,10 +4,6 @@ export var AccessControlListConfiguration;
|
|
|
4
4
|
(function (AccessControlListConfiguration) {
|
|
5
5
|
AccessControlListConfiguration.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
6
6
|
})(AccessControlListConfiguration || (AccessControlListConfiguration = {}));
|
|
7
|
-
export var AccessDeniedException;
|
|
8
|
-
(function (AccessDeniedException) {
|
|
9
|
-
AccessDeniedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
10
|
-
})(AccessDeniedException || (AccessDeniedException = {}));
|
|
11
7
|
export var AclConfiguration;
|
|
12
8
|
(function (AclConfiguration) {
|
|
13
9
|
AclConfiguration.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -58,26 +54,6 @@ export var AssociateEntitiesToExperienceResponse;
|
|
|
58
54
|
(function (AssociateEntitiesToExperienceResponse) {
|
|
59
55
|
AssociateEntitiesToExperienceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
60
56
|
})(AssociateEntitiesToExperienceResponse || (AssociateEntitiesToExperienceResponse = {}));
|
|
61
|
-
export var InternalServerException;
|
|
62
|
-
(function (InternalServerException) {
|
|
63
|
-
InternalServerException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
64
|
-
})(InternalServerException || (InternalServerException = {}));
|
|
65
|
-
export var ResourceAlreadyExistException;
|
|
66
|
-
(function (ResourceAlreadyExistException) {
|
|
67
|
-
ResourceAlreadyExistException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
68
|
-
})(ResourceAlreadyExistException || (ResourceAlreadyExistException = {}));
|
|
69
|
-
export var ResourceNotFoundException;
|
|
70
|
-
(function (ResourceNotFoundException) {
|
|
71
|
-
ResourceNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
72
|
-
})(ResourceNotFoundException || (ResourceNotFoundException = {}));
|
|
73
|
-
export var ThrottlingException;
|
|
74
|
-
(function (ThrottlingException) {
|
|
75
|
-
ThrottlingException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
76
|
-
})(ThrottlingException || (ThrottlingException = {}));
|
|
77
|
-
export var ValidationException;
|
|
78
|
-
(function (ValidationException) {
|
|
79
|
-
ValidationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
80
|
-
})(ValidationException || (ValidationException = {}));
|
|
81
57
|
export var Persona;
|
|
82
58
|
(function (Persona) {
|
|
83
59
|
Persona["OWNER"] = "OWNER";
|
|
@@ -132,10 +108,6 @@ export var BatchDeleteDocumentResponse;
|
|
|
132
108
|
(function (BatchDeleteDocumentResponse) {
|
|
133
109
|
BatchDeleteDocumentResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
134
110
|
})(BatchDeleteDocumentResponse || (BatchDeleteDocumentResponse = {}));
|
|
135
|
-
export var ConflictException;
|
|
136
|
-
(function (ConflictException) {
|
|
137
|
-
ConflictException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
138
|
-
})(ConflictException || (ConflictException = {}));
|
|
139
111
|
export var DocumentInfo;
|
|
140
112
|
(function (DocumentInfo) {
|
|
141
113
|
DocumentInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -245,10 +217,6 @@ export var BatchPutDocumentResponse;
|
|
|
245
217
|
(function (BatchPutDocumentResponse) {
|
|
246
218
|
BatchPutDocumentResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
247
219
|
})(BatchPutDocumentResponse || (BatchPutDocumentResponse = {}));
|
|
248
|
-
export var ServiceQuotaExceededException;
|
|
249
|
-
(function (ServiceQuotaExceededException) {
|
|
250
|
-
ServiceQuotaExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
251
|
-
})(ServiceQuotaExceededException || (ServiceQuotaExceededException = {}));
|
|
252
220
|
export var ClearQuerySuggestionsRequest;
|
|
253
221
|
(function (ClearQuerySuggestionsRequest) {
|
|
254
222
|
ClearQuerySuggestionsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -937,10 +905,6 @@ export var GetSnapshotsResponse;
|
|
|
937
905
|
(function (GetSnapshotsResponse) {
|
|
938
906
|
GetSnapshotsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
939
907
|
})(GetSnapshotsResponse || (GetSnapshotsResponse = {}));
|
|
940
|
-
export var InvalidRequestException;
|
|
941
|
-
(function (InvalidRequestException) {
|
|
942
|
-
InvalidRequestException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
943
|
-
})(InvalidRequestException || (InvalidRequestException = {}));
|
|
944
908
|
export var ListDataSourcesRequest;
|
|
945
909
|
(function (ListDataSourcesRequest) {
|
|
946
910
|
ListDataSourcesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1077,10 +1041,6 @@ export var ListTagsForResourceResponse;
|
|
|
1077
1041
|
(function (ListTagsForResourceResponse) {
|
|
1078
1042
|
ListTagsForResourceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1079
1043
|
})(ListTagsForResourceResponse || (ListTagsForResourceResponse = {}));
|
|
1080
|
-
export var ResourceUnavailableException;
|
|
1081
|
-
(function (ResourceUnavailableException) {
|
|
1082
|
-
ResourceUnavailableException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1083
|
-
})(ResourceUnavailableException || (ResourceUnavailableException = {}));
|
|
1084
1044
|
export var ListThesauriRequest;
|
|
1085
1045
|
(function (ListThesauriRequest) {
|
|
1086
1046
|
ListThesauriRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1164,14 +1124,18 @@ export var QueryResultItem;
|
|
|
1164
1124
|
(function (QueryResultItem) {
|
|
1165
1125
|
QueryResultItem.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1166
1126
|
})(QueryResultItem || (QueryResultItem = {}));
|
|
1127
|
+
export var WarningCode;
|
|
1128
|
+
(function (WarningCode) {
|
|
1129
|
+
WarningCode["QUERY_LANGUAGE_INVALID_SYNTAX"] = "QUERY_LANGUAGE_INVALID_SYNTAX";
|
|
1130
|
+
})(WarningCode || (WarningCode = {}));
|
|
1131
|
+
export var Warning;
|
|
1132
|
+
(function (Warning) {
|
|
1133
|
+
Warning.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1134
|
+
})(Warning || (Warning = {}));
|
|
1167
1135
|
export var QueryResult;
|
|
1168
1136
|
(function (QueryResult) {
|
|
1169
1137
|
QueryResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1170
1138
|
})(QueryResult || (QueryResult = {}));
|
|
1171
|
-
export var ResourceInUseException;
|
|
1172
|
-
(function (ResourceInUseException) {
|
|
1173
|
-
ResourceInUseException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1174
|
-
})(ResourceInUseException || (ResourceInUseException = {}));
|
|
1175
1139
|
export var StartDataSourceSyncJobRequest;
|
|
1176
1140
|
(function (StartDataSourceSyncJobRequest) {
|
|
1177
1141
|
StartDataSourceSyncJobRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { GetSnapshotsCommand, } from "../commands/GetSnapshotsCommand";
|
|
3
|
+
import { Kendra } from "../Kendra";
|
|
4
|
+
import { KendraClient } from "../KendraClient";
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new GetSnapshotsCommand(input)], __read(args)))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.getSnapshots.apply(client, __spreadArray([input], __read(args)))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateGetSnapshots(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
37
|
+
}
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateGetSnapshots_1() {
|
|
39
|
+
var token, hasNext, page;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.NextToken = token;
|
|
49
|
+
input["MaxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof Kendra)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof KendraClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected Kendra | KendraClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
token = page.NextToken;
|
|
67
|
+
hasNext = !!token;
|
|
68
|
+
return [3, 1];
|
|
69
|
+
case 9: return [4, __await(undefined)];
|
|
70
|
+
case 10: return [2, _a.sent()];
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
}
|