@aws-sdk/client-lex-models-v2 3.204.0 → 3.205.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.
Files changed (78) hide show
  1. package/CHANGELOG.md +1119 -0
  2. package/README.md +7 -7
  3. package/dist-cjs/LexModelsV2.js +60 -0
  4. package/dist-cjs/commands/BatchCreateCustomVocabularyItemCommand.js +46 -0
  5. package/dist-cjs/commands/BatchDeleteCustomVocabularyItemCommand.js +46 -0
  6. package/dist-cjs/commands/BatchUpdateCustomVocabularyItemCommand.js +46 -0
  7. package/dist-cjs/commands/ListCustomVocabularyItemsCommand.js +46 -0
  8. package/dist-cjs/commands/UpdateBotAliasCommand.js +3 -3
  9. package/dist-cjs/commands/UpdateBotCommand.js +3 -3
  10. package/dist-cjs/commands/UpdateBotLocaleCommand.js +3 -3
  11. package/dist-cjs/commands/UpdateBotRecommendationCommand.js +3 -3
  12. package/dist-cjs/commands/UpdateExportCommand.js +3 -3
  13. package/dist-cjs/commands/UpdateResourcePolicyCommand.js +3 -3
  14. package/dist-cjs/commands/UpdateSlotTypeCommand.js +1 -2
  15. package/dist-cjs/commands/index.js +4 -0
  16. package/dist-cjs/models/models_0.js +127 -127
  17. package/dist-cjs/models/models_1.js +58 -1
  18. package/dist-cjs/pagination/ListCustomVocabularyItemsPaginator.js +36 -0
  19. package/dist-cjs/pagination/index.js +1 -0
  20. package/dist-cjs/protocols/Aws_restJson1.js +420 -3
  21. package/dist-es/LexModelsV2.js +60 -0
  22. package/dist-es/commands/BatchCreateCustomVocabularyItemCommand.js +42 -0
  23. package/dist-es/commands/BatchDeleteCustomVocabularyItemCommand.js +42 -0
  24. package/dist-es/commands/BatchUpdateCustomVocabularyItemCommand.js +42 -0
  25. package/dist-es/commands/ListCustomVocabularyItemsCommand.js +42 -0
  26. package/dist-es/commands/UpdateBotAliasCommand.js +1 -1
  27. package/dist-es/commands/UpdateBotCommand.js +1 -1
  28. package/dist-es/commands/UpdateBotLocaleCommand.js +1 -1
  29. package/dist-es/commands/UpdateBotRecommendationCommand.js +1 -1
  30. package/dist-es/commands/UpdateExportCommand.js +1 -1
  31. package/dist-es/commands/UpdateResourcePolicyCommand.js +1 -1
  32. package/dist-es/commands/UpdateSlotTypeCommand.js +1 -2
  33. package/dist-es/commands/index.js +4 -0
  34. package/dist-es/models/models_0.js +104 -103
  35. package/dist-es/models/models_1.js +44 -0
  36. package/dist-es/pagination/ListCustomVocabularyItemsPaginator.js +32 -0
  37. package/dist-es/pagination/index.js +1 -0
  38. package/dist-es/protocols/Aws_restJson1.js +409 -0
  39. package/dist-types/LexModelsV2.d.ts +34 -1
  40. package/dist-types/LexModelsV2Client.d.ts +6 -2
  41. package/dist-types/commands/BatchCreateCustomVocabularyItemCommand.d.ts +38 -0
  42. package/dist-types/commands/BatchDeleteCustomVocabularyItemCommand.d.ts +38 -0
  43. package/dist-types/commands/BatchUpdateCustomVocabularyItemCommand.d.ts +38 -0
  44. package/dist-types/commands/ListCustomVocabularyItemsCommand.d.ts +38 -0
  45. package/dist-types/commands/ListRecommendedIntentsCommand.d.ts +2 -1
  46. package/dist-types/commands/UpdateBotAliasCommand.d.ts +1 -1
  47. package/dist-types/commands/UpdateBotCommand.d.ts +1 -1
  48. package/dist-types/commands/UpdateBotLocaleCommand.d.ts +1 -1
  49. package/dist-types/commands/UpdateBotRecommendationCommand.d.ts +1 -1
  50. package/dist-types/commands/UpdateExportCommand.d.ts +1 -1
  51. package/dist-types/commands/UpdateResourcePolicyCommand.d.ts +1 -1
  52. package/dist-types/commands/UpdateSlotTypeCommand.d.ts +1 -2
  53. package/dist-types/commands/index.d.ts +4 -0
  54. package/dist-types/models/models_0.d.ts +409 -599
  55. package/dist-types/models/models_1.d.ts +525 -1
  56. package/dist-types/pagination/ListCustomVocabularyItemsPaginator.d.ts +4 -0
  57. package/dist-types/pagination/index.d.ts +1 -0
  58. package/dist-types/protocols/Aws_restJson1.d.ts +12 -0
  59. package/dist-types/ts3.4/LexModelsV2.d.ts +68 -0
  60. package/dist-types/ts3.4/LexModelsV2Client.d.ts +24 -0
  61. package/dist-types/ts3.4/commands/BatchCreateCustomVocabularyItemCommand.d.ts +41 -0
  62. package/dist-types/ts3.4/commands/BatchDeleteCustomVocabularyItemCommand.d.ts +41 -0
  63. package/dist-types/ts3.4/commands/BatchUpdateCustomVocabularyItemCommand.d.ts +41 -0
  64. package/dist-types/ts3.4/commands/ListCustomVocabularyItemsCommand.d.ts +41 -0
  65. package/dist-types/ts3.4/commands/UpdateBotAliasCommand.d.ts +1 -1
  66. package/dist-types/ts3.4/commands/UpdateBotCommand.d.ts +1 -1
  67. package/dist-types/ts3.4/commands/UpdateBotLocaleCommand.d.ts +1 -1
  68. package/dist-types/ts3.4/commands/UpdateBotRecommendationCommand.d.ts +1 -1
  69. package/dist-types/ts3.4/commands/UpdateExportCommand.d.ts +1 -1
  70. package/dist-types/ts3.4/commands/UpdateResourcePolicyCommand.d.ts +1 -1
  71. package/dist-types/ts3.4/commands/UpdateSlotTypeCommand.d.ts +4 -2
  72. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  73. package/dist-types/ts3.4/models/models_0.d.ts +150 -191
  74. package/dist-types/ts3.4/models/models_1.d.ts +169 -0
  75. package/dist-types/ts3.4/pagination/ListCustomVocabularyItemsPaginator.d.ts +11 -0
  76. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  77. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +48 -0
  78. package/package.json +1 -1
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { BatchDeleteCustomVocabularyItemRequestFilterSensitiveLog, BatchDeleteCustomVocabularyItemResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1BatchDeleteCustomVocabularyItemCommand, serializeAws_restJson1BatchDeleteCustomVocabularyItemCommand, } from "../protocols/Aws_restJson1";
6
+ export class BatchDeleteCustomVocabularyItemCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, BatchDeleteCustomVocabularyItemCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "LexModelsV2Client";
25
+ const commandName = "BatchDeleteCustomVocabularyItemCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: BatchDeleteCustomVocabularyItemRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: BatchDeleteCustomVocabularyItemResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1BatchDeleteCustomVocabularyItemCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1BatchDeleteCustomVocabularyItemCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { BatchUpdateCustomVocabularyItemRequestFilterSensitiveLog, BatchUpdateCustomVocabularyItemResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1BatchUpdateCustomVocabularyItemCommand, serializeAws_restJson1BatchUpdateCustomVocabularyItemCommand, } from "../protocols/Aws_restJson1";
6
+ export class BatchUpdateCustomVocabularyItemCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, BatchUpdateCustomVocabularyItemCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "LexModelsV2Client";
25
+ const commandName = "BatchUpdateCustomVocabularyItemCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: BatchUpdateCustomVocabularyItemRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: BatchUpdateCustomVocabularyItemResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1BatchUpdateCustomVocabularyItemCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1BatchUpdateCustomVocabularyItemCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListCustomVocabularyItemsRequestFilterSensitiveLog, ListCustomVocabularyItemsResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1ListCustomVocabularyItemsCommand, serializeAws_restJson1ListCustomVocabularyItemsCommand, } from "../protocols/Aws_restJson1";
6
+ export class ListCustomVocabularyItemsCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListCustomVocabularyItemsCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "LexModelsV2Client";
25
+ const commandName = "ListCustomVocabularyItemsCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: ListCustomVocabularyItemsRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: ListCustomVocabularyItemsResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1ListCustomVocabularyItemsCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1ListCustomVocabularyItemsCommand(output, context);
41
+ }
42
+ }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { UpdateBotAliasRequestFilterSensitiveLog, UpdateBotAliasResponseFilterSensitiveLog, } from "../models/models_0";
4
+ import { UpdateBotAliasRequestFilterSensitiveLog, UpdateBotAliasResponseFilterSensitiveLog, } from "../models/models_1";
5
5
  import { deserializeAws_restJson1UpdateBotAliasCommand, serializeAws_restJson1UpdateBotAliasCommand, } from "../protocols/Aws_restJson1";
6
6
  export class UpdateBotAliasCommand extends $Command {
7
7
  constructor(input) {
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { UpdateBotRequestFilterSensitiveLog, UpdateBotResponseFilterSensitiveLog, } from "../models/models_0";
4
+ import { UpdateBotRequestFilterSensitiveLog, UpdateBotResponseFilterSensitiveLog, } from "../models/models_1";
5
5
  import { deserializeAws_restJson1UpdateBotCommand, serializeAws_restJson1UpdateBotCommand, } from "../protocols/Aws_restJson1";
6
6
  export class UpdateBotCommand extends $Command {
7
7
  constructor(input) {
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { UpdateBotLocaleRequestFilterSensitiveLog, UpdateBotLocaleResponseFilterSensitiveLog, } from "../models/models_0";
4
+ import { UpdateBotLocaleRequestFilterSensitiveLog, UpdateBotLocaleResponseFilterSensitiveLog, } from "../models/models_1";
5
5
  import { deserializeAws_restJson1UpdateBotLocaleCommand, serializeAws_restJson1UpdateBotLocaleCommand, } from "../protocols/Aws_restJson1";
6
6
  export class UpdateBotLocaleCommand extends $Command {
7
7
  constructor(input) {
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { UpdateBotRecommendationRequestFilterSensitiveLog, UpdateBotRecommendationResponseFilterSensitiveLog, } from "../models/models_0";
4
+ import { UpdateBotRecommendationRequestFilterSensitiveLog, UpdateBotRecommendationResponseFilterSensitiveLog, } from "../models/models_1";
5
5
  import { deserializeAws_restJson1UpdateBotRecommendationCommand, serializeAws_restJson1UpdateBotRecommendationCommand, } from "../protocols/Aws_restJson1";
6
6
  export class UpdateBotRecommendationCommand extends $Command {
7
7
  constructor(input) {
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { UpdateExportRequestFilterSensitiveLog, UpdateExportResponseFilterSensitiveLog, } from "../models/models_0";
4
+ import { UpdateExportRequestFilterSensitiveLog, UpdateExportResponseFilterSensitiveLog, } from "../models/models_1";
5
5
  import { deserializeAws_restJson1UpdateExportCommand, serializeAws_restJson1UpdateExportCommand, } from "../protocols/Aws_restJson1";
6
6
  export class UpdateExportCommand extends $Command {
7
7
  constructor(input) {
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { UpdateResourcePolicyRequestFilterSensitiveLog, UpdateResourcePolicyResponseFilterSensitiveLog, } from "../models/models_0";
4
+ import { UpdateResourcePolicyRequestFilterSensitiveLog, UpdateResourcePolicyResponseFilterSensitiveLog, } from "../models/models_1";
5
5
  import { deserializeAws_restJson1UpdateResourcePolicyCommand, serializeAws_restJson1UpdateResourcePolicyCommand, } from "../protocols/Aws_restJson1";
6
6
  export class UpdateResourcePolicyCommand extends $Command {
7
7
  constructor(input) {
@@ -1,8 +1,7 @@
1
1
  import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { UpdateSlotTypeRequestFilterSensitiveLog } from "../models/models_0";
5
- import { UpdateSlotTypeResponseFilterSensitiveLog } from "../models/models_1";
4
+ import { UpdateSlotTypeRequestFilterSensitiveLog, UpdateSlotTypeResponseFilterSensitiveLog, } from "../models/models_1";
6
5
  import { deserializeAws_restJson1UpdateSlotTypeCommand, serializeAws_restJson1UpdateSlotTypeCommand, } from "../protocols/Aws_restJson1";
7
6
  export class UpdateSlotTypeCommand extends $Command {
8
7
  constructor(input) {
@@ -1,3 +1,6 @@
1
+ export * from "./BatchCreateCustomVocabularyItemCommand";
2
+ export * from "./BatchDeleteCustomVocabularyItemCommand";
3
+ export * from "./BatchUpdateCustomVocabularyItemCommand";
1
4
  export * from "./BuildBotLocaleCommand";
2
5
  export * from "./CreateBotAliasCommand";
3
6
  export * from "./CreateBotCommand";
@@ -43,6 +46,7 @@ export * from "./ListBotVersionsCommand";
43
46
  export * from "./ListBotsCommand";
44
47
  export * from "./ListBuiltInIntentsCommand";
45
48
  export * from "./ListBuiltInSlotTypesCommand";
49
+ export * from "./ListCustomVocabularyItemsCommand";
46
50
  export * from "./ListExportsCommand";
47
51
  export * from "./ListImportsCommand";
48
52
  export * from "./ListIntentsCommand";
@@ -28,6 +28,74 @@ export var AssociatedTranscriptFilterName;
28
28
  AssociatedTranscriptFilterName["IntentId"] = "IntentId";
29
29
  AssociatedTranscriptFilterName["SlotTypeId"] = "SlotTypeId";
30
30
  })(AssociatedTranscriptFilterName || (AssociatedTranscriptFilterName = {}));
31
+ export var ErrorCode;
32
+ (function (ErrorCode) {
33
+ ErrorCode["DUPLICATE_INPUT"] = "DUPLICATE_INPUT";
34
+ ErrorCode["INTERNAL_SERVER_FAILURE"] = "INTERNAL_SERVER_FAILURE";
35
+ ErrorCode["RESOURCE_ALREADY_EXISTS"] = "RESOURCE_ALREADY_EXISTS";
36
+ ErrorCode["RESOURCE_DOES_NOT_EXIST"] = "RESOURCE_DOES_NOT_EXIST";
37
+ })(ErrorCode || (ErrorCode = {}));
38
+ export class InternalServerException extends __BaseException {
39
+ constructor(opts) {
40
+ super({
41
+ name: "InternalServerException",
42
+ $fault: "server",
43
+ ...opts,
44
+ });
45
+ this.name = "InternalServerException";
46
+ this.$fault = "server";
47
+ Object.setPrototypeOf(this, InternalServerException.prototype);
48
+ }
49
+ }
50
+ export class ResourceNotFoundException extends __BaseException {
51
+ constructor(opts) {
52
+ super({
53
+ name: "ResourceNotFoundException",
54
+ $fault: "client",
55
+ ...opts,
56
+ });
57
+ this.name = "ResourceNotFoundException";
58
+ this.$fault = "client";
59
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
60
+ }
61
+ }
62
+ export class ServiceQuotaExceededException extends __BaseException {
63
+ constructor(opts) {
64
+ super({
65
+ name: "ServiceQuotaExceededException",
66
+ $fault: "client",
67
+ ...opts,
68
+ });
69
+ this.name = "ServiceQuotaExceededException";
70
+ this.$fault = "client";
71
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
72
+ }
73
+ }
74
+ export class ThrottlingException extends __BaseException {
75
+ constructor(opts) {
76
+ super({
77
+ name: "ThrottlingException",
78
+ $fault: "client",
79
+ ...opts,
80
+ });
81
+ this.name = "ThrottlingException";
82
+ this.$fault = "client";
83
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
84
+ this.retryAfterSeconds = opts.retryAfterSeconds;
85
+ }
86
+ }
87
+ export class ValidationException extends __BaseException {
88
+ constructor(opts) {
89
+ super({
90
+ name: "ValidationException",
91
+ $fault: "client",
92
+ ...opts,
93
+ });
94
+ this.name = "ValidationException";
95
+ this.$fault = "client";
96
+ Object.setPrototypeOf(this, ValidationException.prototype);
97
+ }
98
+ }
31
99
  export var BotAliasStatus;
32
100
  (function (BotAliasStatus) {
33
101
  BotAliasStatus["Available"] = "Available";
@@ -116,18 +184,6 @@ export class ConflictException extends __BaseException {
116
184
  Object.setPrototypeOf(this, ConflictException.prototype);
117
185
  }
118
186
  }
119
- export class InternalServerException extends __BaseException {
120
- constructor(opts) {
121
- super({
122
- name: "InternalServerException",
123
- $fault: "server",
124
- ...opts,
125
- });
126
- this.name = "InternalServerException";
127
- this.$fault = "server";
128
- Object.setPrototypeOf(this, InternalServerException.prototype);
129
- }
130
- }
131
187
  export class PreconditionFailedException extends __BaseException {
132
188
  constructor(opts) {
133
189
  super({
@@ -140,43 +196,6 @@ export class PreconditionFailedException extends __BaseException {
140
196
  Object.setPrototypeOf(this, PreconditionFailedException.prototype);
141
197
  }
142
198
  }
143
- export class ServiceQuotaExceededException extends __BaseException {
144
- constructor(opts) {
145
- super({
146
- name: "ServiceQuotaExceededException",
147
- $fault: "client",
148
- ...opts,
149
- });
150
- this.name = "ServiceQuotaExceededException";
151
- this.$fault = "client";
152
- Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
153
- }
154
- }
155
- export class ThrottlingException extends __BaseException {
156
- constructor(opts) {
157
- super({
158
- name: "ThrottlingException",
159
- $fault: "client",
160
- ...opts,
161
- });
162
- this.name = "ThrottlingException";
163
- this.$fault = "client";
164
- Object.setPrototypeOf(this, ThrottlingException.prototype);
165
- this.retryAfterSeconds = opts.retryAfterSeconds;
166
- }
167
- }
168
- export class ValidationException extends __BaseException {
169
- constructor(opts) {
170
- super({
171
- name: "ValidationException",
172
- $fault: "client",
173
- ...opts,
174
- });
175
- this.name = "ValidationException";
176
- this.$fault = "client";
177
- Object.setPrototypeOf(this, ValidationException.prototype);
178
- }
179
- }
180
199
  export var BuiltInIntentSortAttribute;
181
200
  (function (BuiltInIntentSortAttribute) {
182
201
  BuiltInIntentSortAttribute["IntentSignature"] = "IntentSignature";
@@ -214,18 +233,6 @@ export var ExportStatus;
214
233
  ExportStatus["Failed"] = "Failed";
215
234
  ExportStatus["InProgress"] = "InProgress";
216
235
  })(ExportStatus || (ExportStatus = {}));
217
- export class ResourceNotFoundException extends __BaseException {
218
- constructor(opts) {
219
- super({
220
- name: "ResourceNotFoundException",
221
- $fault: "client",
222
- ...opts,
223
- });
224
- this.name = "ResourceNotFoundException";
225
- this.$fault = "client";
226
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
227
- }
228
- }
229
236
  export var MessageSelectionStrategy;
230
237
  (function (MessageSelectionStrategy) {
231
238
  MessageSelectionStrategy["Ordered"] = "Ordered";
@@ -418,6 +425,36 @@ export const AudioLogDestinationFilterSensitiveLog = (obj) => ({
418
425
  export const AudioLogSettingFilterSensitiveLog = (obj) => ({
419
426
  ...obj,
420
427
  });
428
+ export const NewCustomVocabularyItemFilterSensitiveLog = (obj) => ({
429
+ ...obj,
430
+ });
431
+ export const BatchCreateCustomVocabularyItemRequestFilterSensitiveLog = (obj) => ({
432
+ ...obj,
433
+ });
434
+ export const FailedCustomVocabularyItemFilterSensitiveLog = (obj) => ({
435
+ ...obj,
436
+ });
437
+ export const CustomVocabularyItemFilterSensitiveLog = (obj) => ({
438
+ ...obj,
439
+ });
440
+ export const BatchCreateCustomVocabularyItemResponseFilterSensitiveLog = (obj) => ({
441
+ ...obj,
442
+ });
443
+ export const CustomVocabularyEntryIdFilterSensitiveLog = (obj) => ({
444
+ ...obj,
445
+ });
446
+ export const BatchDeleteCustomVocabularyItemRequestFilterSensitiveLog = (obj) => ({
447
+ ...obj,
448
+ });
449
+ export const BatchDeleteCustomVocabularyItemResponseFilterSensitiveLog = (obj) => ({
450
+ ...obj,
451
+ });
452
+ export const BatchUpdateCustomVocabularyItemRequestFilterSensitiveLog = (obj) => ({
453
+ ...obj,
454
+ });
455
+ export const BatchUpdateCustomVocabularyItemResponseFilterSensitiveLog = (obj) => ({
456
+ ...obj,
457
+ });
421
458
  export const BotAliasHistoryEventFilterSensitiveLog = (obj) => ({
422
459
  ...obj,
423
460
  });
@@ -965,6 +1002,12 @@ export const ListBuiltInSlotTypesRequestFilterSensitiveLog = (obj) => ({
965
1002
  export const ListBuiltInSlotTypesResponseFilterSensitiveLog = (obj) => ({
966
1003
  ...obj,
967
1004
  });
1005
+ export const ListCustomVocabularyItemsRequestFilterSensitiveLog = (obj) => ({
1006
+ ...obj,
1007
+ });
1008
+ export const ListCustomVocabularyItemsResponseFilterSensitiveLog = (obj) => ({
1009
+ ...obj,
1010
+ });
968
1011
  export const ListExportsRequestFilterSensitiveLog = (obj) => ({
969
1012
  ...obj,
970
1013
  });
@@ -1067,45 +1110,3 @@ export const UntagResourceRequestFilterSensitiveLog = (obj) => ({
1067
1110
  export const UntagResourceResponseFilterSensitiveLog = (obj) => ({
1068
1111
  ...obj,
1069
1112
  });
1070
- export const UpdateBotRequestFilterSensitiveLog = (obj) => ({
1071
- ...obj,
1072
- });
1073
- export const UpdateBotResponseFilterSensitiveLog = (obj) => ({
1074
- ...obj,
1075
- });
1076
- export const UpdateBotAliasRequestFilterSensitiveLog = (obj) => ({
1077
- ...obj,
1078
- });
1079
- export const UpdateBotAliasResponseFilterSensitiveLog = (obj) => ({
1080
- ...obj,
1081
- });
1082
- export const UpdateBotLocaleRequestFilterSensitiveLog = (obj) => ({
1083
- ...obj,
1084
- });
1085
- export const UpdateBotLocaleResponseFilterSensitiveLog = (obj) => ({
1086
- ...obj,
1087
- });
1088
- export const UpdateBotRecommendationRequestFilterSensitiveLog = (obj) => ({
1089
- ...obj,
1090
- ...(obj.encryptionSetting && { encryptionSetting: EncryptionSettingFilterSensitiveLog(obj.encryptionSetting) }),
1091
- });
1092
- export const UpdateBotRecommendationResponseFilterSensitiveLog = (obj) => ({
1093
- ...obj,
1094
- ...(obj.encryptionSetting && { encryptionSetting: EncryptionSettingFilterSensitiveLog(obj.encryptionSetting) }),
1095
- });
1096
- export const UpdateExportRequestFilterSensitiveLog = (obj) => ({
1097
- ...obj,
1098
- ...(obj.filePassword && { filePassword: SENSITIVE_STRING }),
1099
- });
1100
- export const UpdateExportResponseFilterSensitiveLog = (obj) => ({
1101
- ...obj,
1102
- });
1103
- export const UpdateResourcePolicyRequestFilterSensitiveLog = (obj) => ({
1104
- ...obj,
1105
- });
1106
- export const UpdateResourcePolicyResponseFilterSensitiveLog = (obj) => ({
1107
- ...obj,
1108
- });
1109
- export const UpdateSlotTypeRequestFilterSensitiveLog = (obj) => ({
1110
- ...obj,
1111
- });
@@ -1,3 +1,47 @@
1
+ import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
2
+ import { EncryptionSettingFilterSensitiveLog, } from "./models_0";
3
+ export const UpdateBotRequestFilterSensitiveLog = (obj) => ({
4
+ ...obj,
5
+ });
6
+ export const UpdateBotResponseFilterSensitiveLog = (obj) => ({
7
+ ...obj,
8
+ });
9
+ export const UpdateBotAliasRequestFilterSensitiveLog = (obj) => ({
10
+ ...obj,
11
+ });
12
+ export const UpdateBotAliasResponseFilterSensitiveLog = (obj) => ({
13
+ ...obj,
14
+ });
15
+ export const UpdateBotLocaleRequestFilterSensitiveLog = (obj) => ({
16
+ ...obj,
17
+ });
18
+ export const UpdateBotLocaleResponseFilterSensitiveLog = (obj) => ({
19
+ ...obj,
20
+ });
21
+ export const UpdateBotRecommendationRequestFilterSensitiveLog = (obj) => ({
22
+ ...obj,
23
+ ...(obj.encryptionSetting && { encryptionSetting: EncryptionSettingFilterSensitiveLog(obj.encryptionSetting) }),
24
+ });
25
+ export const UpdateBotRecommendationResponseFilterSensitiveLog = (obj) => ({
26
+ ...obj,
27
+ ...(obj.encryptionSetting && { encryptionSetting: EncryptionSettingFilterSensitiveLog(obj.encryptionSetting) }),
28
+ });
29
+ export const UpdateExportRequestFilterSensitiveLog = (obj) => ({
30
+ ...obj,
31
+ ...(obj.filePassword && { filePassword: SENSITIVE_STRING }),
32
+ });
33
+ export const UpdateExportResponseFilterSensitiveLog = (obj) => ({
34
+ ...obj,
35
+ });
36
+ export const UpdateResourcePolicyRequestFilterSensitiveLog = (obj) => ({
37
+ ...obj,
38
+ });
39
+ export const UpdateResourcePolicyResponseFilterSensitiveLog = (obj) => ({
40
+ ...obj,
41
+ });
42
+ export const UpdateSlotTypeRequestFilterSensitiveLog = (obj) => ({
43
+ ...obj,
44
+ });
1
45
  export const UpdateSlotTypeResponseFilterSensitiveLog = (obj) => ({
2
46
  ...obj,
3
47
  });
@@ -0,0 +1,32 @@
1
+ import { ListCustomVocabularyItemsCommand, } from "../commands/ListCustomVocabularyItemsCommand";
2
+ import { LexModelsV2 } from "../LexModelsV2";
3
+ import { LexModelsV2Client } from "../LexModelsV2Client";
4
+ const makePagedClientRequest = async (client, input, ...args) => {
5
+ return await client.send(new ListCustomVocabularyItemsCommand(input), ...args);
6
+ };
7
+ const makePagedRequest = async (client, input, ...args) => {
8
+ return await client.listCustomVocabularyItems(input, ...args);
9
+ };
10
+ export async function* paginateListCustomVocabularyItems(config, input, ...additionalArguments) {
11
+ let token = config.startingToken || undefined;
12
+ let hasNext = true;
13
+ let page;
14
+ while (hasNext) {
15
+ input.nextToken = token;
16
+ input["maxResults"] = config.pageSize;
17
+ if (config.client instanceof LexModelsV2) {
18
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
19
+ }
20
+ else if (config.client instanceof LexModelsV2Client) {
21
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else {
24
+ throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
25
+ }
26
+ yield page;
27
+ const prevToken = token;
28
+ token = page.nextToken;
29
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
30
+ }
31
+ return undefined;
32
+ }
@@ -7,6 +7,7 @@ export * from "./ListBotVersionsPaginator";
7
7
  export * from "./ListBotsPaginator";
8
8
  export * from "./ListBuiltInIntentsPaginator";
9
9
  export * from "./ListBuiltInSlotTypesPaginator";
10
+ export * from "./ListCustomVocabularyItemsPaginator";
10
11
  export * from "./ListExportsPaginator";
11
12
  export * from "./ListImportsPaginator";
12
13
  export * from "./ListIntentsPaginator";