@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,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
3
2
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
3
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
9
8
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
10
9
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
10
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
12
- var ApiGatewayV2Client = (function (_super) {
13
- __extends(ApiGatewayV2Client, _super);
14
- function ApiGatewayV2Client(configuration) {
15
- var _this = this;
16
- var _config_0 = __getRuntimeConfig(configuration);
17
- var _config_1 = resolveRegionConfig(_config_0);
18
- var _config_2 = resolveEndpointsConfig(_config_1);
19
- var _config_3 = resolveRetryConfig(_config_2);
20
- var _config_4 = resolveHostHeaderConfig(_config_3);
21
- var _config_5 = resolveAwsAuthConfig(_config_4);
22
- var _config_6 = resolveUserAgentConfig(_config_5);
23
- _this = _super.call(this, _config_6) || this;
24
- _this.config = _config_6;
25
- _this.middlewareStack.use(getRetryPlugin(_this.config));
26
- _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
- _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
- _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
- _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
- _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
- _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
- return _this;
11
+ export class ApiGatewayV2Client extends __Client {
12
+ constructor(configuration) {
13
+ const _config_0 = __getRuntimeConfig(configuration);
14
+ const _config_1 = resolveRegionConfig(_config_0);
15
+ const _config_2 = resolveEndpointsConfig(_config_1);
16
+ const _config_3 = resolveRetryConfig(_config_2);
17
+ const _config_4 = resolveHostHeaderConfig(_config_3);
18
+ const _config_5 = resolveAwsAuthConfig(_config_4);
19
+ const _config_6 = resolveUserAgentConfig(_config_5);
20
+ super(_config_6);
21
+ this.config = _config_6;
22
+ this.middlewareStack.use(getRetryPlugin(this.config));
23
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
24
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
+ this.middlewareStack.use(getLoggerPlugin(this.config));
26
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
+ this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
33
29
  }
34
- ApiGatewayV2Client.prototype.destroy = function () {
35
- _super.prototype.destroy.call(this);
36
- };
37
- return ApiGatewayV2Client;
38
- }(__Client));
39
- export { ApiGatewayV2Client };
30
+ destroy() {
31
+ super.destroy();
32
+ }
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 { CreateApiRequestFilterSensitiveLog, CreateApiResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateApiCommand, serializeAws_restJson1CreateApiCommand, } from "../protocols/Aws_restJson1";
6
- var CreateApiCommand = (function (_super) {
7
- __extends(CreateApiCommand, _super);
8
- function CreateApiCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateApiCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateApiCommand.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 = "CreateApiCommand";
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 = "CreateApiCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateApiRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateApiResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateApiCommand.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_restJson1CreateApiCommand(input, context);
33
- };
34
- CreateApiCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateApiCommand(output, context);
36
- };
37
- return CreateApiCommand;
38
- }($Command));
39
- export { CreateApiCommand };
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 { CreateApiMappingRequestFilterSensitiveLog, CreateApiMappingResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateApiMappingCommand, serializeAws_restJson1CreateApiMappingCommand, } from "../protocols/Aws_restJson1";
6
- var CreateApiMappingCommand = (function (_super) {
7
- __extends(CreateApiMappingCommand, _super);
8
- function CreateApiMappingCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateApiMappingCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateApiMappingCommand.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 = "CreateApiMappingCommand";
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 = "CreateApiMappingCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateApiMappingRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateApiMappingResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateApiMappingCommand.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_restJson1CreateApiMappingCommand(input, context);
33
- };
34
- CreateApiMappingCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateApiMappingCommand(output, context);
36
- };
37
- return CreateApiMappingCommand;
38
- }($Command));
39
- export { CreateApiMappingCommand };
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 { CreateAuthorizerRequestFilterSensitiveLog, CreateAuthorizerResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateAuthorizerCommand, serializeAws_restJson1CreateAuthorizerCommand, } from "../protocols/Aws_restJson1";
6
- var CreateAuthorizerCommand = (function (_super) {
7
- __extends(CreateAuthorizerCommand, _super);
8
- function CreateAuthorizerCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateAuthorizerCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateAuthorizerCommand.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 = "CreateAuthorizerCommand";
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 = "CreateAuthorizerCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateAuthorizerRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateAuthorizerResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateAuthorizerCommand.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_restJson1CreateAuthorizerCommand(input, context);
33
- };
34
- CreateAuthorizerCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateAuthorizerCommand(output, context);
36
- };
37
- return CreateAuthorizerCommand;
38
- }($Command));
39
- export { CreateAuthorizerCommand };
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 { CreateDeploymentRequestFilterSensitiveLog, CreateDeploymentResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateDeploymentCommand, serializeAws_restJson1CreateDeploymentCommand, } from "../protocols/Aws_restJson1";
6
- var CreateDeploymentCommand = (function (_super) {
7
- __extends(CreateDeploymentCommand, _super);
8
- function CreateDeploymentCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateDeploymentCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateDeploymentCommand.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 = "CreateDeploymentCommand";
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 = "CreateDeploymentCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateDeploymentRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateDeploymentResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateDeploymentCommand.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_restJson1CreateDeploymentCommand(input, context);
33
- };
34
- CreateDeploymentCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateDeploymentCommand(output, context);
36
- };
37
- return CreateDeploymentCommand;
38
- }($Command));
39
- export { CreateDeploymentCommand };
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 { CreateDomainNameRequestFilterSensitiveLog, CreateDomainNameResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateDomainNameCommand, serializeAws_restJson1CreateDomainNameCommand, } from "../protocols/Aws_restJson1";
6
- var CreateDomainNameCommand = (function (_super) {
7
- __extends(CreateDomainNameCommand, _super);
8
- function CreateDomainNameCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateDomainNameCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateDomainNameCommand.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 = "CreateDomainNameCommand";
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 = "CreateDomainNameCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateDomainNameRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateDomainNameResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateDomainNameCommand.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_restJson1CreateDomainNameCommand(input, context);
33
- };
34
- CreateDomainNameCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateDomainNameCommand(output, context);
36
- };
37
- return CreateDomainNameCommand;
38
- }($Command));
39
- export { CreateDomainNameCommand };
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 { CreateIntegrationRequestFilterSensitiveLog, CreateIntegrationResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateIntegrationCommand, serializeAws_restJson1CreateIntegrationCommand, } from "../protocols/Aws_restJson1";
6
- var CreateIntegrationCommand = (function (_super) {
7
- __extends(CreateIntegrationCommand, _super);
8
- function CreateIntegrationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateIntegrationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateIntegrationCommand.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 = "CreateIntegrationCommand";
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 = "CreateIntegrationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateIntegrationRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateIntegrationResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateIntegrationCommand.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_restJson1CreateIntegrationCommand(input, context);
33
- };
34
- CreateIntegrationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateIntegrationCommand(output, context);
36
- };
37
- return CreateIntegrationCommand;
38
- }($Command));
39
- export { CreateIntegrationCommand };
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 { CreateIntegrationResponseRequestFilterSensitiveLog, CreateIntegrationResponseResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateIntegrationResponseCommand, serializeAws_restJson1CreateIntegrationResponseCommand, } from "../protocols/Aws_restJson1";
6
- var CreateIntegrationResponseCommand = (function (_super) {
7
- __extends(CreateIntegrationResponseCommand, _super);
8
- function CreateIntegrationResponseCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateIntegrationResponseCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateIntegrationResponseCommand.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 = "CreateIntegrationResponseCommand";
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 = "CreateIntegrationResponseCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateIntegrationResponseRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateIntegrationResponseResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateIntegrationResponseCommand.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_restJson1CreateIntegrationResponseCommand(input, context);
33
- };
34
- CreateIntegrationResponseCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateIntegrationResponseCommand(output, context);
36
- };
37
- return CreateIntegrationResponseCommand;
38
- }($Command));
39
- export { CreateIntegrationResponseCommand };
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 { CreateModelRequestFilterSensitiveLog, CreateModelResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateModelCommand, serializeAws_restJson1CreateModelCommand, } from "../protocols/Aws_restJson1";
6
- var CreateModelCommand = (function (_super) {
7
- __extends(CreateModelCommand, _super);
8
- function CreateModelCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateModelCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateModelCommand.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 = "CreateModelCommand";
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 = "CreateModelCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateModelRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateModelResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateModelCommand.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_restJson1CreateModelCommand(input, context);
33
- };
34
- CreateModelCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateModelCommand(output, context);
36
- };
37
- return CreateModelCommand;
38
- }($Command));
39
- export { CreateModelCommand };
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 { CreateRouteRequestFilterSensitiveLog, CreateRouteResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateRouteCommand, serializeAws_restJson1CreateRouteCommand, } from "../protocols/Aws_restJson1";
6
- var CreateRouteCommand = (function (_super) {
7
- __extends(CreateRouteCommand, _super);
8
- function CreateRouteCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateRouteCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateRouteCommand.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 = "CreateRouteCommand";
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 = "CreateRouteCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateRouteRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateRouteResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateRouteCommand.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_restJson1CreateRouteCommand(input, context);
33
- };
34
- CreateRouteCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateRouteCommand(output, context);
36
- };
37
- return CreateRouteCommand;
38
- }($Command));
39
- export { CreateRouteCommand };
31
+ }
32
+ }