@cdk8s/awscdk-resolver 0.0.393 → 0.0.395

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 (71) hide show
  1. package/.jsii +3 -3
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/endpoint/ruleset.js +1 -1
  4. package/node_modules/@aws-sdk/client-cloudformation/dist-es/endpoint/ruleset.js +1 -1
  5. package/node_modules/@aws-sdk/client-cloudformation/package.json +34 -34
  6. package/node_modules/@aws-sdk/client-sso/package.json +32 -32
  7. package/node_modules/@aws-sdk/core/package.json +11 -11
  8. package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
  9. package/node_modules/@aws-sdk/credential-provider-http/package.json +10 -10
  10. package/node_modules/@aws-sdk/credential-provider-ini/package.json +13 -13
  11. package/node_modules/@aws-sdk/credential-provider-node/package.json +12 -12
  12. package/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
  13. package/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
  14. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -7
  15. package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
  16. package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
  17. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
  18. package/node_modules/@aws-sdk/middleware-user-agent/package.json +7 -7
  19. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +6 -4
  20. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultStsRoleAssumers.js +6 -4
  21. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/defaultStsRoleAssumers.d.ts +1 -1
  22. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/defaultStsRoleAssumers.d.ts +1 -1
  23. package/node_modules/@aws-sdk/nested-clients/package.json +32 -32
  24. package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js +22 -49
  25. package/node_modules/@aws-sdk/region-config-resolver/dist-es/index.js +1 -1
  26. package/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/awsRegionConfig.js +2 -0
  27. package/node_modules/@aws-sdk/region-config-resolver/dist-types/extensions/index.d.ts +2 -2
  28. package/node_modules/@aws-sdk/region-config-resolver/dist-types/index.d.ts +1 -1
  29. package/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/awsRegionConfig.d.ts +15 -0
  30. package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/index.d.ts +1 -1
  31. package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/awsRegionConfig.d.ts +11 -0
  32. package/node_modules/@aws-sdk/region-config-resolver/package.json +4 -7
  33. package/node_modules/@aws-sdk/token-providers/package.json +7 -7
  34. package/node_modules/@aws-sdk/types/package.json +2 -2
  35. package/node_modules/@aws-sdk/util-endpoints/package.json +5 -5
  36. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
  37. package/node_modules/@aws-sdk/util-user-agent-node/package.json +5 -5
  38. package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
  39. package/node_modules/@smithy/config-resolver/dist-cjs/index.js +15 -5
  40. package/node_modules/@smithy/config-resolver/dist-es/regionConfig/checkRegion.js +10 -0
  41. package/node_modules/@smithy/config-resolver/dist-es/regionConfig/resolveRegionConfig.js +5 -5
  42. package/node_modules/@smithy/config-resolver/dist-types/regionConfig/checkRegion.d.ts +9 -0
  43. package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionConfig/checkRegion.d.ts +9 -0
  44. package/node_modules/@smithy/config-resolver/package.json +2 -1
  45. package/node_modules/@smithy/core/package.json +2 -2
  46. package/node_modules/@smithy/middleware-endpoint/package.json +2 -2
  47. package/node_modules/@smithy/middleware-retry/package.json +2 -2
  48. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +17 -12
  49. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +16 -11
  50. package/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +1 -1
  51. package/node_modules/@smithy/node-http-handler/package.json +1 -1
  52. package/node_modules/@smithy/smithy-client/package.json +4 -4
  53. package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -2
  54. package/node_modules/@smithy/util-defaults-mode-node/package.json +3 -3
  55. package/node_modules/@smithy/util-stream/package.json +2 -2
  56. package/package.json +5 -5
  57. package/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/config.js +0 -12
  58. package/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/getRealRegion.js +0 -6
  59. package/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/index.js +0 -2
  60. package/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/isFipsRegion.js +0 -1
  61. package/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/resolveRegionConfig.js +0 -24
  62. package/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/config.d.ts +0 -17
  63. package/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/getRealRegion.d.ts +0 -4
  64. package/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/index.d.ts +0 -8
  65. package/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/isFipsRegion.d.ts +0 -4
  66. package/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/resolveRegionConfig.d.ts +0 -37
  67. package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/config.d.ts +0 -8
  68. package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/getRealRegion.d.ts +0 -1
  69. package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/index.d.ts +0 -2
  70. package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/isFipsRegion.d.ts +0 -1
  71. package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/resolveRegionConfig.d.ts +0 -14
@@ -128,7 +128,7 @@ const setSocketTimeout = (request, reject, timeoutInMs = 0) => {
128
128
  const MIN_WAIT_TIME = 6_000;
129
129
  async function writeRequestBody(httpRequest, request, maxContinueTimeoutMs = MIN_WAIT_TIME) {
130
130
  const headers = request.headers ?? {};
131
- const expect = headers["Expect"] || headers["expect"];
131
+ const expect = headers.Expect || headers.expect;
132
132
  let timeoutId = -1;
133
133
  let sendBody = true;
134
134
  if (expect === "100-continue") {
@@ -263,6 +263,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
263
263
  this.config = await this.configProvider;
264
264
  }
265
265
  return new Promise((_resolve, _reject) => {
266
+ const config = this.config;
266
267
  let writeRequestBodyPromise = undefined;
267
268
  const timeouts = [];
268
269
  const resolve = async (arg) => {
@@ -275,9 +276,6 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
275
276
  timeouts.forEach(timing.clearTimeout);
276
277
  _reject(arg);
277
278
  };
278
- if (!this.config) {
279
- throw new Error("Node HTTP request handler config is not resolved");
280
- }
281
279
  if (abortSignal?.aborted) {
282
280
  const abortError = new Error("Request aborted");
283
281
  abortError.name = "AbortError";
@@ -285,11 +283,18 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
285
283
  return;
286
284
  }
287
285
  const isSSL = request.protocol === "https:";
288
- const agent = isSSL ? this.config.httpsAgent : this.config.httpAgent;
286
+ const headers = request.headers ?? {};
287
+ const expectContinue = (headers.Expect ?? headers.expect) === "100-continue";
288
+ let agent = isSSL ? config.httpsAgent : config.httpAgent;
289
+ if (expectContinue) {
290
+ agent = new (isSSL ? https.Agent : http.Agent)({
291
+ keepAlive: false,
292
+ maxSockets: Infinity,
293
+ });
294
+ }
289
295
  timeouts.push(timing.setTimeout(() => {
290
- this.socketWarningTimestamp = NodeHttpHandler.checkSocketUsage(agent, this.socketWarningTimestamp, this.config.logger);
291
- }, this.config.socketAcquisitionWarningTimeout ??
292
- (this.config.requestTimeout ?? 2000) + (this.config.connectionTimeout ?? 1000)));
296
+ this.socketWarningTimestamp = NodeHttpHandler.checkSocketUsage(agent, this.socketWarningTimestamp, config.logger);
297
+ }, config.socketAcquisitionWarningTimeout ?? (config.requestTimeout ?? 2000) + (config.connectionTimeout ?? 1000)));
293
298
  const queryString = querystringBuilder.buildQueryString(request.query || {});
294
299
  let auth = undefined;
295
300
  if (request.username != null || request.password != null) {
@@ -354,10 +359,10 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
354
359
  abortSignal.onabort = onAbort;
355
360
  }
356
361
  }
357
- const effectiveRequestTimeout = requestTimeout ?? this.config.requestTimeout;
358
- timeouts.push(setConnectionTimeout(req, reject, this.config.connectionTimeout));
359
- timeouts.push(setRequestTimeout(req, reject, effectiveRequestTimeout, this.config.throwOnRequestTimeout, this.config.logger ?? console));
360
- timeouts.push(setSocketTimeout(req, reject, this.config.socketTimeout));
362
+ const effectiveRequestTimeout = requestTimeout ?? config.requestTimeout;
363
+ timeouts.push(setConnectionTimeout(req, reject, config.connectionTimeout));
364
+ timeouts.push(setRequestTimeout(req, reject, effectiveRequestTimeout, config.throwOnRequestTimeout, config.logger ?? console));
365
+ timeouts.push(setSocketTimeout(req, reject, config.socketTimeout));
361
366
  const httpAgent = nodeHttpsOptions.agent;
362
367
  if (typeof httpAgent === "object" && "keepAlive" in httpAgent) {
363
368
  timeouts.push(setSocketKeepAlive(req, {
@@ -93,6 +93,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
93
93
  this.config = await this.configProvider;
94
94
  }
95
95
  return new Promise((_resolve, _reject) => {
96
+ const config = this.config;
96
97
  let writeRequestBodyPromise = undefined;
97
98
  const timeouts = [];
98
99
  const resolve = async (arg) => {
@@ -105,9 +106,6 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
105
106
  timeouts.forEach(timing.clearTimeout);
106
107
  _reject(arg);
107
108
  };
108
- if (!this.config) {
109
- throw new Error("Node HTTP request handler config is not resolved");
110
- }
111
109
  if (abortSignal?.aborted) {
112
110
  const abortError = new Error("Request aborted");
113
111
  abortError.name = "AbortError";
@@ -115,11 +113,18 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
115
113
  return;
116
114
  }
117
115
  const isSSL = request.protocol === "https:";
118
- const agent = isSSL ? this.config.httpsAgent : this.config.httpAgent;
116
+ const headers = request.headers ?? {};
117
+ const expectContinue = (headers.Expect ?? headers.expect) === "100-continue";
118
+ let agent = isSSL ? config.httpsAgent : config.httpAgent;
119
+ if (expectContinue) {
120
+ agent = new (isSSL ? hsAgent : hAgent)({
121
+ keepAlive: false,
122
+ maxSockets: Infinity,
123
+ });
124
+ }
119
125
  timeouts.push(timing.setTimeout(() => {
120
- this.socketWarningTimestamp = NodeHttpHandler.checkSocketUsage(agent, this.socketWarningTimestamp, this.config.logger);
121
- }, this.config.socketAcquisitionWarningTimeout ??
122
- (this.config.requestTimeout ?? 2000) + (this.config.connectionTimeout ?? 1000)));
126
+ this.socketWarningTimestamp = NodeHttpHandler.checkSocketUsage(agent, this.socketWarningTimestamp, config.logger);
127
+ }, config.socketAcquisitionWarningTimeout ?? (config.requestTimeout ?? 2000) + (config.connectionTimeout ?? 1000)));
123
128
  const queryString = buildQueryString(request.query || {});
124
129
  let auth = undefined;
125
130
  if (request.username != null || request.password != null) {
@@ -184,10 +189,10 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
184
189
  abortSignal.onabort = onAbort;
185
190
  }
186
191
  }
187
- const effectiveRequestTimeout = requestTimeout ?? this.config.requestTimeout;
188
- timeouts.push(setConnectionTimeout(req, reject, this.config.connectionTimeout));
189
- timeouts.push(setRequestTimeout(req, reject, effectiveRequestTimeout, this.config.throwOnRequestTimeout, this.config.logger ?? console));
190
- timeouts.push(setSocketTimeout(req, reject, this.config.socketTimeout));
192
+ const effectiveRequestTimeout = requestTimeout ?? config.requestTimeout;
193
+ timeouts.push(setConnectionTimeout(req, reject, config.connectionTimeout));
194
+ timeouts.push(setRequestTimeout(req, reject, effectiveRequestTimeout, config.throwOnRequestTimeout, config.logger ?? console));
195
+ timeouts.push(setSocketTimeout(req, reject, config.socketTimeout));
191
196
  const httpAgent = nodeHttpsOptions.agent;
192
197
  if (typeof httpAgent === "object" && "keepAlive" in httpAgent) {
193
198
  timeouts.push(setSocketKeepAlive(req, {
@@ -3,7 +3,7 @@ import { timing } from "./timing";
3
3
  const MIN_WAIT_TIME = 6_000;
4
4
  export async function writeRequestBody(httpRequest, request, maxContinueTimeoutMs = MIN_WAIT_TIME) {
5
5
  const headers = request.headers ?? {};
6
- const expect = headers["Expect"] || headers["expect"];
6
+ const expect = headers.Expect || headers.expect;
7
7
  let timeoutId = -1;
8
8
  let sendBody = true;
9
9
  if (expect === "100-continue") {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/node-http-handler",
3
- "version": "4.4.2",
3
+ "version": "4.4.3",
4
4
  "description": "Provides a way to make requests",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/smithy-client",
3
- "version": "4.9.0",
3
+ "version": "4.9.1",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline smithy-client",
@@ -25,12 +25,12 @@
25
25
  "license": "Apache-2.0",
26
26
  "sideEffects": false,
27
27
  "dependencies": {
28
- "@smithy/core": "^3.17.0",
29
- "@smithy/middleware-endpoint": "^4.3.4",
28
+ "@smithy/core": "^3.17.1",
29
+ "@smithy/middleware-endpoint": "^4.3.5",
30
30
  "@smithy/middleware-stack": "^4.2.3",
31
31
  "@smithy/protocol-http": "^5.3.3",
32
32
  "@smithy/types": "^4.8.0",
33
- "@smithy/util-stream": "^4.5.3",
33
+ "@smithy/util-stream": "^4.5.4",
34
34
  "tslib": "^2.6.2"
35
35
  },
36
36
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-defaults-mode-browser",
3
- "version": "4.3.3",
3
+ "version": "4.3.4",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline util-defaults-mode-browser",
@@ -25,7 +25,7 @@
25
25
  "sideEffects": false,
26
26
  "dependencies": {
27
27
  "@smithy/property-provider": "^4.2.3",
28
- "@smithy/smithy-client": "^4.9.0",
28
+ "@smithy/smithy-client": "^4.9.1",
29
29
  "@smithy/types": "^4.8.0",
30
30
  "tslib": "^2.6.2"
31
31
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-defaults-mode-node",
3
- "version": "4.2.4",
3
+ "version": "4.2.6",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline util-defaults-mode-node",
@@ -24,11 +24,11 @@
24
24
  "license": "Apache-2.0",
25
25
  "sideEffects": false,
26
26
  "dependencies": {
27
- "@smithy/config-resolver": "^4.3.3",
27
+ "@smithy/config-resolver": "^4.4.0",
28
28
  "@smithy/credential-provider-imds": "^4.2.3",
29
29
  "@smithy/node-config-provider": "^4.3.3",
30
30
  "@smithy/property-provider": "^4.2.3",
31
- "@smithy/smithy-client": "^4.9.0",
31
+ "@smithy/smithy-client": "^4.9.1",
32
32
  "@smithy/types": "^4.8.0",
33
33
  "tslib": "^2.6.2"
34
34
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-stream",
3
- "version": "4.5.3",
3
+ "version": "4.5.4",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline util-stream",
@@ -30,7 +30,7 @@
30
30
  "sideEffects": false,
31
31
  "dependencies": {
32
32
  "@smithy/fetch-http-handler": "^5.3.4",
33
- "@smithy/node-http-handler": "^4.4.2",
33
+ "@smithy/node-http-handler": "^4.4.3",
34
34
  "@smithy/types": "^4.8.0",
35
35
  "@smithy/util-base64": "^4.3.0",
36
36
  "@smithy/util-buffer-from": "^4.2.0",
package/package.json CHANGED
@@ -42,7 +42,7 @@
42
42
  "organization": false
43
43
  },
44
44
  "devDependencies": {
45
- "@cdk8s/projen-common": "0.0.630",
45
+ "@cdk8s/projen-common": "0.0.631",
46
46
  "@stylistic/eslint-plugin": "^2",
47
47
  "@types/fs-extra": "^11.0.4",
48
48
  "@types/jest": "^27",
@@ -52,7 +52,7 @@
52
52
  "aws-cdk": "^2.1030.0",
53
53
  "aws-cdk-lib": "2.195.0",
54
54
  "cdk8s": "2.68.91",
55
- "cdk8s-cli": "^2.202.6",
55
+ "cdk8s-cli": "^2.202.7",
56
56
  "commit-and-tag-version": "^12",
57
57
  "constructs": "10.3.0",
58
58
  "eslint": "^9",
@@ -66,7 +66,7 @@
66
66
  "jsii-docgen": "^10.5.0",
67
67
  "jsii-pacmak": "^1.116.0",
68
68
  "jsii-rosetta": "^5",
69
- "projen": "^0.98.2",
69
+ "projen": "^0.98.3",
70
70
  "ts-jest": "^27",
71
71
  "ts-node": "^10.9.2",
72
72
  "typescript": "^5.9.3"
@@ -77,7 +77,7 @@
77
77
  "constructs": "^10.3.0"
78
78
  },
79
79
  "dependencies": {
80
- "@aws-sdk/client-cloudformation": "^3.913.0"
80
+ "@aws-sdk/client-cloudformation": "^3.915.0"
81
81
  },
82
82
  "bundledDependencies": [
83
83
  "@aws-sdk/client-cloudformation"
@@ -93,7 +93,7 @@
93
93
  "publishConfig": {
94
94
  "access": "public"
95
95
  },
96
- "version": "0.0.393",
96
+ "version": "0.0.395",
97
97
  "jest": {
98
98
  "coverageProvider": "v8",
99
99
  "testMatch": [
@@ -1,12 +0,0 @@
1
- export const REGION_ENV_NAME = "AWS_REGION";
2
- export const REGION_INI_NAME = "region";
3
- export const NODE_REGION_CONFIG_OPTIONS = {
4
- environmentVariableSelector: (env) => env[REGION_ENV_NAME],
5
- configFileSelector: (profile) => profile[REGION_INI_NAME],
6
- default: () => {
7
- throw new Error("Region is missing");
8
- },
9
- };
10
- export const NODE_REGION_CONFIG_FILE_OPTIONS = {
11
- preferredFile: "credentials",
12
- };
@@ -1,6 +0,0 @@
1
- import { isFipsRegion } from "./isFipsRegion";
2
- export const getRealRegion = (region) => isFipsRegion(region)
3
- ? ["fips-aws-global", "aws-fips"].includes(region)
4
- ? "us-east-1"
5
- : region.replace(/fips-(dkr-|prod-)?|-fips/, "")
6
- : region;
@@ -1,2 +0,0 @@
1
- export * from "./config";
2
- export * from "./resolveRegionConfig";
@@ -1 +0,0 @@
1
- export const isFipsRegion = (region) => typeof region === "string" && (region.startsWith("fips-") || region.endsWith("-fips"));
@@ -1,24 +0,0 @@
1
- import { getRealRegion } from "./getRealRegion";
2
- import { isFipsRegion } from "./isFipsRegion";
3
- export const resolveRegionConfig = (input) => {
4
- const { region, useFipsEndpoint } = input;
5
- if (!region) {
6
- throw new Error("Region is missing");
7
- }
8
- return Object.assign(input, {
9
- region: async () => {
10
- if (typeof region === "string") {
11
- return getRealRegion(region);
12
- }
13
- const providedRegion = await region();
14
- return getRealRegion(providedRegion);
15
- },
16
- useFipsEndpoint: async () => {
17
- const providedRegion = typeof region === "string" ? region : await region();
18
- if (isFipsRegion(providedRegion)) {
19
- return true;
20
- }
21
- return typeof useFipsEndpoint !== "function" ? Promise.resolve(!!useFipsEndpoint) : useFipsEndpoint();
22
- },
23
- });
24
- };
@@ -1,17 +0,0 @@
1
- import { LoadedConfigSelectors, LocalConfigOptions } from "@smithy/node-config-provider";
2
- /**
3
- * @internal
4
- */
5
- export declare const REGION_ENV_NAME = "AWS_REGION";
6
- /**
7
- * @internal
8
- */
9
- export declare const REGION_INI_NAME = "region";
10
- /**
11
- * @internal
12
- */
13
- export declare const NODE_REGION_CONFIG_OPTIONS: LoadedConfigSelectors<string>;
14
- /**
15
- * @internal
16
- */
17
- export declare const NODE_REGION_CONFIG_FILE_OPTIONS: LocalConfigOptions;
@@ -1,4 +0,0 @@
1
- /**
2
- * @internal
3
- */
4
- export declare const getRealRegion: (region: string) => string;
@@ -1,8 +0,0 @@
1
- /**
2
- * @internal
3
- */
4
- export * from "./config";
5
- /**
6
- * @internal
7
- */
8
- export * from "./resolveRegionConfig";
@@ -1,4 +0,0 @@
1
- /**
2
- * @internal
3
- */
4
- export declare const isFipsRegion: (region: string) => boolean;
@@ -1,37 +0,0 @@
1
- import { Provider } from "@smithy/types";
2
- /**
3
- * @public
4
- */
5
- export interface RegionInputConfig {
6
- /**
7
- * The AWS region to which this client will send requests
8
- */
9
- region?: string | Provider<string>;
10
- /**
11
- * Enables FIPS compatible endpoints.
12
- */
13
- useFipsEndpoint?: boolean | Provider<boolean>;
14
- }
15
- /**
16
- * @internal
17
- */
18
- interface PreviouslyResolved {
19
- }
20
- /**
21
- * @internal
22
- */
23
- export interface RegionResolvedConfig {
24
- /**
25
- * Resolved value for input config {@link RegionInputConfig.region}
26
- */
27
- region: Provider<string>;
28
- /**
29
- * Resolved value for input {@link RegionInputConfig.useFipsEndpoint}
30
- */
31
- useFipsEndpoint: Provider<boolean>;
32
- }
33
- /**
34
- * @internal
35
- */
36
- export declare const resolveRegionConfig: <T>(input: T & RegionInputConfig & PreviouslyResolved) => T & RegionResolvedConfig;
37
- export {};
@@ -1,8 +0,0 @@
1
- import {
2
- LoadedConfigSelectors,
3
- LocalConfigOptions,
4
- } from "@smithy/node-config-provider";
5
- export declare const REGION_ENV_NAME = "AWS_REGION";
6
- export declare const REGION_INI_NAME = "region";
7
- export declare const NODE_REGION_CONFIG_OPTIONS: LoadedConfigSelectors<string>;
8
- export declare const NODE_REGION_CONFIG_FILE_OPTIONS: LocalConfigOptions;
@@ -1 +0,0 @@
1
- export declare const getRealRegion: (region: string) => string;
@@ -1,2 +0,0 @@
1
- export * from "./config";
2
- export * from "./resolveRegionConfig";
@@ -1 +0,0 @@
1
- export declare const isFipsRegion: (region: string) => boolean;
@@ -1,14 +0,0 @@
1
- import { Provider } from "@smithy/types";
2
- export interface RegionInputConfig {
3
- region?: string | Provider<string>;
4
- useFipsEndpoint?: boolean | Provider<boolean>;
5
- }
6
- interface PreviouslyResolved {}
7
- export interface RegionResolvedConfig {
8
- region: Provider<string>;
9
- useFipsEndpoint: Provider<boolean>;
10
- }
11
- export declare const resolveRegionConfig: <T>(
12
- input: T & RegionInputConfig & PreviouslyResolved
13
- ) => T & RegionResolvedConfig;
14
- export {};