@aws-sdk/client-apigatewayv2 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 (84) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-es/ApiGatewayV2.js +290 -297
  3. package/dist-es/ApiGatewayV2Client.js +22 -28
  4. package/dist-es/commands/CreateApiCommand.js +21 -28
  5. package/dist-es/commands/CreateApiMappingCommand.js +21 -28
  6. package/dist-es/commands/CreateAuthorizerCommand.js +21 -28
  7. package/dist-es/commands/CreateDeploymentCommand.js +21 -28
  8. package/dist-es/commands/CreateDomainNameCommand.js +21 -28
  9. package/dist-es/commands/CreateIntegrationCommand.js +21 -28
  10. package/dist-es/commands/CreateIntegrationResponseCommand.js +21 -28
  11. package/dist-es/commands/CreateModelCommand.js +21 -28
  12. package/dist-es/commands/CreateRouteCommand.js +21 -28
  13. package/dist-es/commands/CreateRouteResponseCommand.js +21 -28
  14. package/dist-es/commands/CreateStageCommand.js +21 -28
  15. package/dist-es/commands/CreateVpcLinkCommand.js +21 -28
  16. package/dist-es/commands/DeleteAccessLogSettingsCommand.js +22 -29
  17. package/dist-es/commands/DeleteApiCommand.js +22 -29
  18. package/dist-es/commands/DeleteApiMappingCommand.js +22 -29
  19. package/dist-es/commands/DeleteAuthorizerCommand.js +22 -29
  20. package/dist-es/commands/DeleteCorsConfigurationCommand.js +22 -29
  21. package/dist-es/commands/DeleteDeploymentCommand.js +22 -29
  22. package/dist-es/commands/DeleteDomainNameCommand.js +22 -29
  23. package/dist-es/commands/DeleteIntegrationCommand.js +22 -29
  24. package/dist-es/commands/DeleteIntegrationResponseCommand.js +22 -29
  25. package/dist-es/commands/DeleteModelCommand.js +22 -29
  26. package/dist-es/commands/DeleteRouteCommand.js +22 -29
  27. package/dist-es/commands/DeleteRouteRequestParameterCommand.js +22 -29
  28. package/dist-es/commands/DeleteRouteResponseCommand.js +22 -29
  29. package/dist-es/commands/DeleteRouteSettingsCommand.js +22 -29
  30. package/dist-es/commands/DeleteStageCommand.js +22 -29
  31. package/dist-es/commands/DeleteVpcLinkCommand.js +21 -28
  32. package/dist-es/commands/ExportApiCommand.js +21 -28
  33. package/dist-es/commands/GetApiCommand.js +21 -28
  34. package/dist-es/commands/GetApiMappingCommand.js +21 -28
  35. package/dist-es/commands/GetApiMappingsCommand.js +21 -28
  36. package/dist-es/commands/GetApisCommand.js +21 -28
  37. package/dist-es/commands/GetAuthorizerCommand.js +21 -28
  38. package/dist-es/commands/GetAuthorizersCommand.js +21 -28
  39. package/dist-es/commands/GetDeploymentCommand.js +21 -28
  40. package/dist-es/commands/GetDeploymentsCommand.js +21 -28
  41. package/dist-es/commands/GetDomainNameCommand.js +21 -28
  42. package/dist-es/commands/GetDomainNamesCommand.js +21 -28
  43. package/dist-es/commands/GetIntegrationCommand.js +21 -28
  44. package/dist-es/commands/GetIntegrationResponseCommand.js +21 -28
  45. package/dist-es/commands/GetIntegrationResponsesCommand.js +21 -28
  46. package/dist-es/commands/GetIntegrationsCommand.js +21 -28
  47. package/dist-es/commands/GetModelCommand.js +21 -28
  48. package/dist-es/commands/GetModelTemplateCommand.js +21 -28
  49. package/dist-es/commands/GetModelsCommand.js +21 -28
  50. package/dist-es/commands/GetRouteCommand.js +21 -28
  51. package/dist-es/commands/GetRouteResponseCommand.js +21 -28
  52. package/dist-es/commands/GetRouteResponsesCommand.js +21 -28
  53. package/dist-es/commands/GetRoutesCommand.js +21 -28
  54. package/dist-es/commands/GetStageCommand.js +21 -28
  55. package/dist-es/commands/GetStagesCommand.js +21 -28
  56. package/dist-es/commands/GetTagsCommand.js +21 -28
  57. package/dist-es/commands/GetVpcLinkCommand.js +21 -28
  58. package/dist-es/commands/GetVpcLinksCommand.js +21 -28
  59. package/dist-es/commands/ImportApiCommand.js +21 -28
  60. package/dist-es/commands/ReimportApiCommand.js +21 -28
  61. package/dist-es/commands/ResetAuthorizersCacheCommand.js +22 -29
  62. package/dist-es/commands/TagResourceCommand.js +21 -28
  63. package/dist-es/commands/UntagResourceCommand.js +22 -29
  64. package/dist-es/commands/UpdateApiCommand.js +21 -28
  65. package/dist-es/commands/UpdateApiMappingCommand.js +21 -28
  66. package/dist-es/commands/UpdateAuthorizerCommand.js +21 -28
  67. package/dist-es/commands/UpdateDeploymentCommand.js +21 -28
  68. package/dist-es/commands/UpdateDomainNameCommand.js +21 -28
  69. package/dist-es/commands/UpdateIntegrationCommand.js +21 -28
  70. package/dist-es/commands/UpdateIntegrationResponseCommand.js +21 -28
  71. package/dist-es/commands/UpdateModelCommand.js +21 -28
  72. package/dist-es/commands/UpdateRouteCommand.js +21 -28
  73. package/dist-es/commands/UpdateRouteResponseCommand.js +21 -28
  74. package/dist-es/commands/UpdateStageCommand.js +21 -28
  75. package/dist-es/commands/UpdateVpcLinkCommand.js +21 -28
  76. package/dist-es/endpoints.js +8 -8
  77. package/dist-es/models/ApiGatewayV2ServiceException.js +5 -10
  78. package/dist-es/models/models_0.js +509 -212
  79. package/dist-es/protocols/Aws_restJson1.js +5700 -7662
  80. package/dist-es/runtimeConfig.browser.js +26 -12
  81. package/dist-es/runtimeConfig.js +30 -12
  82. package/dist-es/runtimeConfig.native.js +8 -5
  83. package/dist-es/runtimeConfig.shared.js +8 -11
  84. 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 { DeleteIntegrationRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteIntegrationCommand, serializeAws_restJson1DeleteIntegrationCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteIntegrationCommand = (function (_super) {
7
- __extends(DeleteIntegrationCommand, _super);
8
- function DeleteIntegrationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteIntegrationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteIntegrationCommand.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 = "ApiGatewayV2Client";
18
- var commandName = "DeleteIntegrationCommand";
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 = "ApiGatewayV2Client";
15
+ const commandName = "DeleteIntegrationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteIntegrationRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteIntegrationCommand.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_restJson1DeleteIntegrationCommand(input, context);
33
- };
34
- DeleteIntegrationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteIntegrationCommand(output, context);
36
- };
37
- return DeleteIntegrationCommand;
38
- }($Command));
39
- export { DeleteIntegrationCommand };
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 { DeleteIntegrationResponseRequestFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteIntegrationResponseCommand, serializeAws_restJson1DeleteIntegrationResponseCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteIntegrationResponseCommand = (function (_super) {
7
- __extends(DeleteIntegrationResponseCommand, _super);
8
- function DeleteIntegrationResponseCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteIntegrationResponseCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteIntegrationResponseCommand.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 = "ApiGatewayV2Client";
18
- var commandName = "DeleteIntegrationResponseCommand";
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 = "ApiGatewayV2Client";
15
+ const commandName = "DeleteIntegrationResponseCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteIntegrationResponseRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteIntegrationResponseCommand.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_restJson1DeleteIntegrationResponseCommand(input, context);
33
- };
34
- DeleteIntegrationResponseCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteIntegrationResponseCommand(output, context);
36
- };
37
- return DeleteIntegrationResponseCommand;
38
- }($Command));
39
- export { DeleteIntegrationResponseCommand };
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 { DeleteModelRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteModelCommand, serializeAws_restJson1DeleteModelCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteModelCommand = (function (_super) {
7
- __extends(DeleteModelCommand, _super);
8
- function DeleteModelCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteModelCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteModelCommand.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 = "ApiGatewayV2Client";
18
- var commandName = "DeleteModelCommand";
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 = "ApiGatewayV2Client";
15
+ const commandName = "DeleteModelCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteModelRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteModelCommand.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_restJson1DeleteModelCommand(input, context);
33
- };
34
- DeleteModelCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteModelCommand(output, context);
36
- };
37
- return DeleteModelCommand;
38
- }($Command));
39
- export { DeleteModelCommand };
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 { DeleteRouteRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteRouteCommand, serializeAws_restJson1DeleteRouteCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteRouteCommand = (function (_super) {
7
- __extends(DeleteRouteCommand, _super);
8
- function DeleteRouteCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteRouteCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteRouteCommand.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 = "ApiGatewayV2Client";
18
- var commandName = "DeleteRouteCommand";
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 = "ApiGatewayV2Client";
15
+ const commandName = "DeleteRouteCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteRouteRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteRouteCommand.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_restJson1DeleteRouteCommand(input, context);
33
- };
34
- DeleteRouteCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteRouteCommand(output, context);
36
- };
37
- return DeleteRouteCommand;
38
- }($Command));
39
- export { DeleteRouteCommand };
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 { DeleteRouteRequestParameterRequestFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteRouteRequestParameterCommand, serializeAws_restJson1DeleteRouteRequestParameterCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteRouteRequestParameterCommand = (function (_super) {
7
- __extends(DeleteRouteRequestParameterCommand, _super);
8
- function DeleteRouteRequestParameterCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteRouteRequestParameterCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteRouteRequestParameterCommand.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 = "ApiGatewayV2Client";
18
- var commandName = "DeleteRouteRequestParameterCommand";
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 = "ApiGatewayV2Client";
15
+ const commandName = "DeleteRouteRequestParameterCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteRouteRequestParameterRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteRouteRequestParameterCommand.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_restJson1DeleteRouteRequestParameterCommand(input, context);
33
- };
34
- DeleteRouteRequestParameterCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteRouteRequestParameterCommand(output, context);
36
- };
37
- return DeleteRouteRequestParameterCommand;
38
- }($Command));
39
- export { DeleteRouteRequestParameterCommand };
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 { DeleteRouteResponseRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteRouteResponseCommand, serializeAws_restJson1DeleteRouteResponseCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteRouteResponseCommand = (function (_super) {
7
- __extends(DeleteRouteResponseCommand, _super);
8
- function DeleteRouteResponseCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteRouteResponseCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteRouteResponseCommand.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 = "ApiGatewayV2Client";
18
- var commandName = "DeleteRouteResponseCommand";
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 = "ApiGatewayV2Client";
15
+ const commandName = "DeleteRouteResponseCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteRouteResponseRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteRouteResponseCommand.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_restJson1DeleteRouteResponseCommand(input, context);
33
- };
34
- DeleteRouteResponseCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteRouteResponseCommand(output, context);
36
- };
37
- return DeleteRouteResponseCommand;
38
- }($Command));
39
- export { DeleteRouteResponseCommand };
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 { DeleteRouteSettingsRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteRouteSettingsCommand, serializeAws_restJson1DeleteRouteSettingsCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteRouteSettingsCommand = (function (_super) {
7
- __extends(DeleteRouteSettingsCommand, _super);
8
- function DeleteRouteSettingsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteRouteSettingsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteRouteSettingsCommand.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 = "ApiGatewayV2Client";
18
- var commandName = "DeleteRouteSettingsCommand";
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 = "ApiGatewayV2Client";
15
+ const commandName = "DeleteRouteSettingsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteRouteSettingsRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteRouteSettingsCommand.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_restJson1DeleteRouteSettingsCommand(input, context);
33
- };
34
- DeleteRouteSettingsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteRouteSettingsCommand(output, context);
36
- };
37
- return DeleteRouteSettingsCommand;
38
- }($Command));
39
- export { DeleteRouteSettingsCommand };
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 { DeleteStageRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteStageCommand, serializeAws_restJson1DeleteStageCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteStageCommand = (function (_super) {
7
- __extends(DeleteStageCommand, _super);
8
- function DeleteStageCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteStageCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteStageCommand.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 = "ApiGatewayV2Client";
18
- var commandName = "DeleteStageCommand";
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 = "ApiGatewayV2Client";
15
+ const commandName = "DeleteStageCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteStageRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteStageCommand.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_restJson1DeleteStageCommand(input, context);
33
- };
34
- DeleteStageCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteStageCommand(output, context);
36
- };
37
- return DeleteStageCommand;
38
- }($Command));
39
- export { DeleteStageCommand };
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 { DeleteVpcLinkRequestFilterSensitiveLog, DeleteVpcLinkResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteVpcLinkCommand, serializeAws_restJson1DeleteVpcLinkCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteVpcLinkCommand = (function (_super) {
7
- __extends(DeleteVpcLinkCommand, _super);
8
- function DeleteVpcLinkCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteVpcLinkCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteVpcLinkCommand.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 = "ApiGatewayV2Client";
18
- var commandName = "DeleteVpcLinkCommand";
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 = "ApiGatewayV2Client";
15
+ const commandName = "DeleteVpcLinkCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteVpcLinkRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteVpcLinkResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteVpcLinkCommand.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_restJson1DeleteVpcLinkCommand(input, context);
33
- };
34
- DeleteVpcLinkCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteVpcLinkCommand(output, context);
36
- };
37
- return DeleteVpcLinkCommand;
38
- }($Command));
39
- export { DeleteVpcLinkCommand };
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 { ExportApiRequestFilterSensitiveLog, ExportApiResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ExportApiCommand, serializeAws_restJson1ExportApiCommand, } from "../protocols/Aws_restJson1";
6
- var ExportApiCommand = (function (_super) {
7
- __extends(ExportApiCommand, _super);
8
- function ExportApiCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ExportApiCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ExportApiCommand.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 = "ApiGatewayV2Client";
18
- var commandName = "ExportApiCommand";
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 = "ApiGatewayV2Client";
15
+ const commandName = "ExportApiCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ExportApiRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ExportApiResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ExportApiCommand.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_restJson1ExportApiCommand(input, context);
33
- };
34
- ExportApiCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ExportApiCommand(output, context);
36
- };
37
- return ExportApiCommand;
38
- }($Command));
39
- export { ExportApiCommand };
31
+ }
32
+ }