@aws-sdk/client-cloudsearch 3.181.0 → 3.183.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 (38) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-es/CloudSearch.js +106 -113
  3. package/dist-es/CloudSearchClient.js +22 -28
  4. package/dist-es/commands/BuildSuggestersCommand.js +21 -28
  5. package/dist-es/commands/CreateDomainCommand.js +21 -28
  6. package/dist-es/commands/DefineAnalysisSchemeCommand.js +21 -28
  7. package/dist-es/commands/DefineExpressionCommand.js +21 -28
  8. package/dist-es/commands/DefineIndexFieldCommand.js +21 -28
  9. package/dist-es/commands/DefineSuggesterCommand.js +21 -28
  10. package/dist-es/commands/DeleteAnalysisSchemeCommand.js +21 -28
  11. package/dist-es/commands/DeleteDomainCommand.js +21 -28
  12. package/dist-es/commands/DeleteExpressionCommand.js +21 -28
  13. package/dist-es/commands/DeleteIndexFieldCommand.js +21 -28
  14. package/dist-es/commands/DeleteSuggesterCommand.js +21 -28
  15. package/dist-es/commands/DescribeAnalysisSchemesCommand.js +21 -28
  16. package/dist-es/commands/DescribeAvailabilityOptionsCommand.js +21 -28
  17. package/dist-es/commands/DescribeDomainEndpointOptionsCommand.js +21 -28
  18. package/dist-es/commands/DescribeDomainsCommand.js +21 -28
  19. package/dist-es/commands/DescribeExpressionsCommand.js +21 -28
  20. package/dist-es/commands/DescribeIndexFieldsCommand.js +21 -28
  21. package/dist-es/commands/DescribeScalingParametersCommand.js +21 -28
  22. package/dist-es/commands/DescribeServiceAccessPoliciesCommand.js +21 -28
  23. package/dist-es/commands/DescribeSuggestersCommand.js +21 -28
  24. package/dist-es/commands/IndexDocumentsCommand.js +21 -28
  25. package/dist-es/commands/ListDomainNamesCommand.js +22 -29
  26. package/dist-es/commands/UpdateAvailabilityOptionsCommand.js +21 -28
  27. package/dist-es/commands/UpdateDomainEndpointOptionsCommand.js +21 -28
  28. package/dist-es/commands/UpdateScalingParametersCommand.js +21 -28
  29. package/dist-es/commands/UpdateServiceAccessPoliciesCommand.js +21 -28
  30. package/dist-es/endpoints.js +8 -8
  31. package/dist-es/models/CloudSearchServiceException.js +5 -10
  32. package/dist-es/models/models_0.js +350 -187
  33. package/dist-es/protocols/Aws_query.js +1887 -2483
  34. package/dist-es/runtimeConfig.browser.js +26 -12
  35. package/dist-es/runtimeConfig.js +30 -12
  36. package/dist-es/runtimeConfig.native.js +8 -5
  37. package/dist-es/runtimeConfig.shared.js +8 -11
  38. package/package.json +33 -33
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { CreateDomainRequestFilterSensitiveLog, CreateDomainResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryCreateDomainCommand, serializeAws_queryCreateDomainCommand } from "../protocols/Aws_query";
6
- var CreateDomainCommand = (function (_super) {
7
- __extends(CreateDomainCommand, _super);
8
- function CreateDomainCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateDomainCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateDomainCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "CloudSearchClient";
18
- var commandName = "CreateDomainCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "CloudSearchClient";
15
+ const commandName = "CreateDomainCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateDomainRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateDomainResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateDomainCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_queryCreateDomainCommand(input, context);
33
- };
34
- CreateDomainCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryCreateDomainCommand(output, context);
36
- };
37
- return CreateDomainCommand;
38
- }($Command));
39
- export { CreateDomainCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DefineAnalysisSchemeRequestFilterSensitiveLog, DefineAnalysisSchemeResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryDefineAnalysisSchemeCommand, serializeAws_queryDefineAnalysisSchemeCommand, } from "../protocols/Aws_query";
6
- var DefineAnalysisSchemeCommand = (function (_super) {
7
- __extends(DefineAnalysisSchemeCommand, _super);
8
- function DefineAnalysisSchemeCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DefineAnalysisSchemeCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DefineAnalysisSchemeCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "CloudSearchClient";
18
- var commandName = "DefineAnalysisSchemeCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "CloudSearchClient";
15
+ const commandName = "DefineAnalysisSchemeCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DefineAnalysisSchemeRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DefineAnalysisSchemeResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DefineAnalysisSchemeCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_queryDefineAnalysisSchemeCommand(input, context);
33
- };
34
- DefineAnalysisSchemeCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryDefineAnalysisSchemeCommand(output, context);
36
- };
37
- return DefineAnalysisSchemeCommand;
38
- }($Command));
39
- export { DefineAnalysisSchemeCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DefineExpressionRequestFilterSensitiveLog, DefineExpressionResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryDefineExpressionCommand, serializeAws_queryDefineExpressionCommand, } from "../protocols/Aws_query";
6
- var DefineExpressionCommand = (function (_super) {
7
- __extends(DefineExpressionCommand, _super);
8
- function DefineExpressionCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DefineExpressionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DefineExpressionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "CloudSearchClient";
18
- var commandName = "DefineExpressionCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "CloudSearchClient";
15
+ const commandName = "DefineExpressionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DefineExpressionRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DefineExpressionResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DefineExpressionCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_queryDefineExpressionCommand(input, context);
33
- };
34
- DefineExpressionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryDefineExpressionCommand(output, context);
36
- };
37
- return DefineExpressionCommand;
38
- }($Command));
39
- export { DefineExpressionCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DefineIndexFieldRequestFilterSensitiveLog, DefineIndexFieldResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryDefineIndexFieldCommand, serializeAws_queryDefineIndexFieldCommand, } from "../protocols/Aws_query";
6
- var DefineIndexFieldCommand = (function (_super) {
7
- __extends(DefineIndexFieldCommand, _super);
8
- function DefineIndexFieldCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DefineIndexFieldCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DefineIndexFieldCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "CloudSearchClient";
18
- var commandName = "DefineIndexFieldCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "CloudSearchClient";
15
+ const commandName = "DefineIndexFieldCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DefineIndexFieldRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DefineIndexFieldResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DefineIndexFieldCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_queryDefineIndexFieldCommand(input, context);
33
- };
34
- DefineIndexFieldCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryDefineIndexFieldCommand(output, context);
36
- };
37
- return DefineIndexFieldCommand;
38
- }($Command));
39
- export { DefineIndexFieldCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DefineSuggesterRequestFilterSensitiveLog, DefineSuggesterResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryDefineSuggesterCommand, serializeAws_queryDefineSuggesterCommand, } from "../protocols/Aws_query";
6
- var DefineSuggesterCommand = (function (_super) {
7
- __extends(DefineSuggesterCommand, _super);
8
- function DefineSuggesterCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DefineSuggesterCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DefineSuggesterCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "CloudSearchClient";
18
- var commandName = "DefineSuggesterCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "CloudSearchClient";
15
+ const commandName = "DefineSuggesterCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DefineSuggesterRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DefineSuggesterResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DefineSuggesterCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_queryDefineSuggesterCommand(input, context);
33
- };
34
- DefineSuggesterCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryDefineSuggesterCommand(output, context);
36
- };
37
- return DefineSuggesterCommand;
38
- }($Command));
39
- export { DefineSuggesterCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteAnalysisSchemeRequestFilterSensitiveLog, DeleteAnalysisSchemeResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryDeleteAnalysisSchemeCommand, serializeAws_queryDeleteAnalysisSchemeCommand, } from "../protocols/Aws_query";
6
- var DeleteAnalysisSchemeCommand = (function (_super) {
7
- __extends(DeleteAnalysisSchemeCommand, _super);
8
- function DeleteAnalysisSchemeCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteAnalysisSchemeCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteAnalysisSchemeCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "CloudSearchClient";
18
- var commandName = "DeleteAnalysisSchemeCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "CloudSearchClient";
15
+ const commandName = "DeleteAnalysisSchemeCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteAnalysisSchemeRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteAnalysisSchemeResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteAnalysisSchemeCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_queryDeleteAnalysisSchemeCommand(input, context);
33
- };
34
- DeleteAnalysisSchemeCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryDeleteAnalysisSchemeCommand(output, context);
36
- };
37
- return DeleteAnalysisSchemeCommand;
38
- }($Command));
39
- export { DeleteAnalysisSchemeCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteDomainRequestFilterSensitiveLog, DeleteDomainResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryDeleteDomainCommand, serializeAws_queryDeleteDomainCommand } from "../protocols/Aws_query";
6
- var DeleteDomainCommand = (function (_super) {
7
- __extends(DeleteDomainCommand, _super);
8
- function DeleteDomainCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteDomainCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteDomainCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "CloudSearchClient";
18
- var commandName = "DeleteDomainCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "CloudSearchClient";
15
+ const commandName = "DeleteDomainCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteDomainRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteDomainResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteDomainCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_queryDeleteDomainCommand(input, context);
33
- };
34
- DeleteDomainCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryDeleteDomainCommand(output, context);
36
- };
37
- return DeleteDomainCommand;
38
- }($Command));
39
- export { DeleteDomainCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteExpressionRequestFilterSensitiveLog, DeleteExpressionResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryDeleteExpressionCommand, serializeAws_queryDeleteExpressionCommand, } from "../protocols/Aws_query";
6
- var DeleteExpressionCommand = (function (_super) {
7
- __extends(DeleteExpressionCommand, _super);
8
- function DeleteExpressionCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteExpressionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteExpressionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "CloudSearchClient";
18
- var commandName = "DeleteExpressionCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "CloudSearchClient";
15
+ const commandName = "DeleteExpressionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteExpressionRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteExpressionResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteExpressionCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_queryDeleteExpressionCommand(input, context);
33
- };
34
- DeleteExpressionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryDeleteExpressionCommand(output, context);
36
- };
37
- return DeleteExpressionCommand;
38
- }($Command));
39
- export { DeleteExpressionCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteIndexFieldRequestFilterSensitiveLog, DeleteIndexFieldResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryDeleteIndexFieldCommand, serializeAws_queryDeleteIndexFieldCommand, } from "../protocols/Aws_query";
6
- var DeleteIndexFieldCommand = (function (_super) {
7
- __extends(DeleteIndexFieldCommand, _super);
8
- function DeleteIndexFieldCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteIndexFieldCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteIndexFieldCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "CloudSearchClient";
18
- var commandName = "DeleteIndexFieldCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "CloudSearchClient";
15
+ const commandName = "DeleteIndexFieldCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteIndexFieldRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteIndexFieldResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteIndexFieldCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_queryDeleteIndexFieldCommand(input, context);
33
- };
34
- DeleteIndexFieldCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryDeleteIndexFieldCommand(output, context);
36
- };
37
- return DeleteIndexFieldCommand;
38
- }($Command));
39
- export { DeleteIndexFieldCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteSuggesterRequestFilterSensitiveLog, DeleteSuggesterResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_queryDeleteSuggesterCommand, serializeAws_queryDeleteSuggesterCommand, } from "../protocols/Aws_query";
6
- var DeleteSuggesterCommand = (function (_super) {
7
- __extends(DeleteSuggesterCommand, _super);
8
- function DeleteSuggesterCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteSuggesterCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteSuggesterCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "CloudSearchClient";
18
- var commandName = "DeleteSuggesterCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "CloudSearchClient";
15
+ const commandName = "DeleteSuggesterCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteSuggesterRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteSuggesterResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteSuggesterCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_queryDeleteSuggesterCommand(input, context);
33
- };
34
- DeleteSuggesterCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_queryDeleteSuggesterCommand(output, context);
36
- };
37
- return DeleteSuggesterCommand;
38
- }($Command));
39
- export { DeleteSuggesterCommand };
31
+ }
32
+ }