@aws-sdk/client-kendra 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 (86) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/protocols/Aws_json1_1.js +2 -2
  3. package/dist-es/Kendra.js +249 -242
  4. package/dist-es/KendraClient.js +28 -22
  5. package/dist-es/commands/AssociateEntitiesToExperienceCommand.js +28 -21
  6. package/dist-es/commands/AssociatePersonasToEntitiesCommand.js +28 -21
  7. package/dist-es/commands/BatchDeleteDocumentCommand.js +28 -21
  8. package/dist-es/commands/BatchGetDocumentStatusCommand.js +28 -21
  9. package/dist-es/commands/BatchPutDocumentCommand.js +28 -21
  10. package/dist-es/commands/ClearQuerySuggestionsCommand.js +29 -22
  11. package/dist-es/commands/CreateAccessControlConfigurationCommand.js +28 -21
  12. package/dist-es/commands/CreateDataSourceCommand.js +28 -21
  13. package/dist-es/commands/CreateExperienceCommand.js +28 -21
  14. package/dist-es/commands/CreateFaqCommand.js +28 -21
  15. package/dist-es/commands/CreateIndexCommand.js +28 -21
  16. package/dist-es/commands/CreateQuerySuggestionsBlockListCommand.js +28 -21
  17. package/dist-es/commands/CreateThesaurusCommand.js +28 -21
  18. package/dist-es/commands/DeleteAccessControlConfigurationCommand.js +28 -21
  19. package/dist-es/commands/DeleteDataSourceCommand.js +29 -22
  20. package/dist-es/commands/DeleteExperienceCommand.js +28 -21
  21. package/dist-es/commands/DeleteFaqCommand.js +29 -22
  22. package/dist-es/commands/DeleteIndexCommand.js +29 -22
  23. package/dist-es/commands/DeletePrincipalMappingCommand.js +29 -22
  24. package/dist-es/commands/DeleteQuerySuggestionsBlockListCommand.js +29 -22
  25. package/dist-es/commands/DeleteThesaurusCommand.js +29 -22
  26. package/dist-es/commands/DescribeAccessControlConfigurationCommand.js +28 -21
  27. package/dist-es/commands/DescribeDataSourceCommand.js +28 -21
  28. package/dist-es/commands/DescribeExperienceCommand.js +28 -21
  29. package/dist-es/commands/DescribeFaqCommand.js +28 -21
  30. package/dist-es/commands/DescribeIndexCommand.js +28 -21
  31. package/dist-es/commands/DescribePrincipalMappingCommand.js +28 -21
  32. package/dist-es/commands/DescribeQuerySuggestionsBlockListCommand.js +28 -21
  33. package/dist-es/commands/DescribeQuerySuggestionsConfigCommand.js +28 -21
  34. package/dist-es/commands/DescribeThesaurusCommand.js +28 -21
  35. package/dist-es/commands/DisassociateEntitiesFromExperienceCommand.js +28 -21
  36. package/dist-es/commands/DisassociatePersonasFromEntitiesCommand.js +28 -21
  37. package/dist-es/commands/GetQuerySuggestionsCommand.js +28 -21
  38. package/dist-es/commands/GetSnapshotsCommand.js +28 -21
  39. package/dist-es/commands/ListAccessControlConfigurationsCommand.js +28 -21
  40. package/dist-es/commands/ListDataSourceSyncJobsCommand.js +28 -21
  41. package/dist-es/commands/ListDataSourcesCommand.js +28 -21
  42. package/dist-es/commands/ListEntityPersonasCommand.js +28 -21
  43. package/dist-es/commands/ListExperienceEntitiesCommand.js +28 -21
  44. package/dist-es/commands/ListExperiencesCommand.js +28 -21
  45. package/dist-es/commands/ListFaqsCommand.js +28 -21
  46. package/dist-es/commands/ListGroupsOlderThanOrderingIdCommand.js +28 -21
  47. package/dist-es/commands/ListIndicesCommand.js +28 -21
  48. package/dist-es/commands/ListQuerySuggestionsBlockListsCommand.js +28 -21
  49. package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
  50. package/dist-es/commands/ListThesauriCommand.js +28 -21
  51. package/dist-es/commands/PutPrincipalMappingCommand.js +29 -22
  52. package/dist-es/commands/QueryCommand.js +28 -21
  53. package/dist-es/commands/StartDataSourceSyncJobCommand.js +28 -21
  54. package/dist-es/commands/StopDataSourceSyncJobCommand.js +29 -22
  55. package/dist-es/commands/SubmitFeedbackCommand.js +29 -22
  56. package/dist-es/commands/TagResourceCommand.js +28 -21
  57. package/dist-es/commands/UntagResourceCommand.js +28 -21
  58. package/dist-es/commands/UpdateAccessControlConfigurationCommand.js +28 -21
  59. package/dist-es/commands/UpdateDataSourceCommand.js +29 -22
  60. package/dist-es/commands/UpdateExperienceCommand.js +29 -22
  61. package/dist-es/commands/UpdateIndexCommand.js +29 -22
  62. package/dist-es/commands/UpdateQuerySuggestionsBlockListCommand.js +29 -22
  63. package/dist-es/commands/UpdateQuerySuggestionsConfigCommand.js +29 -22
  64. package/dist-es/commands/UpdateThesaurusCommand.js +29 -22
  65. package/dist-es/endpoints.js +8 -8
  66. package/dist-es/models/KendraServiceException.js +10 -5
  67. package/dist-es/models/models_0.js +371 -844
  68. package/dist-es/models/models_1.js +5 -12
  69. package/dist-es/pagination/GetSnapshotsPaginator.js +68 -25
  70. package/dist-es/pagination/ListAccessControlConfigurationsPaginator.js +68 -25
  71. package/dist-es/pagination/ListDataSourceSyncJobsPaginator.js +68 -25
  72. package/dist-es/pagination/ListDataSourcesPaginator.js +68 -25
  73. package/dist-es/pagination/ListEntityPersonasPaginator.js +68 -25
  74. package/dist-es/pagination/ListExperienceEntitiesPaginator.js +67 -24
  75. package/dist-es/pagination/ListExperiencesPaginator.js +68 -25
  76. package/dist-es/pagination/ListFaqsPaginator.js +68 -25
  77. package/dist-es/pagination/ListGroupsOlderThanOrderingIdPaginator.js +68 -25
  78. package/dist-es/pagination/ListIndicesPaginator.js +68 -25
  79. package/dist-es/pagination/ListQuerySuggestionsBlockListsPaginator.js +68 -25
  80. package/dist-es/pagination/ListThesauriPaginator.js +68 -25
  81. package/dist-es/protocols/Aws_json1_1.js +6541 -5784
  82. package/dist-es/runtimeConfig.browser.js +12 -26
  83. package/dist-es/runtimeConfig.js +12 -30
  84. package/dist-es/runtimeConfig.native.js +5 -8
  85. package/dist-es/runtimeConfig.shared.js +11 -8
  86. package/package.json +5 -5
@@ -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 { StopDataSourceSyncJobRequestFilterSensitiveLog } from "../models/models_0";
4
5
  import { deserializeAws_json1_1StopDataSourceSyncJobCommand, serializeAws_json1_1StopDataSourceSyncJobCommand, } from "../protocols/Aws_json1_1";
5
- export class StopDataSourceSyncJobCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var StopDataSourceSyncJobCommand = (function (_super) {
7
+ __extends(StopDataSourceSyncJobCommand, _super);
8
+ function StopDataSourceSyncJobCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ StopDataSourceSyncJobCommand.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 = "KendraClient";
15
- const commandName = "StopDataSourceSyncJobCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "KendraClient";
18
+ var commandName = "StopDataSourceSyncJobCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: StopDataSourceSyncJobRequestFilterSensitiveLog,
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
+ StopDataSourceSyncJobCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1StopDataSourceSyncJobCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ StopDataSourceSyncJobCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1StopDataSourceSyncJobCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return StopDataSourceSyncJobCommand;
38
+ }($Command));
39
+ export { StopDataSourceSyncJobCommand };
@@ -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 { SubmitFeedbackRequestFilterSensitiveLog } from "../models/models_0";
4
5
  import { deserializeAws_json1_1SubmitFeedbackCommand, serializeAws_json1_1SubmitFeedbackCommand, } from "../protocols/Aws_json1_1";
5
- export class SubmitFeedbackCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var SubmitFeedbackCommand = (function (_super) {
7
+ __extends(SubmitFeedbackCommand, _super);
8
+ function SubmitFeedbackCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ SubmitFeedbackCommand.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 = "KendraClient";
15
- const commandName = "SubmitFeedbackCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "KendraClient";
18
+ var commandName = "SubmitFeedbackCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: SubmitFeedbackRequestFilterSensitiveLog,
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
+ SubmitFeedbackCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1SubmitFeedbackCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ SubmitFeedbackCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1SubmitFeedbackCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return SubmitFeedbackCommand;
38
+ }($Command));
39
+ export { SubmitFeedbackCommand };
@@ -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 { TagResourceRequestFilterSensitiveLog, TagResourceResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1TagResourceCommand, serializeAws_json1_1TagResourceCommand, } from "../protocols/Aws_json1_1";
5
- export class TagResourceCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var TagResourceCommand = (function (_super) {
7
+ __extends(TagResourceCommand, _super);
8
+ function TagResourceCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ TagResourceCommand.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 = "KendraClient";
15
- const commandName = "TagResourceCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "KendraClient";
18
+ var commandName = "TagResourceCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: TagResourceRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: TagResourceResponseFilterSensitiveLog,
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
+ TagResourceCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1TagResourceCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ TagResourceCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1TagResourceCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return TagResourceCommand;
38
+ }($Command));
39
+ export { TagResourceCommand };
@@ -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 { UntagResourceRequestFilterSensitiveLog, UntagResourceResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1UntagResourceCommand, serializeAws_json1_1UntagResourceCommand, } from "../protocols/Aws_json1_1";
5
- export class UntagResourceCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var UntagResourceCommand = (function (_super) {
7
+ __extends(UntagResourceCommand, _super);
8
+ function UntagResourceCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ UntagResourceCommand.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 = "KendraClient";
15
- const commandName = "UntagResourceCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "KendraClient";
18
+ var commandName = "UntagResourceCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: UntagResourceRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: UntagResourceResponseFilterSensitiveLog,
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
+ UntagResourceCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1UntagResourceCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ UntagResourceCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1UntagResourceCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return UntagResourceCommand;
38
+ }($Command));
39
+ export { UntagResourceCommand };
@@ -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 { UpdateAccessControlConfigurationRequestFilterSensitiveLog, UpdateAccessControlConfigurationResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1UpdateAccessControlConfigurationCommand, serializeAws_json1_1UpdateAccessControlConfigurationCommand, } from "../protocols/Aws_json1_1";
5
- export class UpdateAccessControlConfigurationCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var UpdateAccessControlConfigurationCommand = (function (_super) {
7
+ __extends(UpdateAccessControlConfigurationCommand, _super);
8
+ function UpdateAccessControlConfigurationCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ UpdateAccessControlConfigurationCommand.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 = "KendraClient";
15
- const commandName = "UpdateAccessControlConfigurationCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "KendraClient";
18
+ var commandName = "UpdateAccessControlConfigurationCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: UpdateAccessControlConfigurationRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: UpdateAccessControlConfigurationResponseFilterSensitiveLog,
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
+ UpdateAccessControlConfigurationCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1UpdateAccessControlConfigurationCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ UpdateAccessControlConfigurationCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1UpdateAccessControlConfigurationCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return UpdateAccessControlConfigurationCommand;
38
+ }($Command));
39
+ export { UpdateAccessControlConfigurationCommand };
@@ -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 { UpdateDataSourceRequestFilterSensitiveLog } from "../models/models_0";
4
5
  import { deserializeAws_json1_1UpdateDataSourceCommand, serializeAws_json1_1UpdateDataSourceCommand, } from "../protocols/Aws_json1_1";
5
- export class UpdateDataSourceCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var UpdateDataSourceCommand = (function (_super) {
7
+ __extends(UpdateDataSourceCommand, _super);
8
+ function UpdateDataSourceCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ UpdateDataSourceCommand.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 = "KendraClient";
15
- const commandName = "UpdateDataSourceCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "KendraClient";
18
+ var commandName = "UpdateDataSourceCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: UpdateDataSourceRequestFilterSensitiveLog,
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
+ UpdateDataSourceCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1UpdateDataSourceCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ UpdateDataSourceCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1UpdateDataSourceCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return UpdateDataSourceCommand;
38
+ }($Command));
39
+ export { UpdateDataSourceCommand };
@@ -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 { UpdateExperienceRequestFilterSensitiveLog } from "../models/models_0";
4
5
  import { deserializeAws_json1_1UpdateExperienceCommand, serializeAws_json1_1UpdateExperienceCommand, } from "../protocols/Aws_json1_1";
5
- export class UpdateExperienceCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var UpdateExperienceCommand = (function (_super) {
7
+ __extends(UpdateExperienceCommand, _super);
8
+ function UpdateExperienceCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ UpdateExperienceCommand.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 = "KendraClient";
15
- const commandName = "UpdateExperienceCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "KendraClient";
18
+ var commandName = "UpdateExperienceCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: UpdateExperienceRequestFilterSensitiveLog,
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
+ UpdateExperienceCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1UpdateExperienceCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ UpdateExperienceCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1UpdateExperienceCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return UpdateExperienceCommand;
38
+ }($Command));
39
+ export { UpdateExperienceCommand };
@@ -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 { UpdateIndexRequestFilterSensitiveLog } from "../models/models_0";
4
5
  import { deserializeAws_json1_1UpdateIndexCommand, serializeAws_json1_1UpdateIndexCommand, } from "../protocols/Aws_json1_1";
5
- export class UpdateIndexCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var UpdateIndexCommand = (function (_super) {
7
+ __extends(UpdateIndexCommand, _super);
8
+ function UpdateIndexCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ UpdateIndexCommand.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 = "KendraClient";
15
- const commandName = "UpdateIndexCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "KendraClient";
18
+ var commandName = "UpdateIndexCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: UpdateIndexRequestFilterSensitiveLog,
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
+ UpdateIndexCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1UpdateIndexCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ UpdateIndexCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1UpdateIndexCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return UpdateIndexCommand;
38
+ }($Command));
39
+ export { UpdateIndexCommand };
@@ -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 { UpdateQuerySuggestionsBlockListRequestFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1UpdateQuerySuggestionsBlockListCommand, serializeAws_json1_1UpdateQuerySuggestionsBlockListCommand, } from "../protocols/Aws_json1_1";
5
- export class UpdateQuerySuggestionsBlockListCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var UpdateQuerySuggestionsBlockListCommand = (function (_super) {
7
+ __extends(UpdateQuerySuggestionsBlockListCommand, _super);
8
+ function UpdateQuerySuggestionsBlockListCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ UpdateQuerySuggestionsBlockListCommand.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 = "KendraClient";
15
- const commandName = "UpdateQuerySuggestionsBlockListCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "KendraClient";
18
+ var commandName = "UpdateQuerySuggestionsBlockListCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: UpdateQuerySuggestionsBlockListRequestFilterSensitiveLog,
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
+ UpdateQuerySuggestionsBlockListCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1UpdateQuerySuggestionsBlockListCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ UpdateQuerySuggestionsBlockListCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1UpdateQuerySuggestionsBlockListCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return UpdateQuerySuggestionsBlockListCommand;
38
+ }($Command));
39
+ export { UpdateQuerySuggestionsBlockListCommand };
@@ -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 { UpdateQuerySuggestionsConfigRequestFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1UpdateQuerySuggestionsConfigCommand, serializeAws_json1_1UpdateQuerySuggestionsConfigCommand, } from "../protocols/Aws_json1_1";
5
- export class UpdateQuerySuggestionsConfigCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var UpdateQuerySuggestionsConfigCommand = (function (_super) {
7
+ __extends(UpdateQuerySuggestionsConfigCommand, _super);
8
+ function UpdateQuerySuggestionsConfigCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ UpdateQuerySuggestionsConfigCommand.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 = "KendraClient";
15
- const commandName = "UpdateQuerySuggestionsConfigCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "KendraClient";
18
+ var commandName = "UpdateQuerySuggestionsConfigCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: UpdateQuerySuggestionsConfigRequestFilterSensitiveLog,
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
+ UpdateQuerySuggestionsConfigCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1UpdateQuerySuggestionsConfigCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ UpdateQuerySuggestionsConfigCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1UpdateQuerySuggestionsConfigCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return UpdateQuerySuggestionsConfigCommand;
38
+ }($Command));
39
+ export { UpdateQuerySuggestionsConfigCommand };