@aws-sdk/client-lex-model-building-service 3.52.0 → 3.53.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 CHANGED
@@ -3,6 +3,17 @@
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.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** generate service exceptions as classes ([#3267](https://github.com/aws/aws-sdk-js-v3/issues/3267)) ([ca64fee](https://github.com/aws/aws-sdk-js-v3/commit/ca64feed3351c394c07dc26b782a5760a396a074))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
7
18
 
8
19
  **Note:** Version bump only for package @aws-sdk/client-lex-model-building-service
package/dist-cjs/index.js CHANGED
@@ -1,8 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LexModelBuildingServiceServiceException = void 0;
3
4
  const tslib_1 = require("tslib");
4
5
  tslib_1.__exportStar(require("./LexModelBuildingService"), exports);
5
6
  tslib_1.__exportStar(require("./LexModelBuildingServiceClient"), exports);
6
7
  tslib_1.__exportStar(require("./commands"), exports);
7
8
  tslib_1.__exportStar(require("./models"), exports);
8
9
  tslib_1.__exportStar(require("./pagination"), exports);
10
+ var LexModelBuildingServiceServiceException_1 = require("./models/LexModelBuildingServiceServiceException");
11
+ Object.defineProperty(exports, "LexModelBuildingServiceServiceException", { enumerable: true, get: function () { return LexModelBuildingServiceServiceException_1.LexModelBuildingServiceServiceException; } });
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LexModelBuildingServiceServiceException = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
5
+ class LexModelBuildingServiceServiceException extends smithy_client_1.ServiceException {
6
+ constructor(options) {
7
+ super(options);
8
+ Object.setPrototypeOf(this, LexModelBuildingServiceServiceException.prototype);
9
+ }
10
+ }
11
+ exports.LexModelBuildingServiceServiceException = LexModelBuildingServiceServiceException;
@@ -1,9 +1,49 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BotAliasMetadata = exports.GetBotAliasesRequest = exports.GetBotAliasResponse = exports.ConversationLogsResponse = exports.LogSettingsResponse = exports.LogType = exports.Destination = exports.GetBotAliasRequest = exports.GetBotResponse = exports.GetBotRequest = exports.DeleteUtterancesRequest = exports.DeleteSlotTypeVersionRequest = exports.DeleteSlotTypeRequest = exports.DeleteIntentVersionRequest = exports.DeleteIntentRequest = exports.DeleteBotVersionRequest = exports.DeleteBotChannelAssociationRequest = exports.DeleteBotAliasRequest = exports.ReferenceType = exports.ResourceReference = exports.DeleteBotRequest = exports.CreateSlotTypeVersionResponse = exports.SlotValueSelectionStrategy = exports.SlotTypeConfiguration = exports.SlotTypeRegexConfiguration = exports.EnumerationValue = exports.CreateSlotTypeVersionRequest = exports.CreateIntentVersionResponse = exports.Slot = exports.SlotConstraint = exports.ObfuscationSetting = exports.SlotDefaultValueSpec = exports.SlotDefaultValue = exports.OutputContext = exports.KendraConfiguration = exports.InputContext = exports.FulfillmentActivity = exports.FulfillmentActivityType = exports.FollowUpPrompt = exports.CodeHook = exports.CreateIntentVersionRequest = exports.CreateBotVersionResponse = exports.Status = exports.Locale = exports.Intent = exports.Prompt = exports.Statement = exports.Message = exports.ContentType = exports.CreateBotVersionRequest = void 0;
4
- exports.GetSlotTypeRequest = exports.GetMigrationsResponse = exports.MigrationSummary = exports.GetMigrationsRequest = exports.SortOrder = exports.MigrationSortAttribute = exports.GetMigrationResponse = exports.MigrationStrategy = exports.MigrationStatus = exports.MigrationAlert = exports.MigrationAlertType = exports.GetMigrationRequest = exports.GetIntentVersionsResponse = exports.GetIntentVersionsRequest = exports.GetIntentsResponse = exports.IntentMetadata = exports.GetIntentsRequest = exports.GetIntentResponse = exports.GetIntentRequest = exports.GetImportResponse = exports.MergeStrategy = exports.ImportStatus = exports.GetImportRequest = exports.GetExportResponse = exports.ExportStatus = exports.GetExportRequest = exports.ResourceType = exports.ExportType = exports.GetBuiltinSlotTypesResponse = exports.BuiltinSlotTypeMetadata = exports.GetBuiltinSlotTypesRequest = exports.GetBuiltinIntentsResponse = exports.BuiltinIntentMetadata = exports.GetBuiltinIntentsRequest = exports.GetBuiltinIntentResponse = exports.BuiltinIntentSlot = exports.GetBuiltinIntentRequest = exports.GetBotVersionsResponse = exports.GetBotVersionsRequest = exports.GetBotsResponse = exports.BotMetadata = exports.GetBotsRequest = exports.GetBotChannelAssociationsResponse = exports.BotChannelAssociation = exports.GetBotChannelAssociationsRequest = exports.GetBotChannelAssociationResponse = exports.ChannelType = exports.ChannelStatus = exports.GetBotChannelAssociationRequest = exports.GetBotAliasesResponse = void 0;
5
- exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.StartMigrationResponse = exports.StartMigrationRequest = exports.StartImportResponse = exports.StartImportRequest = exports.PutSlotTypeResponse = exports.PutSlotTypeRequest = exports.PutIntentResponse = exports.PutIntentRequest = exports.PutBotAliasResponse = exports.PutBotAliasRequest = exports.ConversationLogsRequest = exports.LogSettingsRequest = exports.PutBotResponse = exports.PutBotRequest = exports.ProcessBehavior = exports.ListTagsForResourceResponse = exports.Tag = exports.ListTagsForResourceRequest = exports.GetUtterancesViewResponse = exports.UtteranceList = exports.UtteranceData = exports.GetUtterancesViewRequest = exports.StatusType = exports.GetSlotTypeVersionsResponse = exports.GetSlotTypeVersionsRequest = exports.GetSlotTypesResponse = exports.SlotTypeMetadata = exports.GetSlotTypesRequest = exports.GetSlotTypeResponse = void 0;
3
+ exports.GetBotResponse = exports.GetBotRequest = exports.DeleteUtterancesRequest = exports.DeleteSlotTypeVersionRequest = exports.DeleteSlotTypeRequest = exports.DeleteIntentVersionRequest = exports.DeleteIntentRequest = exports.DeleteBotVersionRequest = exports.DeleteBotChannelAssociationRequest = exports.DeleteBotAliasRequest = exports.ResourceInUseException = exports.ReferenceType = exports.ResourceReference = exports.DeleteBotRequest = exports.CreateSlotTypeVersionResponse = exports.SlotValueSelectionStrategy = exports.SlotTypeConfiguration = exports.SlotTypeRegexConfiguration = exports.EnumerationValue = exports.CreateSlotTypeVersionRequest = exports.CreateIntentVersionResponse = exports.Slot = exports.SlotConstraint = exports.ObfuscationSetting = exports.SlotDefaultValueSpec = exports.SlotDefaultValue = exports.OutputContext = exports.KendraConfiguration = exports.InputContext = exports.FulfillmentActivity = exports.FulfillmentActivityType = exports.FollowUpPrompt = exports.CodeHook = exports.CreateIntentVersionRequest = exports.PreconditionFailedException = exports.NotFoundException = exports.LimitExceededException = exports.InternalFailureException = exports.CreateBotVersionResponse = exports.Status = exports.Locale = exports.Intent = exports.Prompt = exports.Statement = exports.Message = exports.ContentType = exports.CreateBotVersionRequest = exports.ConflictException = exports.BadRequestException = exports.AccessDeniedException = void 0;
4
+ exports.MigrationStatus = exports.MigrationAlert = exports.MigrationAlertType = exports.GetMigrationRequest = exports.GetIntentVersionsResponse = exports.GetIntentVersionsRequest = exports.GetIntentsResponse = exports.IntentMetadata = exports.GetIntentsRequest = exports.GetIntentResponse = exports.GetIntentRequest = exports.GetImportResponse = exports.MergeStrategy = exports.ImportStatus = exports.GetImportRequest = exports.GetExportResponse = exports.ExportStatus = exports.GetExportRequest = exports.ResourceType = exports.ExportType = exports.GetBuiltinSlotTypesResponse = exports.BuiltinSlotTypeMetadata = exports.GetBuiltinSlotTypesRequest = exports.GetBuiltinIntentsResponse = exports.BuiltinIntentMetadata = exports.GetBuiltinIntentsRequest = exports.GetBuiltinIntentResponse = exports.BuiltinIntentSlot = exports.GetBuiltinIntentRequest = exports.GetBotVersionsResponse = exports.GetBotVersionsRequest = exports.GetBotsResponse = exports.BotMetadata = exports.GetBotsRequest = exports.GetBotChannelAssociationsResponse = exports.BotChannelAssociation = exports.GetBotChannelAssociationsRequest = exports.GetBotChannelAssociationResponse = exports.ChannelType = exports.ChannelStatus = exports.GetBotChannelAssociationRequest = exports.GetBotAliasesResponse = exports.BotAliasMetadata = exports.GetBotAliasesRequest = exports.GetBotAliasResponse = exports.ConversationLogsResponse = exports.LogSettingsResponse = exports.LogType = exports.Destination = exports.GetBotAliasRequest = void 0;
5
+ exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.StartMigrationResponse = exports.StartMigrationRequest = exports.StartImportResponse = exports.StartImportRequest = exports.PutSlotTypeResponse = exports.PutSlotTypeRequest = exports.PutIntentResponse = exports.PutIntentRequest = exports.PutBotAliasResponse = exports.PutBotAliasRequest = exports.ConversationLogsRequest = exports.LogSettingsRequest = exports.PutBotResponse = exports.PutBotRequest = exports.ProcessBehavior = exports.ListTagsForResourceResponse = exports.Tag = exports.ListTagsForResourceRequest = exports.GetUtterancesViewResponse = exports.UtteranceList = exports.UtteranceData = exports.GetUtterancesViewRequest = exports.StatusType = exports.GetSlotTypeVersionsResponse = exports.GetSlotTypeVersionsRequest = exports.GetSlotTypesResponse = exports.SlotTypeMetadata = exports.GetSlotTypesRequest = exports.GetSlotTypeResponse = exports.GetSlotTypeRequest = exports.GetMigrationsResponse = exports.MigrationSummary = exports.GetMigrationsRequest = exports.SortOrder = exports.MigrationSortAttribute = exports.GetMigrationResponse = exports.MigrationStrategy = void 0;
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const LexModelBuildingServiceServiceException_1 = require("./LexModelBuildingServiceServiceException");
8
+ class AccessDeniedException extends LexModelBuildingServiceServiceException_1.LexModelBuildingServiceServiceException {
9
+ constructor(opts) {
10
+ super({
11
+ name: "AccessDeniedException",
12
+ $fault: "client",
13
+ ...opts,
14
+ });
15
+ this.name = "AccessDeniedException";
16
+ this.$fault = "client";
17
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
18
+ }
19
+ }
20
+ exports.AccessDeniedException = AccessDeniedException;
21
+ class BadRequestException extends LexModelBuildingServiceServiceException_1.LexModelBuildingServiceServiceException {
22
+ constructor(opts) {
23
+ super({
24
+ name: "BadRequestException",
25
+ $fault: "client",
26
+ ...opts,
27
+ });
28
+ this.name = "BadRequestException";
29
+ this.$fault = "client";
30
+ Object.setPrototypeOf(this, BadRequestException.prototype);
31
+ }
32
+ }
33
+ exports.BadRequestException = BadRequestException;
34
+ class ConflictException extends LexModelBuildingServiceServiceException_1.LexModelBuildingServiceServiceException {
35
+ constructor(opts) {
36
+ super({
37
+ name: "ConflictException",
38
+ $fault: "client",
39
+ ...opts,
40
+ });
41
+ this.name = "ConflictException";
42
+ this.$fault = "client";
43
+ Object.setPrototypeOf(this, ConflictException.prototype);
44
+ }
45
+ }
46
+ exports.ConflictException = ConflictException;
7
47
  var CreateBotVersionRequest;
8
48
  (function (CreateBotVersionRequest) {
9
49
  CreateBotVersionRequest.filterSensitiveLog = (obj) => ({
@@ -70,6 +110,59 @@ var CreateBotVersionResponse;
70
110
  ...obj,
71
111
  });
72
112
  })(CreateBotVersionResponse = exports.CreateBotVersionResponse || (exports.CreateBotVersionResponse = {}));
113
+ class InternalFailureException extends LexModelBuildingServiceServiceException_1.LexModelBuildingServiceServiceException {
114
+ constructor(opts) {
115
+ super({
116
+ name: "InternalFailureException",
117
+ $fault: "server",
118
+ ...opts,
119
+ });
120
+ this.name = "InternalFailureException";
121
+ this.$fault = "server";
122
+ Object.setPrototypeOf(this, InternalFailureException.prototype);
123
+ }
124
+ }
125
+ exports.InternalFailureException = InternalFailureException;
126
+ class LimitExceededException extends LexModelBuildingServiceServiceException_1.LexModelBuildingServiceServiceException {
127
+ constructor(opts) {
128
+ super({
129
+ name: "LimitExceededException",
130
+ $fault: "client",
131
+ ...opts,
132
+ });
133
+ this.name = "LimitExceededException";
134
+ this.$fault = "client";
135
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
136
+ this.retryAfterSeconds = opts.retryAfterSeconds;
137
+ }
138
+ }
139
+ exports.LimitExceededException = LimitExceededException;
140
+ class NotFoundException extends LexModelBuildingServiceServiceException_1.LexModelBuildingServiceServiceException {
141
+ constructor(opts) {
142
+ super({
143
+ name: "NotFoundException",
144
+ $fault: "client",
145
+ ...opts,
146
+ });
147
+ this.name = "NotFoundException";
148
+ this.$fault = "client";
149
+ Object.setPrototypeOf(this, NotFoundException.prototype);
150
+ }
151
+ }
152
+ exports.NotFoundException = NotFoundException;
153
+ class PreconditionFailedException extends LexModelBuildingServiceServiceException_1.LexModelBuildingServiceServiceException {
154
+ constructor(opts) {
155
+ super({
156
+ name: "PreconditionFailedException",
157
+ $fault: "client",
158
+ ...opts,
159
+ });
160
+ this.name = "PreconditionFailedException";
161
+ this.$fault = "client";
162
+ Object.setPrototypeOf(this, PreconditionFailedException.prototype);
163
+ }
164
+ }
165
+ exports.PreconditionFailedException = PreconditionFailedException;
73
166
  var CreateIntentVersionRequest;
74
167
  (function (CreateIntentVersionRequest) {
75
168
  CreateIntentVersionRequest.filterSensitiveLog = (obj) => ({
@@ -205,6 +298,21 @@ var ReferenceType;
205
298
  ReferenceType["BOTCHANNEL"] = "BotChannel";
206
299
  ReferenceType["INTENT"] = "Intent";
207
300
  })(ReferenceType = exports.ReferenceType || (exports.ReferenceType = {}));
301
+ class ResourceInUseException extends LexModelBuildingServiceServiceException_1.LexModelBuildingServiceServiceException {
302
+ constructor(opts) {
303
+ super({
304
+ name: "ResourceInUseException",
305
+ $fault: "client",
306
+ ...opts,
307
+ });
308
+ this.name = "ResourceInUseException";
309
+ this.$fault = "client";
310
+ Object.setPrototypeOf(this, ResourceInUseException.prototype);
311
+ this.referenceType = opts.referenceType;
312
+ this.exampleReference = opts.exampleReference;
313
+ }
314
+ }
315
+ exports.ResourceInUseException = ResourceInUseException;
208
316
  var DeleteBotAliasRequest;
209
317
  (function (DeleteBotAliasRequest) {
210
318
  DeleteBotAliasRequest.filterSensitiveLog = (obj) => ({