@aws-sdk/client-apigatewayv2 3.928.0 → 3.930.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 (98) hide show
  1. package/dist-cjs/index.js +8007 -3712
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/ApiGatewayV2Client.js +2 -0
  4. package/dist-es/commands/CreateApiCommand.js +3 -9
  5. package/dist-es/commands/CreateApiMappingCommand.js +3 -9
  6. package/dist-es/commands/CreateAuthorizerCommand.js +3 -9
  7. package/dist-es/commands/CreateDeploymentCommand.js +3 -9
  8. package/dist-es/commands/CreateDomainNameCommand.js +3 -9
  9. package/dist-es/commands/CreateIntegrationCommand.js +3 -9
  10. package/dist-es/commands/CreateIntegrationResponseCommand.js +3 -9
  11. package/dist-es/commands/CreateModelCommand.js +3 -9
  12. package/dist-es/commands/CreateRouteCommand.js +3 -9
  13. package/dist-es/commands/CreateRouteResponseCommand.js +3 -9
  14. package/dist-es/commands/CreateRoutingRuleCommand.js +3 -9
  15. package/dist-es/commands/CreateStageCommand.js +3 -9
  16. package/dist-es/commands/CreateVpcLinkCommand.js +3 -9
  17. package/dist-es/commands/DeleteAccessLogSettingsCommand.js +3 -9
  18. package/dist-es/commands/DeleteApiCommand.js +3 -9
  19. package/dist-es/commands/DeleteApiMappingCommand.js +3 -9
  20. package/dist-es/commands/DeleteAuthorizerCommand.js +3 -9
  21. package/dist-es/commands/DeleteCorsConfigurationCommand.js +3 -9
  22. package/dist-es/commands/DeleteDeploymentCommand.js +3 -9
  23. package/dist-es/commands/DeleteDomainNameCommand.js +3 -9
  24. package/dist-es/commands/DeleteIntegrationCommand.js +3 -9
  25. package/dist-es/commands/DeleteIntegrationResponseCommand.js +3 -9
  26. package/dist-es/commands/DeleteModelCommand.js +3 -9
  27. package/dist-es/commands/DeleteRouteCommand.js +3 -9
  28. package/dist-es/commands/DeleteRouteRequestParameterCommand.js +3 -9
  29. package/dist-es/commands/DeleteRouteResponseCommand.js +3 -9
  30. package/dist-es/commands/DeleteRouteSettingsCommand.js +3 -9
  31. package/dist-es/commands/DeleteRoutingRuleCommand.js +3 -9
  32. package/dist-es/commands/DeleteStageCommand.js +3 -9
  33. package/dist-es/commands/DeleteVpcLinkCommand.js +3 -9
  34. package/dist-es/commands/ExportApiCommand.js +3 -9
  35. package/dist-es/commands/GetApiCommand.js +3 -9
  36. package/dist-es/commands/GetApiMappingCommand.js +3 -9
  37. package/dist-es/commands/GetApiMappingsCommand.js +3 -9
  38. package/dist-es/commands/GetApisCommand.js +3 -9
  39. package/dist-es/commands/GetAuthorizerCommand.js +3 -9
  40. package/dist-es/commands/GetAuthorizersCommand.js +3 -9
  41. package/dist-es/commands/GetDeploymentCommand.js +3 -9
  42. package/dist-es/commands/GetDeploymentsCommand.js +3 -9
  43. package/dist-es/commands/GetDomainNameCommand.js +3 -9
  44. package/dist-es/commands/GetDomainNamesCommand.js +3 -9
  45. package/dist-es/commands/GetIntegrationCommand.js +3 -9
  46. package/dist-es/commands/GetIntegrationResponseCommand.js +3 -9
  47. package/dist-es/commands/GetIntegrationResponsesCommand.js +3 -9
  48. package/dist-es/commands/GetIntegrationsCommand.js +3 -9
  49. package/dist-es/commands/GetModelCommand.js +3 -9
  50. package/dist-es/commands/GetModelTemplateCommand.js +3 -9
  51. package/dist-es/commands/GetModelsCommand.js +3 -9
  52. package/dist-es/commands/GetRouteCommand.js +3 -9
  53. package/dist-es/commands/GetRouteResponseCommand.js +3 -9
  54. package/dist-es/commands/GetRouteResponsesCommand.js +3 -9
  55. package/dist-es/commands/GetRoutesCommand.js +3 -9
  56. package/dist-es/commands/GetRoutingRuleCommand.js +3 -9
  57. package/dist-es/commands/GetStageCommand.js +3 -9
  58. package/dist-es/commands/GetStagesCommand.js +3 -9
  59. package/dist-es/commands/GetTagsCommand.js +3 -9
  60. package/dist-es/commands/GetVpcLinkCommand.js +3 -9
  61. package/dist-es/commands/GetVpcLinksCommand.js +3 -9
  62. package/dist-es/commands/ImportApiCommand.js +3 -9
  63. package/dist-es/commands/ListRoutingRulesCommand.js +3 -9
  64. package/dist-es/commands/PutRoutingRuleCommand.js +3 -9
  65. package/dist-es/commands/ReimportApiCommand.js +3 -9
  66. package/dist-es/commands/ResetAuthorizersCacheCommand.js +3 -9
  67. package/dist-es/commands/TagResourceCommand.js +3 -9
  68. package/dist-es/commands/UntagResourceCommand.js +3 -9
  69. package/dist-es/commands/UpdateApiCommand.js +3 -9
  70. package/dist-es/commands/UpdateApiMappingCommand.js +3 -9
  71. package/dist-es/commands/UpdateAuthorizerCommand.js +3 -9
  72. package/dist-es/commands/UpdateDeploymentCommand.js +3 -9
  73. package/dist-es/commands/UpdateDomainNameCommand.js +3 -9
  74. package/dist-es/commands/UpdateIntegrationCommand.js +3 -9
  75. package/dist-es/commands/UpdateIntegrationResponseCommand.js +3 -9
  76. package/dist-es/commands/UpdateModelCommand.js +3 -9
  77. package/dist-es/commands/UpdateRouteCommand.js +3 -9
  78. package/dist-es/commands/UpdateRouteResponseCommand.js +3 -9
  79. package/dist-es/commands/UpdateStageCommand.js +3 -9
  80. package/dist-es/commands/UpdateVpcLinkCommand.js +3 -9
  81. package/dist-es/runtimeConfig.shared.js +2 -0
  82. package/dist-es/schemas/schemas_0.js +7870 -0
  83. package/dist-types/ApiGatewayV2Client.d.ts +10 -1
  84. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  85. package/dist-types/runtimeConfig.d.ts +1 -0
  86. package/dist-types/runtimeConfig.native.d.ts +1 -0
  87. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  88. package/dist-types/schemas/schemas_0.d.ts +284 -0
  89. package/dist-types/ts3.4/ApiGatewayV2Client.d.ts +4 -0
  90. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  91. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  92. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  93. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  94. package/dist-types/ts3.4/schemas/schemas_0.d.ts +290 -0
  95. package/package.json +34 -34
  96. package/dist-es/protocols/Aws_restJson1.js +0 -3178
  97. package/dist-types/protocols/Aws_restJson1.d.ts +0 -695
  98. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -929
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateIntegrationCommand, se_UpdateIntegrationCommand } from "../protocols/Aws_restJson1";
4
+ import { UpdateIntegration } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateIntegrationCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("ApiGatewayV2", "UpdateIntegration", {})
17
13
  .n("ApiGatewayV2Client", "UpdateIntegrationCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateIntegrationCommand)
20
- .de(de_UpdateIntegrationCommand)
14
+ .sc(UpdateIntegration)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateIntegrationResponseCommand, se_UpdateIntegrationResponseCommand } from "../protocols/Aws_restJson1";
4
+ import { UpdateIntegrationResponse } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateIntegrationResponseCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("ApiGatewayV2", "UpdateIntegrationResponse", {})
17
13
  .n("ApiGatewayV2Client", "UpdateIntegrationResponseCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateIntegrationResponseCommand)
20
- .de(de_UpdateIntegrationResponseCommand)
14
+ .sc(UpdateIntegrationResponse)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateModelCommand, se_UpdateModelCommand } from "../protocols/Aws_restJson1";
4
+ import { UpdateModel } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateModelCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("ApiGatewayV2", "UpdateModel", {})
17
13
  .n("ApiGatewayV2Client", "UpdateModelCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateModelCommand)
20
- .de(de_UpdateModelCommand)
14
+ .sc(UpdateModel)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateRouteCommand, se_UpdateRouteCommand } from "../protocols/Aws_restJson1";
4
+ import { UpdateRoute } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateRouteCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("ApiGatewayV2", "UpdateRoute", {})
17
13
  .n("ApiGatewayV2Client", "UpdateRouteCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateRouteCommand)
20
- .de(de_UpdateRouteCommand)
14
+ .sc(UpdateRoute)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateRouteResponseCommand, se_UpdateRouteResponseCommand } from "../protocols/Aws_restJson1";
4
+ import { UpdateRouteResponse } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateRouteResponseCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("ApiGatewayV2", "UpdateRouteResponse", {})
17
13
  .n("ApiGatewayV2Client", "UpdateRouteResponseCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateRouteResponseCommand)
20
- .de(de_UpdateRouteResponseCommand)
14
+ .sc(UpdateRouteResponse)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateStageCommand, se_UpdateStageCommand } from "../protocols/Aws_restJson1";
4
+ import { UpdateStage } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateStageCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("ApiGatewayV2", "UpdateStage", {})
17
13
  .n("ApiGatewayV2Client", "UpdateStageCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateStageCommand)
20
- .de(de_UpdateStageCommand)
14
+ .sc(UpdateStage)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateVpcLinkCommand, se_UpdateVpcLinkCommand } from "../protocols/Aws_restJson1";
4
+ import { UpdateVpcLink } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateVpcLinkCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("ApiGatewayV2", "UpdateVpcLink", {})
17
13
  .n("ApiGatewayV2Client", "UpdateVpcLinkCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateVpcLinkCommand)
20
- .de(de_UpdateVpcLinkCommand)
14
+ .sc(UpdateVpcLink)
21
15
  .build() {
22
16
  }
@@ -1,4 +1,5 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
2
3
  import { NoOpLogger } from "@smithy/smithy-client";
3
4
  import { parseUrl } from "@smithy/url-parser";
4
5
  import { fromBase64, toBase64 } from "@smithy/util-base64";
@@ -22,6 +23,7 @@ export const getRuntimeConfig = (config) => {
22
23
  },
23
24
  ],
24
25
  logger: config?.logger ?? new NoOpLogger(),
26
+ protocol: config?.protocol ?? new AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.apigatewayv2" }),
25
27
  serviceId: config?.serviceId ?? "ApiGatewayV2",
26
28
  urlParser: config?.urlParser ?? parseUrl,
27
29
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,