@aws-sdk/client-api-gateway 3.95.0 → 3.105.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 (107) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist-cjs/APIGatewayClient.js +2 -0
  3. package/dist-cjs/runtimeConfig.js +2 -0
  4. package/dist-es/APIGatewayClient.js +2 -0
  5. package/dist-es/runtimeConfig.js +2 -0
  6. package/dist-types/APIGateway.d.ts +110 -82
  7. package/dist-types/commands/CreateApiKeyCommand.d.ts +1 -2
  8. package/dist-types/commands/CreateAuthorizerCommand.d.ts +1 -2
  9. package/dist-types/commands/CreateBasePathMappingCommand.d.ts +1 -1
  10. package/dist-types/commands/CreateDeploymentCommand.d.ts +1 -1
  11. package/dist-types/commands/CreateDocumentationPartCommand.d.ts +17 -0
  12. package/dist-types/commands/CreateDocumentationVersionCommand.d.ts +17 -0
  13. package/dist-types/commands/CreateModelCommand.d.ts +1 -1
  14. package/dist-types/commands/CreateRequestValidatorCommand.d.ts +1 -1
  15. package/dist-types/commands/CreateResourceCommand.d.ts +1 -1
  16. package/dist-types/commands/CreateRestApiCommand.d.ts +1 -1
  17. package/dist-types/commands/CreateStageCommand.d.ts +1 -2
  18. package/dist-types/commands/DeleteApiKeyCommand.d.ts +1 -1
  19. package/dist-types/commands/DeleteAuthorizerCommand.d.ts +1 -2
  20. package/dist-types/commands/DeleteBasePathMappingCommand.d.ts +1 -1
  21. package/dist-types/commands/DeleteClientCertificateCommand.d.ts +1 -1
  22. package/dist-types/commands/DeleteDeploymentCommand.d.ts +1 -1
  23. package/dist-types/commands/DeleteDocumentationPartCommand.d.ts +17 -0
  24. package/dist-types/commands/DeleteDocumentationVersionCommand.d.ts +17 -0
  25. package/dist-types/commands/DeleteDomainNameCommand.d.ts +1 -1
  26. package/dist-types/commands/DeleteGatewayResponseCommand.d.ts +1 -1
  27. package/dist-types/commands/DeleteMethodCommand.d.ts +1 -1
  28. package/dist-types/commands/DeleteMethodResponseCommand.d.ts +1 -1
  29. package/dist-types/commands/DeleteRequestValidatorCommand.d.ts +1 -1
  30. package/dist-types/commands/DeleteResourceCommand.d.ts +1 -1
  31. package/dist-types/commands/DeleteStageCommand.d.ts +1 -1
  32. package/dist-types/commands/DeleteVpcLinkCommand.d.ts +1 -1
  33. package/dist-types/commands/GenerateClientCertificateCommand.d.ts +1 -1
  34. package/dist-types/commands/GetAccountCommand.d.ts +1 -1
  35. package/dist-types/commands/GetApiKeyCommand.d.ts +1 -1
  36. package/dist-types/commands/GetApiKeysCommand.d.ts +1 -1
  37. package/dist-types/commands/GetAuthorizerCommand.d.ts +1 -2
  38. package/dist-types/commands/GetAuthorizersCommand.d.ts +1 -2
  39. package/dist-types/commands/GetBasePathMappingCommand.d.ts +1 -1
  40. package/dist-types/commands/GetBasePathMappingsCommand.d.ts +1 -1
  41. package/dist-types/commands/GetClientCertificateCommand.d.ts +1 -1
  42. package/dist-types/commands/GetClientCertificatesCommand.d.ts +1 -1
  43. package/dist-types/commands/GetDeploymentCommand.d.ts +1 -1
  44. package/dist-types/commands/GetDeploymentsCommand.d.ts +1 -1
  45. package/dist-types/commands/GetDocumentationPartCommand.d.ts +17 -0
  46. package/dist-types/commands/GetDocumentationPartsCommand.d.ts +17 -0
  47. package/dist-types/commands/GetDocumentationVersionCommand.d.ts +17 -0
  48. package/dist-types/commands/GetDocumentationVersionsCommand.d.ts +17 -0
  49. package/dist-types/commands/GetDomainNamesCommand.d.ts +1 -1
  50. package/dist-types/commands/GetExportCommand.d.ts +1 -1
  51. package/dist-types/commands/GetGatewayResponseCommand.d.ts +1 -1
  52. package/dist-types/commands/GetGatewayResponsesCommand.d.ts +1 -1
  53. package/dist-types/commands/GetMethodCommand.d.ts +1 -1
  54. package/dist-types/commands/GetMethodResponseCommand.d.ts +1 -1
  55. package/dist-types/commands/GetModelCommand.d.ts +1 -1
  56. package/dist-types/commands/GetModelsCommand.d.ts +1 -1
  57. package/dist-types/commands/GetRequestValidatorCommand.d.ts +1 -1
  58. package/dist-types/commands/GetRequestValidatorsCommand.d.ts +1 -1
  59. package/dist-types/commands/GetResourcesCommand.d.ts +1 -1
  60. package/dist-types/commands/GetRestApiCommand.d.ts +1 -1
  61. package/dist-types/commands/GetRestApisCommand.d.ts +1 -1
  62. package/dist-types/commands/GetSdkCommand.d.ts +1 -1
  63. package/dist-types/commands/GetSdkTypeCommand.d.ts +17 -0
  64. package/dist-types/commands/GetSdkTypesCommand.d.ts +17 -0
  65. package/dist-types/commands/GetStageCommand.d.ts +1 -1
  66. package/dist-types/commands/GetStagesCommand.d.ts +1 -1
  67. package/dist-types/commands/GetTagsCommand.d.ts +1 -1
  68. package/dist-types/commands/GetVpcLinksCommand.d.ts +1 -1
  69. package/dist-types/commands/ImportDocumentationPartsCommand.d.ts +17 -0
  70. package/dist-types/commands/PutGatewayResponseCommand.d.ts +1 -1
  71. package/dist-types/commands/PutMethodCommand.d.ts +1 -1
  72. package/dist-types/commands/PutMethodResponseCommand.d.ts +1 -1
  73. package/dist-types/commands/TestInvokeAuthorizerCommand.d.ts +1 -5
  74. package/dist-types/commands/TestInvokeMethodCommand.d.ts +1 -1
  75. package/dist-types/commands/UpdateAccountCommand.d.ts +1 -1
  76. package/dist-types/commands/UpdateApiKeyCommand.d.ts +1 -1
  77. package/dist-types/commands/UpdateAuthorizerCommand.d.ts +1 -2
  78. package/dist-types/commands/UpdateBasePathMappingCommand.d.ts +1 -1
  79. package/dist-types/commands/UpdateClientCertificateCommand.d.ts +1 -1
  80. package/dist-types/commands/UpdateDeploymentCommand.d.ts +1 -1
  81. package/dist-types/commands/UpdateDocumentationPartCommand.d.ts +17 -0
  82. package/dist-types/commands/UpdateDocumentationVersionCommand.d.ts +17 -0
  83. package/dist-types/commands/UpdateDomainNameCommand.d.ts +1 -1
  84. package/dist-types/commands/UpdateGatewayResponseCommand.d.ts +1 -1
  85. package/dist-types/commands/UpdateMethodCommand.d.ts +1 -1
  86. package/dist-types/commands/UpdateMethodResponseCommand.d.ts +1 -1
  87. package/dist-types/commands/UpdateRequestValidatorCommand.d.ts +1 -1
  88. package/dist-types/commands/UpdateResourceCommand.d.ts +1 -1
  89. package/dist-types/commands/UpdateStageCommand.d.ts +1 -1
  90. package/dist-types/commands/UpdateVpcLinkCommand.d.ts +1 -1
  91. package/dist-types/models/models_0.d.ts +712 -2091
  92. package/dist-types/ts3.4/APIGateway.d.ts +13 -0
  93. package/dist-types/ts3.4/commands/CreateDocumentationPartCommand.d.ts +1 -0
  94. package/dist-types/ts3.4/commands/CreateDocumentationVersionCommand.d.ts +1 -0
  95. package/dist-types/ts3.4/commands/DeleteDocumentationPartCommand.d.ts +1 -0
  96. package/dist-types/ts3.4/commands/DeleteDocumentationVersionCommand.d.ts +1 -0
  97. package/dist-types/ts3.4/commands/GetDocumentationPartCommand.d.ts +1 -0
  98. package/dist-types/ts3.4/commands/GetDocumentationPartsCommand.d.ts +1 -0
  99. package/dist-types/ts3.4/commands/GetDocumentationVersionCommand.d.ts +1 -0
  100. package/dist-types/ts3.4/commands/GetDocumentationVersionsCommand.d.ts +1 -0
  101. package/dist-types/ts3.4/commands/GetSdkTypeCommand.d.ts +1 -0
  102. package/dist-types/ts3.4/commands/GetSdkTypesCommand.d.ts +1 -0
  103. package/dist-types/ts3.4/commands/ImportDocumentationPartsCommand.d.ts +1 -0
  104. package/dist-types/ts3.4/commands/UpdateDocumentationPartCommand.d.ts +1 -0
  105. package/dist-types/ts3.4/commands/UpdateDocumentationVersionCommand.d.ts +1 -0
  106. package/dist-types/ts3.4/models/models_0.d.ts +66 -191
  107. package/package.json +7 -6
package/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.105.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.104.0...v3.105.0) (2022-06-06)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** support recursion detection in Lambda ([#3654](https://github.com/aws/aws-sdk-js-v3/issues/3654)) ([ecfe46e](https://github.com/aws/aws-sdk-js-v3/commit/ecfe46ea1fd8b6e3812b75b3dc6c03554fb4b3fa))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.100.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.99.0...v3.100.0) (2022-05-26)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/client-api-gateway
20
+
21
+
22
+
23
+
24
+
25
+ # [3.99.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.98.0...v3.99.0) (2022-05-25)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-api-gateway
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.95.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.94.0...v3.95.0) (2022-05-19)
7
34
 
8
35
  **Note:** Version bump only for package @aws-sdk/client-api-gateway
@@ -5,6 +5,7 @@ const config_resolver_1 = require("@aws-sdk/config-resolver");
5
5
  const middleware_content_length_1 = require("@aws-sdk/middleware-content-length");
6
6
  const middleware_host_header_1 = require("@aws-sdk/middleware-host-header");
7
7
  const middleware_logger_1 = require("@aws-sdk/middleware-logger");
8
+ const middleware_recursion_detection_1 = require("@aws-sdk/middleware-recursion-detection");
8
9
  const middleware_retry_1 = require("@aws-sdk/middleware-retry");
9
10
  const middleware_sdk_api_gateway_1 = require("@aws-sdk/middleware-sdk-api-gateway");
10
11
  const middleware_signing_1 = require("@aws-sdk/middleware-signing");
@@ -27,6 +28,7 @@ class APIGatewayClient extends smithy_client_1.Client {
27
28
  this.middlewareStack.use((0, middleware_sdk_api_gateway_1.getAcceptHeaderPlugin)(this.config));
28
29
  this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
29
30
  this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
31
+ this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config));
30
32
  this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(this.config));
31
33
  this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
32
34
  }
@@ -17,8 +17,10 @@ const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
17
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
18
  const smithy_client_1 = require("@aws-sdk/smithy-client");
19
19
  const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
20
+ const smithy_client_2 = require("@aws-sdk/smithy-client");
20
21
  const getRuntimeConfig = (config) => {
21
22
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
23
+ (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
22
24
  const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
23
25
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
24
26
  const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
@@ -3,6 +3,7 @@ import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-re
3
3
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
4
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
5
5
  import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
6
+ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
6
7
  import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
7
8
  import { getAcceptHeaderPlugin } from "@aws-sdk/middleware-sdk-api-gateway";
8
9
  import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
@@ -27,6 +28,7 @@ var APIGatewayClient = (function (_super) {
27
28
  _this.middlewareStack.use(getAcceptHeaderPlugin(_this.config));
28
29
  _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
29
30
  _this.middlewareStack.use(getLoggerPlugin(_this.config));
31
+ _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
32
  _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
33
  _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
34
  return _this;
@@ -14,8 +14,10 @@ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
15
  import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
16
16
  import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
17
+ import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
17
18
  export var getRuntimeConfig = function (config) {
18
19
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
20
+ emitWarningIfUnsupportedVersion(process.version);
19
21
  var defaultsMode = resolveDefaultsModeConfig(config);
20
22
  var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
21
23
  var clientSharedValues = getSharedRuntimeConfig(config);