@aws-sdk/client-kendra 3.975.0 → 3.978.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/index.js CHANGED
@@ -3727,6 +3727,30 @@ class UpdateThesaurusCommand extends smithyClient.Command
3727
3727
  .build() {
3728
3728
  }
3729
3729
 
3730
+ const paginateGetSnapshots = core.createPaginator(KendraClient, GetSnapshotsCommand, "NextToken", "NextToken", "MaxResults");
3731
+
3732
+ const paginateListAccessControlConfigurations = core.createPaginator(KendraClient, ListAccessControlConfigurationsCommand, "NextToken", "NextToken", "MaxResults");
3733
+
3734
+ const paginateListDataSources = core.createPaginator(KendraClient, ListDataSourcesCommand, "NextToken", "NextToken", "MaxResults");
3735
+
3736
+ const paginateListDataSourceSyncJobs = core.createPaginator(KendraClient, ListDataSourceSyncJobsCommand, "NextToken", "NextToken", "MaxResults");
3737
+
3738
+ const paginateListEntityPersonas = core.createPaginator(KendraClient, ListEntityPersonasCommand, "NextToken", "NextToken", "MaxResults");
3739
+
3740
+ const paginateListExperienceEntities = core.createPaginator(KendraClient, ListExperienceEntitiesCommand, "NextToken", "NextToken", "");
3741
+
3742
+ const paginateListExperiences = core.createPaginator(KendraClient, ListExperiencesCommand, "NextToken", "NextToken", "MaxResults");
3743
+
3744
+ const paginateListFaqs = core.createPaginator(KendraClient, ListFaqsCommand, "NextToken", "NextToken", "MaxResults");
3745
+
3746
+ const paginateListGroupsOlderThanOrderingId = core.createPaginator(KendraClient, ListGroupsOlderThanOrderingIdCommand, "NextToken", "NextToken", "MaxResults");
3747
+
3748
+ const paginateListIndices = core.createPaginator(KendraClient, ListIndicesCommand, "NextToken", "NextToken", "MaxResults");
3749
+
3750
+ const paginateListQuerySuggestionsBlockLists = core.createPaginator(KendraClient, ListQuerySuggestionsBlockListsCommand, "NextToken", "NextToken", "MaxResults");
3751
+
3752
+ const paginateListThesauri = core.createPaginator(KendraClient, ListThesauriCommand, "NextToken", "NextToken", "MaxResults");
3753
+
3730
3754
  const commands = {
3731
3755
  AssociateEntitiesToExperienceCommand,
3732
3756
  AssociatePersonasToEntitiesCommand,
@@ -3795,33 +3819,23 @@ const commands = {
3795
3819
  UpdateQuerySuggestionsConfigCommand,
3796
3820
  UpdateThesaurusCommand,
3797
3821
  };
3822
+ const paginators = {
3823
+ paginateGetSnapshots,
3824
+ paginateListAccessControlConfigurations,
3825
+ paginateListDataSources,
3826
+ paginateListDataSourceSyncJobs,
3827
+ paginateListEntityPersonas,
3828
+ paginateListExperienceEntities,
3829
+ paginateListExperiences,
3830
+ paginateListFaqs,
3831
+ paginateListGroupsOlderThanOrderingId,
3832
+ paginateListIndices,
3833
+ paginateListQuerySuggestionsBlockLists,
3834
+ paginateListThesauri,
3835
+ };
3798
3836
  class Kendra extends KendraClient {
3799
3837
  }
3800
- smithyClient.createAggregatedClient(commands, Kendra);
3801
-
3802
- const paginateGetSnapshots = core.createPaginator(KendraClient, GetSnapshotsCommand, "NextToken", "NextToken", "MaxResults");
3803
-
3804
- const paginateListAccessControlConfigurations = core.createPaginator(KendraClient, ListAccessControlConfigurationsCommand, "NextToken", "NextToken", "MaxResults");
3805
-
3806
- const paginateListDataSources = core.createPaginator(KendraClient, ListDataSourcesCommand, "NextToken", "NextToken", "MaxResults");
3807
-
3808
- const paginateListDataSourceSyncJobs = core.createPaginator(KendraClient, ListDataSourceSyncJobsCommand, "NextToken", "NextToken", "MaxResults");
3809
-
3810
- const paginateListEntityPersonas = core.createPaginator(KendraClient, ListEntityPersonasCommand, "NextToken", "NextToken", "MaxResults");
3811
-
3812
- const paginateListExperienceEntities = core.createPaginator(KendraClient, ListExperienceEntitiesCommand, "NextToken", "NextToken", "");
3813
-
3814
- const paginateListExperiences = core.createPaginator(KendraClient, ListExperiencesCommand, "NextToken", "NextToken", "MaxResults");
3815
-
3816
- const paginateListFaqs = core.createPaginator(KendraClient, ListFaqsCommand, "NextToken", "NextToken", "MaxResults");
3817
-
3818
- const paginateListGroupsOlderThanOrderingId = core.createPaginator(KendraClient, ListGroupsOlderThanOrderingIdCommand, "NextToken", "NextToken", "MaxResults");
3819
-
3820
- const paginateListIndices = core.createPaginator(KendraClient, ListIndicesCommand, "NextToken", "NextToken", "MaxResults");
3821
-
3822
- const paginateListQuerySuggestionsBlockLists = core.createPaginator(KendraClient, ListQuerySuggestionsBlockListsCommand, "NextToken", "NextToken", "MaxResults");
3823
-
3824
- const paginateListThesauri = core.createPaginator(KendraClient, ListThesauriCommand, "NextToken", "NextToken", "MaxResults");
3838
+ smithyClient.createAggregatedClient(commands, Kendra, { paginators });
3825
3839
 
3826
3840
  const HighlightType = {
3827
3841
  STANDARD: "STANDARD",
package/dist-es/Kendra.js CHANGED
@@ -66,6 +66,18 @@ import { UpdateQuerySuggestionsBlockListCommand, } from "./commands/UpdateQueryS
66
66
  import { UpdateQuerySuggestionsConfigCommand, } from "./commands/UpdateQuerySuggestionsConfigCommand";
67
67
  import { UpdateThesaurusCommand, } from "./commands/UpdateThesaurusCommand";
68
68
  import { KendraClient } from "./KendraClient";
69
+ import { paginateGetSnapshots } from "./pagination/GetSnapshotsPaginator";
70
+ import { paginateListAccessControlConfigurations } from "./pagination/ListAccessControlConfigurationsPaginator";
71
+ import { paginateListDataSources } from "./pagination/ListDataSourcesPaginator";
72
+ import { paginateListDataSourceSyncJobs } from "./pagination/ListDataSourceSyncJobsPaginator";
73
+ import { paginateListEntityPersonas } from "./pagination/ListEntityPersonasPaginator";
74
+ import { paginateListExperienceEntities } from "./pagination/ListExperienceEntitiesPaginator";
75
+ import { paginateListExperiences } from "./pagination/ListExperiencesPaginator";
76
+ import { paginateListFaqs } from "./pagination/ListFaqsPaginator";
77
+ import { paginateListGroupsOlderThanOrderingId } from "./pagination/ListGroupsOlderThanOrderingIdPaginator";
78
+ import { paginateListIndices } from "./pagination/ListIndicesPaginator";
79
+ import { paginateListQuerySuggestionsBlockLists } from "./pagination/ListQuerySuggestionsBlockListsPaginator";
80
+ import { paginateListThesauri } from "./pagination/ListThesauriPaginator";
69
81
  const commands = {
70
82
  AssociateEntitiesToExperienceCommand,
71
83
  AssociatePersonasToEntitiesCommand,
@@ -134,6 +146,20 @@ const commands = {
134
146
  UpdateQuerySuggestionsConfigCommand,
135
147
  UpdateThesaurusCommand,
136
148
  };
149
+ const paginators = {
150
+ paginateGetSnapshots,
151
+ paginateListAccessControlConfigurations,
152
+ paginateListDataSources,
153
+ paginateListDataSourceSyncJobs,
154
+ paginateListEntityPersonas,
155
+ paginateListExperienceEntities,
156
+ paginateListExperiences,
157
+ paginateListFaqs,
158
+ paginateListGroupsOlderThanOrderingId,
159
+ paginateListIndices,
160
+ paginateListQuerySuggestionsBlockLists,
161
+ paginateListThesauri,
162
+ };
137
163
  export class Kendra extends KendraClient {
138
164
  }
139
- createAggregatedClient(commands, Kendra);
165
+ createAggregatedClient(commands, Kendra, { paginators });
@@ -1,4 +1,4 @@
1
- import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
2
2
  import { AssociateEntitiesToExperienceCommandInput, AssociateEntitiesToExperienceCommandOutput } from "./commands/AssociateEntitiesToExperienceCommand";
3
3
  import { AssociatePersonasToEntitiesCommandInput, AssociatePersonasToEntitiesCommandOutput } from "./commands/AssociatePersonasToEntitiesCommand";
4
4
  import { BatchDeleteDocumentCommandInput, BatchDeleteDocumentCommandOutput } from "./commands/BatchDeleteDocumentCommand";
@@ -464,6 +464,90 @@ export interface Kendra {
464
464
  updateThesaurus(args: UpdateThesaurusCommandInput, options?: __HttpHandlerOptions): Promise<UpdateThesaurusCommandOutput>;
465
465
  updateThesaurus(args: UpdateThesaurusCommandInput, cb: (err: any, data?: UpdateThesaurusCommandOutput) => void): void;
466
466
  updateThesaurus(args: UpdateThesaurusCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateThesaurusCommandOutput) => void): void;
467
+ /**
468
+ * @see {@link GetSnapshotsCommand}
469
+ * @param args - command input.
470
+ * @param paginationConfig - optional pagination config.
471
+ * @returns AsyncIterable of {@link GetSnapshotsCommandOutput}.
472
+ */
473
+ paginateGetSnapshots(args: GetSnapshotsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<GetSnapshotsCommandOutput>;
474
+ /**
475
+ * @see {@link ListAccessControlConfigurationsCommand}
476
+ * @param args - command input.
477
+ * @param paginationConfig - optional pagination config.
478
+ * @returns AsyncIterable of {@link ListAccessControlConfigurationsCommandOutput}.
479
+ */
480
+ paginateListAccessControlConfigurations(args: ListAccessControlConfigurationsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListAccessControlConfigurationsCommandOutput>;
481
+ /**
482
+ * @see {@link ListDataSourcesCommand}
483
+ * @param args - command input.
484
+ * @param paginationConfig - optional pagination config.
485
+ * @returns AsyncIterable of {@link ListDataSourcesCommandOutput}.
486
+ */
487
+ paginateListDataSources(args: ListDataSourcesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListDataSourcesCommandOutput>;
488
+ /**
489
+ * @see {@link ListDataSourceSyncJobsCommand}
490
+ * @param args - command input.
491
+ * @param paginationConfig - optional pagination config.
492
+ * @returns AsyncIterable of {@link ListDataSourceSyncJobsCommandOutput}.
493
+ */
494
+ paginateListDataSourceSyncJobs(args: ListDataSourceSyncJobsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListDataSourceSyncJobsCommandOutput>;
495
+ /**
496
+ * @see {@link ListEntityPersonasCommand}
497
+ * @param args - command input.
498
+ * @param paginationConfig - optional pagination config.
499
+ * @returns AsyncIterable of {@link ListEntityPersonasCommandOutput}.
500
+ */
501
+ paginateListEntityPersonas(args: ListEntityPersonasCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListEntityPersonasCommandOutput>;
502
+ /**
503
+ * @see {@link ListExperienceEntitiesCommand}
504
+ * @param args - command input.
505
+ * @param paginationConfig - optional pagination config.
506
+ * @returns AsyncIterable of {@link ListExperienceEntitiesCommandOutput}.
507
+ */
508
+ paginateListExperienceEntities(args: ListExperienceEntitiesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListExperienceEntitiesCommandOutput>;
509
+ /**
510
+ * @see {@link ListExperiencesCommand}
511
+ * @param args - command input.
512
+ * @param paginationConfig - optional pagination config.
513
+ * @returns AsyncIterable of {@link ListExperiencesCommandOutput}.
514
+ */
515
+ paginateListExperiences(args: ListExperiencesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListExperiencesCommandOutput>;
516
+ /**
517
+ * @see {@link ListFaqsCommand}
518
+ * @param args - command input.
519
+ * @param paginationConfig - optional pagination config.
520
+ * @returns AsyncIterable of {@link ListFaqsCommandOutput}.
521
+ */
522
+ paginateListFaqs(args: ListFaqsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListFaqsCommandOutput>;
523
+ /**
524
+ * @see {@link ListGroupsOlderThanOrderingIdCommand}
525
+ * @param args - command input.
526
+ * @param paginationConfig - optional pagination config.
527
+ * @returns AsyncIterable of {@link ListGroupsOlderThanOrderingIdCommandOutput}.
528
+ */
529
+ paginateListGroupsOlderThanOrderingId(args: ListGroupsOlderThanOrderingIdCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListGroupsOlderThanOrderingIdCommandOutput>;
530
+ /**
531
+ * @see {@link ListIndicesCommand}
532
+ * @param args - command input.
533
+ * @param paginationConfig - optional pagination config.
534
+ * @returns AsyncIterable of {@link ListIndicesCommandOutput}.
535
+ */
536
+ paginateListIndices(args?: ListIndicesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListIndicesCommandOutput>;
537
+ /**
538
+ * @see {@link ListQuerySuggestionsBlockListsCommand}
539
+ * @param args - command input.
540
+ * @param paginationConfig - optional pagination config.
541
+ * @returns AsyncIterable of {@link ListQuerySuggestionsBlockListsCommandOutput}.
542
+ */
543
+ paginateListQuerySuggestionsBlockLists(args: ListQuerySuggestionsBlockListsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListQuerySuggestionsBlockListsCommandOutput>;
544
+ /**
545
+ * @see {@link ListThesauriCommand}
546
+ * @param args - command input.
547
+ * @param paginationConfig - optional pagination config.
548
+ * @returns AsyncIterable of {@link ListThesauriCommandOutput}.
549
+ */
550
+ paginateListThesauri(args: ListThesauriCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListThesauriCommandOutput>;
467
551
  }
468
552
  /**
469
553
  * <p>Amazon Kendra is a service for indexing large document sets.</p>
@@ -1,4 +1,8 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import {
2
+ HttpHandlerOptions as __HttpHandlerOptions,
3
+ PaginationConfiguration,
4
+ Paginator,
5
+ } from "@smithy/types";
2
6
  import {
3
7
  AssociateEntitiesToExperienceCommandInput,
4
8
  AssociateEntitiesToExperienceCommandOutput,
@@ -1139,5 +1143,89 @@ export interface Kendra {
1139
1143
  options: __HttpHandlerOptions,
1140
1144
  cb: (err: any, data?: UpdateThesaurusCommandOutput) => void
1141
1145
  ): void;
1146
+ paginateGetSnapshots(
1147
+ args: GetSnapshotsCommandInput,
1148
+ paginationConfig?: Pick<
1149
+ PaginationConfiguration,
1150
+ Exclude<keyof PaginationConfiguration, "client">
1151
+ >
1152
+ ): Paginator<GetSnapshotsCommandOutput>;
1153
+ paginateListAccessControlConfigurations(
1154
+ args: ListAccessControlConfigurationsCommandInput,
1155
+ paginationConfig?: Pick<
1156
+ PaginationConfiguration,
1157
+ Exclude<keyof PaginationConfiguration, "client">
1158
+ >
1159
+ ): Paginator<ListAccessControlConfigurationsCommandOutput>;
1160
+ paginateListDataSources(
1161
+ args: ListDataSourcesCommandInput,
1162
+ paginationConfig?: Pick<
1163
+ PaginationConfiguration,
1164
+ Exclude<keyof PaginationConfiguration, "client">
1165
+ >
1166
+ ): Paginator<ListDataSourcesCommandOutput>;
1167
+ paginateListDataSourceSyncJobs(
1168
+ args: ListDataSourceSyncJobsCommandInput,
1169
+ paginationConfig?: Pick<
1170
+ PaginationConfiguration,
1171
+ Exclude<keyof PaginationConfiguration, "client">
1172
+ >
1173
+ ): Paginator<ListDataSourceSyncJobsCommandOutput>;
1174
+ paginateListEntityPersonas(
1175
+ args: ListEntityPersonasCommandInput,
1176
+ paginationConfig?: Pick<
1177
+ PaginationConfiguration,
1178
+ Exclude<keyof PaginationConfiguration, "client">
1179
+ >
1180
+ ): Paginator<ListEntityPersonasCommandOutput>;
1181
+ paginateListExperienceEntities(
1182
+ args: ListExperienceEntitiesCommandInput,
1183
+ paginationConfig?: Pick<
1184
+ PaginationConfiguration,
1185
+ Exclude<keyof PaginationConfiguration, "client">
1186
+ >
1187
+ ): Paginator<ListExperienceEntitiesCommandOutput>;
1188
+ paginateListExperiences(
1189
+ args: ListExperiencesCommandInput,
1190
+ paginationConfig?: Pick<
1191
+ PaginationConfiguration,
1192
+ Exclude<keyof PaginationConfiguration, "client">
1193
+ >
1194
+ ): Paginator<ListExperiencesCommandOutput>;
1195
+ paginateListFaqs(
1196
+ args: ListFaqsCommandInput,
1197
+ paginationConfig?: Pick<
1198
+ PaginationConfiguration,
1199
+ Exclude<keyof PaginationConfiguration, "client">
1200
+ >
1201
+ ): Paginator<ListFaqsCommandOutput>;
1202
+ paginateListGroupsOlderThanOrderingId(
1203
+ args: ListGroupsOlderThanOrderingIdCommandInput,
1204
+ paginationConfig?: Pick<
1205
+ PaginationConfiguration,
1206
+ Exclude<keyof PaginationConfiguration, "client">
1207
+ >
1208
+ ): Paginator<ListGroupsOlderThanOrderingIdCommandOutput>;
1209
+ paginateListIndices(
1210
+ args?: ListIndicesCommandInput,
1211
+ paginationConfig?: Pick<
1212
+ PaginationConfiguration,
1213
+ Exclude<keyof PaginationConfiguration, "client">
1214
+ >
1215
+ ): Paginator<ListIndicesCommandOutput>;
1216
+ paginateListQuerySuggestionsBlockLists(
1217
+ args: ListQuerySuggestionsBlockListsCommandInput,
1218
+ paginationConfig?: Pick<
1219
+ PaginationConfiguration,
1220
+ Exclude<keyof PaginationConfiguration, "client">
1221
+ >
1222
+ ): Paginator<ListQuerySuggestionsBlockListsCommandOutput>;
1223
+ paginateListThesauri(
1224
+ args: ListThesauriCommandInput,
1225
+ paginationConfig?: Pick<
1226
+ PaginationConfiguration,
1227
+ Exclude<keyof PaginationConfiguration, "client">
1228
+ >
1229
+ ): Paginator<ListThesauriCommandOutput>;
1142
1230
  }
1143
1231
  export declare class Kendra extends KendraClient implements Kendra {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-kendra",
3
3
  "description": "AWS SDK for JavaScript Kendra Client for Node.js, Browser and React Native",
4
- "version": "3.975.0",
4
+ "version": "3.978.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-kendra",
@@ -21,38 +21,38 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.973.1",
25
- "@aws-sdk/credential-provider-node": "^3.972.1",
26
- "@aws-sdk/middleware-host-header": "^3.972.1",
27
- "@aws-sdk/middleware-logger": "^3.972.1",
28
- "@aws-sdk/middleware-recursion-detection": "^3.972.1",
29
- "@aws-sdk/middleware-user-agent": "^3.972.2",
30
- "@aws-sdk/region-config-resolver": "^3.972.1",
31
- "@aws-sdk/types": "^3.973.0",
24
+ "@aws-sdk/core": "^3.973.4",
25
+ "@aws-sdk/credential-provider-node": "^3.972.2",
26
+ "@aws-sdk/middleware-host-header": "^3.972.2",
27
+ "@aws-sdk/middleware-logger": "^3.972.2",
28
+ "@aws-sdk/middleware-recursion-detection": "^3.972.2",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.4",
30
+ "@aws-sdk/region-config-resolver": "^3.972.2",
31
+ "@aws-sdk/types": "^3.973.1",
32
32
  "@aws-sdk/util-endpoints": "3.972.0",
33
- "@aws-sdk/util-user-agent-browser": "^3.972.1",
34
- "@aws-sdk/util-user-agent-node": "^3.972.1",
33
+ "@aws-sdk/util-user-agent-browser": "^3.972.2",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.2",
35
35
  "@smithy/config-resolver": "^4.4.6",
36
- "@smithy/core": "^3.21.1",
36
+ "@smithy/core": "^3.22.0",
37
37
  "@smithy/fetch-http-handler": "^5.3.9",
38
38
  "@smithy/hash-node": "^4.2.8",
39
39
  "@smithy/invalid-dependency": "^4.2.8",
40
40
  "@smithy/middleware-content-length": "^4.2.8",
41
- "@smithy/middleware-endpoint": "^4.4.11",
42
- "@smithy/middleware-retry": "^4.4.27",
41
+ "@smithy/middleware-endpoint": "^4.4.12",
42
+ "@smithy/middleware-retry": "^4.4.29",
43
43
  "@smithy/middleware-serde": "^4.2.9",
44
44
  "@smithy/middleware-stack": "^4.2.8",
45
45
  "@smithy/node-config-provider": "^4.3.8",
46
46
  "@smithy/node-http-handler": "^4.4.8",
47
47
  "@smithy/protocol-http": "^5.3.8",
48
- "@smithy/smithy-client": "^4.10.12",
48
+ "@smithy/smithy-client": "^4.11.1",
49
49
  "@smithy/types": "^4.12.0",
50
50
  "@smithy/url-parser": "^4.2.8",
51
51
  "@smithy/util-base64": "^4.3.0",
52
52
  "@smithy/util-body-length-browser": "^4.2.0",
53
53
  "@smithy/util-body-length-node": "^4.2.1",
54
- "@smithy/util-defaults-mode-browser": "^4.3.26",
55
- "@smithy/util-defaults-mode-node": "^4.2.29",
54
+ "@smithy/util-defaults-mode-browser": "^4.3.28",
55
+ "@smithy/util-defaults-mode-node": "^4.2.31",
56
56
  "@smithy/util-endpoints": "^3.2.8",
57
57
  "@smithy/util-middleware": "^4.2.8",
58
58
  "@smithy/util-retry": "^4.2.8",