@aws-sdk/client-lex-model-building-service 3.183.0 → 3.185.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 (66) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +2 -2
  3. package/dist-es/LexModelBuildingService.js +177 -170
  4. package/dist-es/LexModelBuildingServiceClient.js +28 -22
  5. package/dist-es/commands/CreateBotVersionCommand.js +28 -21
  6. package/dist-es/commands/CreateIntentVersionCommand.js +28 -21
  7. package/dist-es/commands/CreateSlotTypeVersionCommand.js +28 -21
  8. package/dist-es/commands/DeleteBotAliasCommand.js +29 -22
  9. package/dist-es/commands/DeleteBotChannelAssociationCommand.js +29 -22
  10. package/dist-es/commands/DeleteBotCommand.js +29 -22
  11. package/dist-es/commands/DeleteBotVersionCommand.js +29 -22
  12. package/dist-es/commands/DeleteIntentCommand.js +29 -22
  13. package/dist-es/commands/DeleteIntentVersionCommand.js +29 -22
  14. package/dist-es/commands/DeleteSlotTypeCommand.js +29 -22
  15. package/dist-es/commands/DeleteSlotTypeVersionCommand.js +29 -22
  16. package/dist-es/commands/DeleteUtterancesCommand.js +29 -22
  17. package/dist-es/commands/GetBotAliasCommand.js +28 -21
  18. package/dist-es/commands/GetBotAliasesCommand.js +28 -21
  19. package/dist-es/commands/GetBotChannelAssociationCommand.js +28 -21
  20. package/dist-es/commands/GetBotChannelAssociationsCommand.js +28 -21
  21. package/dist-es/commands/GetBotCommand.js +28 -21
  22. package/dist-es/commands/GetBotVersionsCommand.js +28 -21
  23. package/dist-es/commands/GetBotsCommand.js +28 -21
  24. package/dist-es/commands/GetBuiltinIntentCommand.js +28 -21
  25. package/dist-es/commands/GetBuiltinIntentsCommand.js +28 -21
  26. package/dist-es/commands/GetBuiltinSlotTypesCommand.js +28 -21
  27. package/dist-es/commands/GetExportCommand.js +28 -21
  28. package/dist-es/commands/GetImportCommand.js +28 -21
  29. package/dist-es/commands/GetIntentCommand.js +28 -21
  30. package/dist-es/commands/GetIntentVersionsCommand.js +28 -21
  31. package/dist-es/commands/GetIntentsCommand.js +28 -21
  32. package/dist-es/commands/GetMigrationCommand.js +28 -21
  33. package/dist-es/commands/GetMigrationsCommand.js +28 -21
  34. package/dist-es/commands/GetSlotTypeCommand.js +28 -21
  35. package/dist-es/commands/GetSlotTypeVersionsCommand.js +28 -21
  36. package/dist-es/commands/GetSlotTypesCommand.js +28 -21
  37. package/dist-es/commands/GetUtterancesViewCommand.js +28 -21
  38. package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
  39. package/dist-es/commands/PutBotAliasCommand.js +28 -21
  40. package/dist-es/commands/PutBotCommand.js +28 -21
  41. package/dist-es/commands/PutIntentCommand.js +28 -21
  42. package/dist-es/commands/PutSlotTypeCommand.js +28 -21
  43. package/dist-es/commands/StartImportCommand.js +28 -21
  44. package/dist-es/commands/StartMigrationCommand.js +28 -21
  45. package/dist-es/commands/TagResourceCommand.js +28 -21
  46. package/dist-es/commands/UntagResourceCommand.js +28 -21
  47. package/dist-es/endpoints.js +8 -8
  48. package/dist-es/models/LexModelBuildingServiceServiceException.js +10 -5
  49. package/dist-es/models/models_0.js +203 -423
  50. package/dist-es/pagination/GetBotAliasesPaginator.js +68 -25
  51. package/dist-es/pagination/GetBotChannelAssociationsPaginator.js +68 -25
  52. package/dist-es/pagination/GetBotVersionsPaginator.js +68 -25
  53. package/dist-es/pagination/GetBotsPaginator.js +68 -25
  54. package/dist-es/pagination/GetBuiltinIntentsPaginator.js +68 -25
  55. package/dist-es/pagination/GetBuiltinSlotTypesPaginator.js +68 -25
  56. package/dist-es/pagination/GetIntentVersionsPaginator.js +68 -25
  57. package/dist-es/pagination/GetIntentsPaginator.js +68 -25
  58. package/dist-es/pagination/GetMigrationsPaginator.js +68 -25
  59. package/dist-es/pagination/GetSlotTypeVersionsPaginator.js +68 -25
  60. package/dist-es/pagination/GetSlotTypesPaginator.js +68 -25
  61. package/dist-es/protocols/Aws_restJson1.js +4874 -3645
  62. package/dist-es/runtimeConfig.browser.js +12 -26
  63. package/dist-es/runtimeConfig.js +12 -30
  64. package/dist-es/runtimeConfig.native.js +5 -8
  65. package/dist-es/runtimeConfig.shared.js +11 -8
  66. package/package.json +5 -5
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
2
3
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
3
4
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -8,26 +9,31 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
8
9
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
9
10
  import { Client as __Client, } from "@aws-sdk/smithy-client";
10
11
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
11
- export class LexModelBuildingServiceClient extends __Client {
12
- constructor(configuration) {
13
- const _config_0 = __getRuntimeConfig(configuration);
14
- const _config_1 = resolveRegionConfig(_config_0);
15
- const _config_2 = resolveEndpointsConfig(_config_1);
16
- const _config_3 = resolveRetryConfig(_config_2);
17
- const _config_4 = resolveHostHeaderConfig(_config_3);
18
- const _config_5 = resolveAwsAuthConfig(_config_4);
19
- const _config_6 = resolveUserAgentConfig(_config_5);
20
- super(_config_6);
21
- this.config = _config_6;
22
- this.middlewareStack.use(getRetryPlugin(this.config));
23
- this.middlewareStack.use(getContentLengthPlugin(this.config));
24
- this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
- this.middlewareStack.use(getLoggerPlugin(this.config));
26
- this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
- this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
- this.middlewareStack.use(getUserAgentPlugin(this.config));
12
+ var LexModelBuildingServiceClient = (function (_super) {
13
+ __extends(LexModelBuildingServiceClient, _super);
14
+ function LexModelBuildingServiceClient(configuration) {
15
+ var _this = this;
16
+ var _config_0 = __getRuntimeConfig(configuration);
17
+ var _config_1 = resolveRegionConfig(_config_0);
18
+ var _config_2 = resolveEndpointsConfig(_config_1);
19
+ var _config_3 = resolveRetryConfig(_config_2);
20
+ var _config_4 = resolveHostHeaderConfig(_config_3);
21
+ var _config_5 = resolveAwsAuthConfig(_config_4);
22
+ var _config_6 = resolveUserAgentConfig(_config_5);
23
+ _this = _super.call(this, _config_6) || this;
24
+ _this.config = _config_6;
25
+ _this.middlewareStack.use(getRetryPlugin(_this.config));
26
+ _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
+ _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
+ _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
+ _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
+ _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
+ _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
+ return _this;
29
33
  }
30
- destroy() {
31
- super.destroy();
32
- }
33
- }
34
+ LexModelBuildingServiceClient.prototype.destroy = function () {
35
+ _super.prototype.destroy.call(this);
36
+ };
37
+ return LexModelBuildingServiceClient;
38
+ }(__Client));
39
+ export { LexModelBuildingServiceClient };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateBotVersionRequestFilterSensitiveLog, CreateBotVersionResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1CreateBotVersionCommand, serializeAws_restJson1CreateBotVersionCommand, } from "../protocols/Aws_restJson1";
5
- export class CreateBotVersionCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateBotVersionCommand = (function (_super) {
7
+ __extends(CreateBotVersionCommand, _super);
8
+ function CreateBotVersionCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateBotVersionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "LexModelBuildingServiceClient";
15
- const commandName = "CreateBotVersionCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "LexModelBuildingServiceClient";
18
+ var commandName = "CreateBotVersionCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateBotVersionRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateBotVersionResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateBotVersionCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1CreateBotVersionCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateBotVersionCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1CreateBotVersionCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateBotVersionCommand;
38
+ }($Command));
39
+ export { CreateBotVersionCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateIntentVersionRequestFilterSensitiveLog, CreateIntentVersionResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1CreateIntentVersionCommand, serializeAws_restJson1CreateIntentVersionCommand, } from "../protocols/Aws_restJson1";
5
- export class CreateIntentVersionCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateIntentVersionCommand = (function (_super) {
7
+ __extends(CreateIntentVersionCommand, _super);
8
+ function CreateIntentVersionCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateIntentVersionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "LexModelBuildingServiceClient";
15
- const commandName = "CreateIntentVersionCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "LexModelBuildingServiceClient";
18
+ var commandName = "CreateIntentVersionCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateIntentVersionRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateIntentVersionResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateIntentVersionCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1CreateIntentVersionCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateIntentVersionCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1CreateIntentVersionCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateIntentVersionCommand;
38
+ }($Command));
39
+ export { CreateIntentVersionCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateSlotTypeVersionRequestFilterSensitiveLog, CreateSlotTypeVersionResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1CreateSlotTypeVersionCommand, serializeAws_restJson1CreateSlotTypeVersionCommand, } from "../protocols/Aws_restJson1";
5
- export class CreateSlotTypeVersionCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateSlotTypeVersionCommand = (function (_super) {
7
+ __extends(CreateSlotTypeVersionCommand, _super);
8
+ function CreateSlotTypeVersionCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateSlotTypeVersionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "LexModelBuildingServiceClient";
15
- const commandName = "CreateSlotTypeVersionCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "LexModelBuildingServiceClient";
18
+ var commandName = "CreateSlotTypeVersionCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateSlotTypeVersionRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateSlotTypeVersionResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateSlotTypeVersionCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1CreateSlotTypeVersionCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateSlotTypeVersionCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1CreateSlotTypeVersionCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateSlotTypeVersionCommand;
38
+ }($Command));
39
+ export { CreateSlotTypeVersionCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DeleteBotAliasRequestFilterSensitiveLog } from "../models/models_0";
4
5
  import { deserializeAws_restJson1DeleteBotAliasCommand, serializeAws_restJson1DeleteBotAliasCommand, } from "../protocols/Aws_restJson1";
5
- export class DeleteBotAliasCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DeleteBotAliasCommand = (function (_super) {
7
+ __extends(DeleteBotAliasCommand, _super);
8
+ function DeleteBotAliasCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DeleteBotAliasCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "LexModelBuildingServiceClient";
15
- const commandName = "DeleteBotAliasCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "LexModelBuildingServiceClient";
18
+ var commandName = "DeleteBotAliasCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DeleteBotAliasRequestFilterSensitiveLog,
21
- outputFilterSensitiveLog: (output) => output,
24
+ outputFilterSensitiveLog: function (output) { return output; },
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeleteBotAliasCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1DeleteBotAliasCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DeleteBotAliasCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1DeleteBotAliasCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DeleteBotAliasCommand;
38
+ }($Command));
39
+ export { DeleteBotAliasCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DeleteBotChannelAssociationRequestFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1DeleteBotChannelAssociationCommand, serializeAws_restJson1DeleteBotChannelAssociationCommand, } from "../protocols/Aws_restJson1";
5
- export class DeleteBotChannelAssociationCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DeleteBotChannelAssociationCommand = (function (_super) {
7
+ __extends(DeleteBotChannelAssociationCommand, _super);
8
+ function DeleteBotChannelAssociationCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DeleteBotChannelAssociationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "LexModelBuildingServiceClient";
15
- const commandName = "DeleteBotChannelAssociationCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "LexModelBuildingServiceClient";
18
+ var commandName = "DeleteBotChannelAssociationCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DeleteBotChannelAssociationRequestFilterSensitiveLog,
21
- outputFilterSensitiveLog: (output) => output,
24
+ outputFilterSensitiveLog: function (output) { return output; },
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeleteBotChannelAssociationCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1DeleteBotChannelAssociationCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DeleteBotChannelAssociationCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1DeleteBotChannelAssociationCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DeleteBotChannelAssociationCommand;
38
+ }($Command));
39
+ export { DeleteBotChannelAssociationCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DeleteBotRequestFilterSensitiveLog } from "../models/models_0";
4
5
  import { deserializeAws_restJson1DeleteBotCommand, serializeAws_restJson1DeleteBotCommand, } from "../protocols/Aws_restJson1";
5
- export class DeleteBotCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DeleteBotCommand = (function (_super) {
7
+ __extends(DeleteBotCommand, _super);
8
+ function DeleteBotCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DeleteBotCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "LexModelBuildingServiceClient";
15
- const commandName = "DeleteBotCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "LexModelBuildingServiceClient";
18
+ var commandName = "DeleteBotCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DeleteBotRequestFilterSensitiveLog,
21
- outputFilterSensitiveLog: (output) => output,
24
+ outputFilterSensitiveLog: function (output) { return output; },
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeleteBotCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1DeleteBotCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DeleteBotCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1DeleteBotCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DeleteBotCommand;
38
+ }($Command));
39
+ export { DeleteBotCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DeleteBotVersionRequestFilterSensitiveLog } from "../models/models_0";
4
5
  import { deserializeAws_restJson1DeleteBotVersionCommand, serializeAws_restJson1DeleteBotVersionCommand, } from "../protocols/Aws_restJson1";
5
- export class DeleteBotVersionCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DeleteBotVersionCommand = (function (_super) {
7
+ __extends(DeleteBotVersionCommand, _super);
8
+ function DeleteBotVersionCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DeleteBotVersionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "LexModelBuildingServiceClient";
15
- const commandName = "DeleteBotVersionCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "LexModelBuildingServiceClient";
18
+ var commandName = "DeleteBotVersionCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DeleteBotVersionRequestFilterSensitiveLog,
21
- outputFilterSensitiveLog: (output) => output,
24
+ outputFilterSensitiveLog: function (output) { return output; },
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeleteBotVersionCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1DeleteBotVersionCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DeleteBotVersionCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1DeleteBotVersionCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DeleteBotVersionCommand;
38
+ }($Command));
39
+ export { DeleteBotVersionCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DeleteIntentRequestFilterSensitiveLog } from "../models/models_0";
4
5
  import { deserializeAws_restJson1DeleteIntentCommand, serializeAws_restJson1DeleteIntentCommand, } from "../protocols/Aws_restJson1";
5
- export class DeleteIntentCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DeleteIntentCommand = (function (_super) {
7
+ __extends(DeleteIntentCommand, _super);
8
+ function DeleteIntentCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DeleteIntentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "LexModelBuildingServiceClient";
15
- const commandName = "DeleteIntentCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "LexModelBuildingServiceClient";
18
+ var commandName = "DeleteIntentCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DeleteIntentRequestFilterSensitiveLog,
21
- outputFilterSensitiveLog: (output) => output,
24
+ outputFilterSensitiveLog: function (output) { return output; },
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeleteIntentCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1DeleteIntentCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DeleteIntentCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1DeleteIntentCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DeleteIntentCommand;
38
+ }($Command));
39
+ export { DeleteIntentCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DeleteIntentVersionRequestFilterSensitiveLog } from "../models/models_0";
4
5
  import { deserializeAws_restJson1DeleteIntentVersionCommand, serializeAws_restJson1DeleteIntentVersionCommand, } from "../protocols/Aws_restJson1";
5
- export class DeleteIntentVersionCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DeleteIntentVersionCommand = (function (_super) {
7
+ __extends(DeleteIntentVersionCommand, _super);
8
+ function DeleteIntentVersionCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DeleteIntentVersionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "LexModelBuildingServiceClient";
15
- const commandName = "DeleteIntentVersionCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "LexModelBuildingServiceClient";
18
+ var commandName = "DeleteIntentVersionCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DeleteIntentVersionRequestFilterSensitiveLog,
21
- outputFilterSensitiveLog: (output) => output,
24
+ outputFilterSensitiveLog: function (output) { return output; },
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeleteIntentVersionCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1DeleteIntentVersionCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DeleteIntentVersionCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1DeleteIntentVersionCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DeleteIntentVersionCommand;
38
+ }($Command));
39
+ export { DeleteIntentVersionCommand };