@aws-sdk/client-apigatewayv2 3.185.0 → 3.188.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 +16 -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 { GetIntegrationRequestFilterSensitiveLog, GetIntegrationResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetIntegrationCommand, serializeAws_restJson1GetIntegrationCommand, } from "../protocols/Aws_restJson1";
6
- var GetIntegrationCommand = (function (_super) {
7
- __extends(GetIntegrationCommand, _super);
8
- function GetIntegrationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetIntegrationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetIntegrationCommand.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 = "GetIntegrationCommand";
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 = "GetIntegrationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetIntegrationRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetIntegrationResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetIntegrationCommand.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_restJson1GetIntegrationCommand(input, context);
33
- };
34
- GetIntegrationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetIntegrationCommand(output, context);
36
- };
37
- return GetIntegrationCommand;
38
- }($Command));
39
- export { GetIntegrationCommand };
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 { GetIntegrationResponseRequestFilterSensitiveLog, GetIntegrationResponseResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetIntegrationResponseCommand, serializeAws_restJson1GetIntegrationResponseCommand, } from "../protocols/Aws_restJson1";
6
- var GetIntegrationResponseCommand = (function (_super) {
7
- __extends(GetIntegrationResponseCommand, _super);
8
- function GetIntegrationResponseCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetIntegrationResponseCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetIntegrationResponseCommand.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 = "GetIntegrationResponseCommand";
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 = "GetIntegrationResponseCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetIntegrationResponseRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetIntegrationResponseResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetIntegrationResponseCommand.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_restJson1GetIntegrationResponseCommand(input, context);
33
- };
34
- GetIntegrationResponseCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetIntegrationResponseCommand(output, context);
36
- };
37
- return GetIntegrationResponseCommand;
38
- }($Command));
39
- export { GetIntegrationResponseCommand };
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 { GetIntegrationResponsesRequestFilterSensitiveLog, GetIntegrationResponsesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetIntegrationResponsesCommand, serializeAws_restJson1GetIntegrationResponsesCommand, } from "../protocols/Aws_restJson1";
6
- var GetIntegrationResponsesCommand = (function (_super) {
7
- __extends(GetIntegrationResponsesCommand, _super);
8
- function GetIntegrationResponsesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetIntegrationResponsesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetIntegrationResponsesCommand.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 = "GetIntegrationResponsesCommand";
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 = "GetIntegrationResponsesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetIntegrationResponsesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetIntegrationResponsesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetIntegrationResponsesCommand.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_restJson1GetIntegrationResponsesCommand(input, context);
33
- };
34
- GetIntegrationResponsesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetIntegrationResponsesCommand(output, context);
36
- };
37
- return GetIntegrationResponsesCommand;
38
- }($Command));
39
- export { GetIntegrationResponsesCommand };
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 { GetIntegrationsRequestFilterSensitiveLog, GetIntegrationsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetIntegrationsCommand, serializeAws_restJson1GetIntegrationsCommand, } from "../protocols/Aws_restJson1";
6
- var GetIntegrationsCommand = (function (_super) {
7
- __extends(GetIntegrationsCommand, _super);
8
- function GetIntegrationsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetIntegrationsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetIntegrationsCommand.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 = "GetIntegrationsCommand";
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 = "GetIntegrationsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetIntegrationsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetIntegrationsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetIntegrationsCommand.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_restJson1GetIntegrationsCommand(input, context);
33
- };
34
- GetIntegrationsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetIntegrationsCommand(output, context);
36
- };
37
- return GetIntegrationsCommand;
38
- }($Command));
39
- export { GetIntegrationsCommand };
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 { GetModelRequestFilterSensitiveLog, GetModelResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetModelCommand, serializeAws_restJson1GetModelCommand, } from "../protocols/Aws_restJson1";
6
- var GetModelCommand = (function (_super) {
7
- __extends(GetModelCommand, _super);
8
- function GetModelCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetModelCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetModelCommand.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 = "GetModelCommand";
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 = "GetModelCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetModelRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetModelResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetModelCommand.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_restJson1GetModelCommand(input, context);
33
- };
34
- GetModelCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetModelCommand(output, context);
36
- };
37
- return GetModelCommand;
38
- }($Command));
39
- export { GetModelCommand };
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 { GetModelTemplateRequestFilterSensitiveLog, GetModelTemplateResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetModelTemplateCommand, serializeAws_restJson1GetModelTemplateCommand, } from "../protocols/Aws_restJson1";
6
- var GetModelTemplateCommand = (function (_super) {
7
- __extends(GetModelTemplateCommand, _super);
8
- function GetModelTemplateCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetModelTemplateCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetModelTemplateCommand.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 = "GetModelTemplateCommand";
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 = "GetModelTemplateCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetModelTemplateRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetModelTemplateResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetModelTemplateCommand.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_restJson1GetModelTemplateCommand(input, context);
33
- };
34
- GetModelTemplateCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetModelTemplateCommand(output, context);
36
- };
37
- return GetModelTemplateCommand;
38
- }($Command));
39
- export { GetModelTemplateCommand };
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 { GetModelsRequestFilterSensitiveLog, GetModelsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetModelsCommand, serializeAws_restJson1GetModelsCommand, } from "../protocols/Aws_restJson1";
6
- var GetModelsCommand = (function (_super) {
7
- __extends(GetModelsCommand, _super);
8
- function GetModelsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetModelsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetModelsCommand.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 = "GetModelsCommand";
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 = "GetModelsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetModelsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetModelsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetModelsCommand.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_restJson1GetModelsCommand(input, context);
33
- };
34
- GetModelsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetModelsCommand(output, context);
36
- };
37
- return GetModelsCommand;
38
- }($Command));
39
- export { GetModelsCommand };
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 { GetRouteRequestFilterSensitiveLog, GetRouteResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetRouteCommand, serializeAws_restJson1GetRouteCommand, } from "../protocols/Aws_restJson1";
6
- var GetRouteCommand = (function (_super) {
7
- __extends(GetRouteCommand, _super);
8
- function GetRouteCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetRouteCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetRouteCommand.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 = "GetRouteCommand";
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 = "GetRouteCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetRouteRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetRouteResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetRouteCommand.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_restJson1GetRouteCommand(input, context);
33
- };
34
- GetRouteCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetRouteCommand(output, context);
36
- };
37
- return GetRouteCommand;
38
- }($Command));
39
- export { GetRouteCommand };
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 { GetRouteResponseRequestFilterSensitiveLog, GetRouteResponseResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetRouteResponseCommand, serializeAws_restJson1GetRouteResponseCommand, } from "../protocols/Aws_restJson1";
6
- var GetRouteResponseCommand = (function (_super) {
7
- __extends(GetRouteResponseCommand, _super);
8
- function GetRouteResponseCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetRouteResponseCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetRouteResponseCommand.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 = "GetRouteResponseCommand";
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 = "GetRouteResponseCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetRouteResponseRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetRouteResponseResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetRouteResponseCommand.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_restJson1GetRouteResponseCommand(input, context);
33
- };
34
- GetRouteResponseCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetRouteResponseCommand(output, context);
36
- };
37
- return GetRouteResponseCommand;
38
- }($Command));
39
- export { GetRouteResponseCommand };
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 { GetRouteResponsesRequestFilterSensitiveLog, GetRouteResponsesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetRouteResponsesCommand, serializeAws_restJson1GetRouteResponsesCommand, } from "../protocols/Aws_restJson1";
6
- var GetRouteResponsesCommand = (function (_super) {
7
- __extends(GetRouteResponsesCommand, _super);
8
- function GetRouteResponsesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetRouteResponsesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetRouteResponsesCommand.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 = "GetRouteResponsesCommand";
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 = "GetRouteResponsesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetRouteResponsesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetRouteResponsesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetRouteResponsesCommand.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_restJson1GetRouteResponsesCommand(input, context);
33
- };
34
- GetRouteResponsesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetRouteResponsesCommand(output, context);
36
- };
37
- return GetRouteResponsesCommand;
38
- }($Command));
39
- export { GetRouteResponsesCommand };
31
+ }
32
+ }