@aws-sdk/client-api-gateway 3.41.0 → 3.46.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,53 @@
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.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **clients:** update clean:dist script to delete dist-* folder ([#3155](https://github.com/aws/aws-sdk-js-v3/issues/3155)) ([cdb1709](https://github.com/aws/aws-sdk-js-v3/commit/cdb17090f82d1fc8755811c82cbed5976ec7e60b))
12
+
13
+
14
+ ### Features
15
+
16
+ * **clients:** extend typedoc.json from root ([#3136](https://github.com/aws/aws-sdk-js-v3/issues/3136)) ([f6a3ef5](https://github.com/aws/aws-sdk-js-v3/commit/f6a3ef541ae2d92872d09d8cab6727911287ebb2))
17
+ * end support for Node.js 10.x ([#3122](https://github.com/aws/aws-sdk-js-v3/issues/3122)) ([7acf18a](https://github.com/aws/aws-sdk-js-v3/commit/7acf18abd3fb1cc461f809110cdb0d7968c2070e))
18
+
19
+
20
+
21
+
22
+
23
+ # [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
24
+
25
+
26
+ ### Features
27
+
28
+ * **clients:** update clients as of 2021/12/23 ([#3110](https://github.com/aws/aws-sdk-js-v3/issues/3110)) ([5d638e1](https://github.com/aws/aws-sdk-js-v3/commit/5d638e188ce64fa80fe36b8cba79ba63b80b50b7))
29
+
30
+
31
+
32
+
33
+
34
+ # [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
35
+
36
+ **Note:** Version bump only for package @aws-sdk/client-api-gateway
37
+
38
+
39
+
40
+
41
+
42
+ # [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
43
+
44
+
45
+ ### Features
46
+
47
+ * **clients:** update clients as of 11/18/2021 ([#3039](https://github.com/aws/aws-sdk-js-v3/issues/3039)) ([d2b2c45](https://github.com/aws/aws-sdk-js-v3/commit/d2b2c453315fc7bff798c1fb97c792e59274b4d6))
48
+
49
+
50
+
51
+
52
+
6
53
  # [3.41.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.40.1...v3.41.0) (2021-11-11)
7
54
 
8
55
 
@@ -14,6 +14,7 @@ const partitionHash = {
14
14
  "ap-south-1",
15
15
  "ap-southeast-1",
16
16
  "ap-southeast-2",
17
+ "ap-southeast-3",
17
18
  "ca-central-1",
18
19
  "eu-central-1",
19
20
  "eu-north-1",
@@ -15,10 +15,8 @@ const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
15
15
  const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
16
16
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
17
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
- const smithy_client_1 = require("@aws-sdk/smithy-client");
19
18
  const getRuntimeConfig = (config) => {
20
19
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
21
- smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
22
20
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
23
21
  return {
24
22
  ...clientSharedValues,
@@ -12,6 +12,7 @@ var partitionHash = {
12
12
  "ap-south-1",
13
13
  "ap-southeast-1",
14
14
  "ap-southeast-2",
15
+ "ap-southeast-3",
15
16
  "ca-central-1",
16
17
  "eu-central-1",
17
18
  "eu-north-1",
@@ -12,10 +12,8 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
12
12
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
13
13
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
- import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
16
15
  export var getRuntimeConfig = function (config) {
17
16
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
18
- emitWarningIfUnsupportedVersion(process.version);
19
17
  var clientSharedValues = getSharedRuntimeConfig(config);
20
18
  return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
21
19
  };
@@ -23,11 +23,11 @@ export declare namespace AccessLogSettings {
23
23
  */
24
24
  export interface ThrottleSettings {
25
25
  /**
26
- * <p>The API request burst limit, the maximum rate limit over a time ranging from one to a few seconds, depending upon whether the underlying token bucket is at its full capacity.</p>
26
+ * <p>The API target request burst rate limit. This allows more requests through for a period of time than the target rate limit.</p>
27
27
  */
28
28
  burstLimit?: number;
29
29
  /**
30
- * <p>The API request steady-state rate limit.</p>
30
+ * <p>The API target request rate limit.</p>
31
31
  */
32
32
  rateLimit?: number;
33
33
  }
@@ -2381,7 +2381,7 @@ export interface MethodSetting {
2381
2381
  */
2382
2382
  loggingLevel?: string;
2383
2383
  /**
2384
- * <p>Specifies whether data trace logging is enabled for this method, which affects the log entries pushed to Amazon CloudWatch Logs. The PATCH path for this setting is <code>/{method_setting_key}/logging/dataTrace</code>, and the value is a Boolean.</p>
2384
+ * <p>Specifies whether full requests and responses are logged for this method, which affects the log entries pushed to Amazon CloudWatch Logs. This can be useful to troubleshoot APIs, but can result in logging sensitive data. We recommend that you don't enable this option for production APIs. The PATCH path for this setting is <code>/{method_setting_key}/logging/dataTrace</code>, and the value is a Boolean.</p>
2385
2385
  */
2386
2386
  dataTraceEnabled?: boolean;
2387
2387
  /**
@@ -2518,7 +2518,7 @@ export declare enum QuotaPeriodType {
2518
2518
  */
2519
2519
  export interface QuotaSettings {
2520
2520
  /**
2521
- * <p>The maximum number of requests that can be made in a given time period.</p>
2521
+ * <p>The target maximum number of requests that can be made in a given time period.</p>
2522
2522
  */
2523
2523
  limit?: number;
2524
2524
  /**
@@ -2574,7 +2574,10 @@ export declare namespace CreateUsagePlanRequest {
2574
2574
  const filterSensitiveLog: (obj: CreateUsagePlanRequest) => any;
2575
2575
  }
2576
2576
  /**
2577
- * <p>Represents a usage plan than can specify who can assess associated API stages with specified request limits and quotas.</p>
2577
+ * <p>Represents a usage plan used to specify who can assess associated API stages. Optionally, target request rate and quota limits can be set.
2578
+ * In some cases clients can exceed the targets that you set. Don’t rely on usage plans to control costs.
2579
+ * Consider using <a href="https://docs.aws.amazon.com/cost-management/latest/userguide/budgets-managing-costs.html">AWS Budgets</a> to monitor costs
2580
+ * and <a href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html">AWS WAF</a> to manage API requests.</p>
2578
2581
  * <div class="remarks">
2579
2582
  * <p>In a usage plan, you associate an API by specifying the API's Id and a stage name of the specified API. You add plan customers by adding API keys to the plan. </p>
2580
2583
  * </div>
@@ -2600,11 +2603,11 @@ export interface UsagePlan {
2600
2603
  */
2601
2604
  apiStages?: ApiStage[];
2602
2605
  /**
2603
- * <p>The request throttle limits of a usage plan.</p>
2606
+ * <p>Map containing method level throttling information for API stage in a usage plan.</p>
2604
2607
  */
2605
2608
  throttle?: ThrottleSettings;
2606
2609
  /**
2607
- * <p>The maximum number of permitted requests per a given unit time interval.</p>
2610
+ * <p>The target maximum number of permitted requests per a given unit time interval.</p>
2608
2611
  */
2609
2612
  quota?: QuotaSettings;
2610
2613
  /**
package/package.json CHANGED
@@ -1,18 +1,17 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-api-gateway",
3
3
  "description": "AWS SDK for JavaScript Api Gateway Client for Node.js, Browser and React Native",
4
- "version": "3.41.0",
4
+ "version": "3.46.0",
5
5
  "scripts": {
6
6
  "build": "yarn build:cjs && yarn build:es && yarn build:types",
7
7
  "build:cjs": "tsc -p tsconfig.json",
8
- "build:docs": "yarn clean:docs && typedoc ./",
8
+ "build:docs": "typedoc",
9
9
  "build:es": "tsc -p tsconfig.es.json",
10
10
  "build:types": "tsc -p tsconfig.types.json",
11
+ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
11
12
  "clean": "yarn clean:dist && yarn clean:docs",
12
- "clean:dist": "rimraf ./dist",
13
- "clean:docs": "rimraf ./docs",
14
- "downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
15
- "test": "exit 0"
13
+ "clean:dist": "rimraf ./dist-*",
14
+ "clean:docs": "rimraf ./docs"
16
15
  },
17
16
  "main": "./dist-cjs/index.js",
18
17
  "types": "./dist-types/index.d.ts",
@@ -21,49 +20,43 @@
21
20
  "dependencies": {
22
21
  "@aws-crypto/sha256-browser": "2.0.0",
23
22
  "@aws-crypto/sha256-js": "2.0.0",
24
- "@aws-sdk/client-sts": "3.41.0",
25
- "@aws-sdk/config-resolver": "3.40.0",
26
- "@aws-sdk/credential-provider-node": "3.41.0",
27
- "@aws-sdk/fetch-http-handler": "3.40.0",
28
- "@aws-sdk/hash-node": "3.40.0",
29
- "@aws-sdk/invalid-dependency": "3.40.0",
30
- "@aws-sdk/middleware-content-length": "3.40.0",
31
- "@aws-sdk/middleware-host-header": "3.40.0",
32
- "@aws-sdk/middleware-logger": "3.40.0",
33
- "@aws-sdk/middleware-retry": "3.40.0",
34
- "@aws-sdk/middleware-sdk-api-gateway": "3.40.0",
35
- "@aws-sdk/middleware-serde": "3.40.0",
36
- "@aws-sdk/middleware-signing": "3.40.0",
37
- "@aws-sdk/middleware-stack": "3.40.0",
38
- "@aws-sdk/middleware-user-agent": "3.40.0",
39
- "@aws-sdk/node-config-provider": "3.40.0",
40
- "@aws-sdk/node-http-handler": "3.40.0",
41
- "@aws-sdk/protocol-http": "3.40.0",
42
- "@aws-sdk/smithy-client": "3.41.0",
43
- "@aws-sdk/types": "3.40.0",
44
- "@aws-sdk/url-parser": "3.40.0",
45
- "@aws-sdk/util-base64-browser": "3.37.0",
46
- "@aws-sdk/util-base64-node": "3.37.0",
47
- "@aws-sdk/util-body-length-browser": "3.37.0",
48
- "@aws-sdk/util-body-length-node": "3.37.0",
49
- "@aws-sdk/util-user-agent-browser": "3.40.0",
50
- "@aws-sdk/util-user-agent-node": "3.40.0",
51
- "@aws-sdk/util-utf8-browser": "3.37.0",
52
- "@aws-sdk/util-utf8-node": "3.37.0",
23
+ "@aws-sdk/client-sts": "3.46.0",
24
+ "@aws-sdk/config-resolver": "3.46.0",
25
+ "@aws-sdk/credential-provider-node": "3.46.0",
26
+ "@aws-sdk/fetch-http-handler": "3.46.0",
27
+ "@aws-sdk/hash-node": "3.46.0",
28
+ "@aws-sdk/invalid-dependency": "3.46.0",
29
+ "@aws-sdk/middleware-content-length": "3.46.0",
30
+ "@aws-sdk/middleware-host-header": "3.46.0",
31
+ "@aws-sdk/middleware-logger": "3.46.0",
32
+ "@aws-sdk/middleware-retry": "3.46.0",
33
+ "@aws-sdk/middleware-sdk-api-gateway": "3.46.0",
34
+ "@aws-sdk/middleware-serde": "3.46.0",
35
+ "@aws-sdk/middleware-signing": "3.46.0",
36
+ "@aws-sdk/middleware-stack": "3.46.0",
37
+ "@aws-sdk/middleware-user-agent": "3.46.0",
38
+ "@aws-sdk/node-config-provider": "3.46.0",
39
+ "@aws-sdk/node-http-handler": "3.46.0",
40
+ "@aws-sdk/protocol-http": "3.46.0",
41
+ "@aws-sdk/smithy-client": "3.46.0",
42
+ "@aws-sdk/types": "3.46.0",
43
+ "@aws-sdk/url-parser": "3.46.0",
44
+ "@aws-sdk/util-base64-browser": "3.46.0",
45
+ "@aws-sdk/util-base64-node": "3.46.0",
46
+ "@aws-sdk/util-body-length-browser": "3.46.0",
47
+ "@aws-sdk/util-body-length-node": "3.46.0",
48
+ "@aws-sdk/util-user-agent-browser": "3.46.0",
49
+ "@aws-sdk/util-user-agent-node": "3.46.0",
50
+ "@aws-sdk/util-utf8-browser": "3.46.0",
51
+ "@aws-sdk/util-utf8-node": "3.46.0",
53
52
  "tslib": "^2.3.0"
54
53
  },
55
54
  "devDependencies": {
56
- "@aws-sdk/service-client-documentation-generator": "3.38.0",
57
- "@types/node": "^12.7.5",
58
- "downlevel-dts": "0.7.0",
59
- "jest": "^26.1.0",
60
- "rimraf": "^3.0.0",
61
- "ts-jest": "^26.4.1",
62
- "typedoc": "^0.19.2",
63
- "typescript": "~4.3.5"
55
+ "@aws-sdk/service-client-documentation-generator": "3.46.0",
56
+ "@types/node": "^12.7.5"
64
57
  },
65
58
  "engines": {
66
- "node": ">=10.0.0"
59
+ "node": ">=12.0.0"
67
60
  },
68
61
  "typesVersions": {
69
62
  "<4.0": {