@aws-sdk/core 3.974.20 → 3.974.22

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/dist-cjs/index.js CHANGED
@@ -1,50 +1,45 @@
1
- 'use strict';
2
-
3
- var client = require('@aws-sdk/core/client');
4
- var httpAuthSchemes = require('@aws-sdk/core/httpAuthSchemes');
5
- var protocols = require('@aws-sdk/core/protocols');
6
-
7
-
8
-
9
- exports.emitWarningIfUnsupportedVersion = client.emitWarningIfUnsupportedVersion;
10
- exports.getLongPollPlugin = client.getLongPollPlugin;
11
- exports.setCredentialFeature = client.setCredentialFeature;
12
- exports.setFeature = client.setFeature;
13
- exports.setTokenFeature = client.setTokenFeature;
14
- exports.state = client.state;
15
- exports.AWSSDKSigV4Signer = httpAuthSchemes.AwsSdkSigV4Signer;
16
- exports.AwsSdkSigV4ASigner = httpAuthSchemes.AwsSdkSigV4ASigner;
17
- exports.AwsSdkSigV4Signer = httpAuthSchemes.AwsSdkSigV4Signer;
18
- exports.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS = httpAuthSchemes.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS;
19
- exports.NODE_SIGV4A_CONFIG_OPTIONS = httpAuthSchemes.NODE_SIGV4A_CONFIG_OPTIONS;
20
- exports.getBearerTokenEnvKey = httpAuthSchemes.getBearerTokenEnvKey;
21
- exports.resolveAWSSDKSigV4Config = httpAuthSchemes.resolveAwsSdkSigV4Config;
22
- exports.resolveAwsSdkSigV4AConfig = httpAuthSchemes.resolveAwsSdkSigV4AConfig;
23
- exports.resolveAwsSdkSigV4Config = httpAuthSchemes.resolveAwsSdkSigV4Config;
24
- exports.validateSigningProperties = httpAuthSchemes.validateSigningProperties;
25
- exports.AwsEc2QueryProtocol = protocols.AwsEc2QueryProtocol;
26
- exports.AwsJson1_0Protocol = protocols.AwsJson1_0Protocol;
27
- exports.AwsJson1_1Protocol = protocols.AwsJson1_1Protocol;
28
- exports.AwsJsonRpcProtocol = protocols.AwsJsonRpcProtocol;
29
- exports.AwsQueryProtocol = protocols.AwsQueryProtocol;
30
- exports.AwsRestJsonProtocol = protocols.AwsRestJsonProtocol;
31
- exports.AwsRestXmlProtocol = protocols.AwsRestXmlProtocol;
32
- exports.AwsSmithyRpcV2CborProtocol = protocols.AwsSmithyRpcV2CborProtocol;
33
- exports.JsonCodec = protocols.JsonCodec;
34
- exports.JsonShapeDeserializer = protocols.JsonShapeDeserializer;
35
- exports.JsonShapeSerializer = protocols.JsonShapeSerializer;
36
- exports.QueryShapeSerializer = protocols.QueryShapeSerializer;
37
- exports.XmlCodec = protocols.XmlCodec;
38
- exports.XmlShapeDeserializer = protocols.XmlShapeDeserializer;
39
- exports.XmlShapeSerializer = protocols.XmlShapeSerializer;
40
- exports._toBool = protocols._toBool;
41
- exports._toNum = protocols._toNum;
42
- exports._toStr = protocols._toStr;
43
- exports.awsExpectUnion = protocols.awsExpectUnion;
44
- exports.loadJsonRpcErrorCode = protocols.loadJsonRpcErrorCode;
45
- exports.loadRestJsonErrorCode = protocols.loadRestJsonErrorCode;
46
- exports.loadRestXmlErrorCode = protocols.loadRestXmlErrorCode;
47
- exports.parseJsonBody = protocols.parseJsonBody;
48
- exports.parseJsonErrorBody = protocols.parseJsonErrorBody;
49
- exports.parseXmlBody = protocols.parseXmlBody;
50
- exports.parseXmlErrorBody = protocols.parseXmlErrorBody;
1
+ const { emitWarningIfUnsupportedVersion, getLongPollPlugin, setCredentialFeature, setFeature, setTokenFeature, state } = require("@aws-sdk/core/client");
2
+ exports.emitWarningIfUnsupportedVersion = emitWarningIfUnsupportedVersion;
3
+ exports.getLongPollPlugin = getLongPollPlugin;
4
+ exports.setCredentialFeature = setCredentialFeature;
5
+ exports.setFeature = setFeature;
6
+ exports.setTokenFeature = setTokenFeature;
7
+ exports.state = state;
8
+ const { AwsSdkSigV4Signer: AWSSDKSigV4Signer, AwsSdkSigV4ASigner, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, NODE_SIGV4A_CONFIG_OPTIONS, getBearerTokenEnvKey, resolveAwsSdkSigV4Config: resolveAWSSDKSigV4Config, resolveAwsSdkSigV4AConfig, resolveAwsSdkSigV4Config, validateSigningProperties } = require("@aws-sdk/core/httpAuthSchemes");
9
+ exports.AWSSDKSigV4Signer = AWSSDKSigV4Signer;
10
+ exports.AwsSdkSigV4ASigner = AwsSdkSigV4ASigner;
11
+ exports.AwsSdkSigV4Signer = AwsSdkSigV4Signer;
12
+ exports.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS = NODE_AUTH_SCHEME_PREFERENCE_OPTIONS;
13
+ exports.NODE_SIGV4A_CONFIG_OPTIONS = NODE_SIGV4A_CONFIG_OPTIONS;
14
+ exports.getBearerTokenEnvKey = getBearerTokenEnvKey;
15
+ exports.resolveAWSSDKSigV4Config = resolveAWSSDKSigV4Config;
16
+ exports.resolveAwsSdkSigV4AConfig = resolveAwsSdkSigV4AConfig;
17
+ exports.resolveAwsSdkSigV4Config = resolveAwsSdkSigV4Config;
18
+ exports.validateSigningProperties = validateSigningProperties;
19
+ const { AwsEc2QueryProtocol, AwsJson1_0Protocol, AwsJson1_1Protocol, AwsJsonRpcProtocol, AwsQueryProtocol, AwsRestJsonProtocol, AwsRestXmlProtocol, AwsSmithyRpcV2CborProtocol, JsonCodec, JsonShapeDeserializer, JsonShapeSerializer, QueryShapeSerializer, XmlCodec, XmlShapeDeserializer, XmlShapeSerializer, _toBool, _toNum, _toStr, awsExpectUnion, loadJsonRpcErrorCode, loadRestJsonErrorCode, loadRestXmlErrorCode, parseJsonBody, parseJsonErrorBody, parseXmlBody, parseXmlErrorBody } = require("@aws-sdk/core/protocols");
20
+ exports.AwsEc2QueryProtocol = AwsEc2QueryProtocol;
21
+ exports.AwsJson1_0Protocol = AwsJson1_0Protocol;
22
+ exports.AwsJson1_1Protocol = AwsJson1_1Protocol;
23
+ exports.AwsJsonRpcProtocol = AwsJsonRpcProtocol;
24
+ exports.AwsQueryProtocol = AwsQueryProtocol;
25
+ exports.AwsRestJsonProtocol = AwsRestJsonProtocol;
26
+ exports.AwsRestXmlProtocol = AwsRestXmlProtocol;
27
+ exports.AwsSmithyRpcV2CborProtocol = AwsSmithyRpcV2CborProtocol;
28
+ exports.JsonCodec = JsonCodec;
29
+ exports.JsonShapeDeserializer = JsonShapeDeserializer;
30
+ exports.JsonShapeSerializer = JsonShapeSerializer;
31
+ exports.QueryShapeSerializer = QueryShapeSerializer;
32
+ exports.XmlCodec = XmlCodec;
33
+ exports.XmlShapeDeserializer = XmlShapeDeserializer;
34
+ exports.XmlShapeSerializer = XmlShapeSerializer;
35
+ exports._toBool = _toBool;
36
+ exports._toNum = _toNum;
37
+ exports._toStr = _toStr;
38
+ exports.awsExpectUnion = awsExpectUnion;
39
+ exports.loadJsonRpcErrorCode = loadJsonRpcErrorCode;
40
+ exports.loadRestJsonErrorCode = loadRestJsonErrorCode;
41
+ exports.loadRestXmlErrorCode = loadRestXmlErrorCode;
42
+ exports.parseJsonBody = parseJsonBody;
43
+ exports.parseJsonErrorBody = parseJsonErrorBody;
44
+ exports.parseXmlBody = parseXmlBody;
45
+ exports.parseXmlErrorBody = parseXmlErrorBody;
@@ -1,6 +1,4 @@
1
- 'use strict';
2
-
3
- var client = require('@smithy/core/client');
1
+ const { normalizeProvider } = require("@smithy/core/client");
4
2
 
5
3
  const DEFAULT_ACCOUNT_ID_ENDPOINT_MODE = "preferred";
6
4
  const ACCOUNT_ID_ENDPOINT_MODE_VALUES = ["disabled", "preferred", "required"];
@@ -10,7 +8,7 @@ function validateAccountIdEndpointMode(value) {
10
8
 
11
9
  const resolveAccountIdEndpointModeConfig = (input) => {
12
10
  const { accountIdEndpointMode } = input;
13
- const accountIdEndpointModeProvider = client.normalizeProvider(accountIdEndpointMode ?? DEFAULT_ACCOUNT_ID_ENDPOINT_MODE);
11
+ const accountIdEndpointModeProvider = normalizeProvider(accountIdEndpointMode ?? DEFAULT_ACCOUNT_ID_ENDPOINT_MODE);
14
12
  return Object.assign(input, {
15
13
  accountIdEndpointMode: async () => {
16
14
  const accIdMode = await accountIdEndpointModeProvider();
@@ -1,10 +1,13 @@
1
- 'use strict';
2
-
3
- var retry = require('@smithy/core/retry');
4
- var protocols = require('@smithy/core/protocols');
5
- var core = require('@smithy/core');
6
- var endpoints = require('@smithy/core/endpoints');
7
- var config = require('@smithy/core/config');
1
+ const { Retry, RETRY_MODES } = require("@smithy/core/retry");
2
+ const { HttpRequest, parseUrl } = require("@smithy/core/protocols");
3
+ const { normalizeProvider } = require("@smithy/core");
4
+ const { isValidHostLabel, isIpAddress, customEndpointFunctions } = require("@smithy/core/endpoints");
5
+ const { EndpointError, resolveEndpoint } = require("@smithy/core/endpoints");
6
+ exports.EndpointError = EndpointError;
7
+ exports.isIpAddress = isIpAddress;
8
+ exports.resolveEndpoint = resolveEndpoint;
9
+ const { resolveRegionConfig } = require("@smithy/core/config");
10
+ exports.resolveRegionConfig = resolveRegionConfig;
8
11
 
9
12
  const longPollMiddleware = () => (next, context) => async (args) => {
10
13
  context.__retryLongPoll = true;
@@ -30,7 +33,7 @@ function setCredentialFeature(credentials, feature, value) {
30
33
  return credentials;
31
34
  }
32
35
 
33
- retry.Retry.v2026 ||= typeof process === "object" && process.env?.AWS_NEW_RETRIES_2026 === "true";
36
+ Retry.v2026 ||= typeof process === "object" && process.env?.AWS_NEW_RETRIES_2026 === "true";
34
37
  function setFeature(context, feature, value) {
35
38
  if (!context.__aws_sdk_context) {
36
39
  context.__aws_sdk_context = {
@@ -55,7 +58,7 @@ function resolveHostHeaderConfig(input) {
55
58
  return input;
56
59
  }
57
60
  const hostHeaderMiddleware = (options) => (next) => async (args) => {
58
- if (!protocols.HttpRequest.isInstance(args.request))
61
+ if (!HttpRequest.isInstance(args.request))
59
62
  return next(args);
60
63
  const { request } = args;
61
64
  const { handlerProtocol = "" } = options.requestHandler.metadata || {};
@@ -149,7 +152,7 @@ function isValidUserAgentAppId(appId) {
149
152
  return typeof appId === "string" && appId.length <= 50;
150
153
  }
151
154
  function resolveUserAgentConfig(input) {
152
- const normalizedAppIdProvider = core.normalizeProvider(input.userAgentAppId ?? DEFAULT_UA_APP_ID);
155
+ const normalizedAppIdProvider = normalizeProvider(input.userAgentAppId ?? DEFAULT_UA_APP_ID);
153
156
  const { customUserAgent } = input;
154
157
  return Object.assign(input, {
155
158
  customUserAgent: typeof customUserAgent === "string" ? [[customUserAgent]] : customUserAgent,
@@ -169,7 +172,282 @@ function resolveUserAgentConfig(input) {
169
172
  });
170
173
  }
171
174
 
172
- const partitionsInfo = { "partitions": [{ "id": "aws", "outputs": { "dnsSuffix": "amazonaws.com", "dualStackDnsSuffix": "api.aws", "implicitGlobalRegion": "us-east-1", "name": "aws", "supportsDualStack": true, "supportsFIPS": true }, "regionRegex": "^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$", "regions": { "af-south-1": { "description": "Africa (Cape Town)" }, "ap-east-1": { "description": "Asia Pacific (Hong Kong)" }, "ap-east-2": { "description": "Asia Pacific (Taipei)" }, "ap-northeast-1": { "description": "Asia Pacific (Tokyo)" }, "ap-northeast-2": { "description": "Asia Pacific (Seoul)" }, "ap-northeast-3": { "description": "Asia Pacific (Osaka)" }, "ap-south-1": { "description": "Asia Pacific (Mumbai)" }, "ap-south-2": { "description": "Asia Pacific (Hyderabad)" }, "ap-southeast-1": { "description": "Asia Pacific (Singapore)" }, "ap-southeast-2": { "description": "Asia Pacific (Sydney)" }, "ap-southeast-3": { "description": "Asia Pacific (Jakarta)" }, "ap-southeast-4": { "description": "Asia Pacific (Melbourne)" }, "ap-southeast-5": { "description": "Asia Pacific (Malaysia)" }, "ap-southeast-6": { "description": "Asia Pacific (New Zealand)" }, "ap-southeast-7": { "description": "Asia Pacific (Thailand)" }, "aws-global": { "description": "aws global region" }, "ca-central-1": { "description": "Canada (Central)" }, "ca-west-1": { "description": "Canada West (Calgary)" }, "eu-central-1": { "description": "Europe (Frankfurt)" }, "eu-central-2": { "description": "Europe (Zurich)" }, "eu-north-1": { "description": "Europe (Stockholm)" }, "eu-south-1": { "description": "Europe (Milan)" }, "eu-south-2": { "description": "Europe (Spain)" }, "eu-west-1": { "description": "Europe (Ireland)" }, "eu-west-2": { "description": "Europe (London)" }, "eu-west-3": { "description": "Europe (Paris)" }, "il-central-1": { "description": "Israel (Tel Aviv)" }, "me-central-1": { "description": "Middle East (UAE)" }, "me-south-1": { "description": "Middle East (Bahrain)" }, "mx-central-1": { "description": "Mexico (Central)" }, "sa-east-1": { "description": "South America (Sao Paulo)" }, "us-east-1": { "description": "US East (N. Virginia)" }, "us-east-2": { "description": "US East (Ohio)" }, "us-west-1": { "description": "US West (N. California)" }, "us-west-2": { "description": "US West (Oregon)" } } }, { "id": "aws-cn", "outputs": { "dnsSuffix": "amazonaws.com.cn", "dualStackDnsSuffix": "api.amazonwebservices.com.cn", "implicitGlobalRegion": "cn-northwest-1", "name": "aws-cn", "supportsDualStack": true, "supportsFIPS": true }, "regionRegex": "^cn\\-\\w+\\-\\d+$", "regions": { "aws-cn-global": { "description": "aws-cn global region" }, "cn-north-1": { "description": "China (Beijing)" }, "cn-northwest-1": { "description": "China (Ningxia)" } } }, { "id": "aws-eusc", "outputs": { "dnsSuffix": "amazonaws.eu", "dualStackDnsSuffix": "api.amazonwebservices.eu", "implicitGlobalRegion": "eusc-de-east-1", "name": "aws-eusc", "supportsDualStack": true, "supportsFIPS": true }, "regionRegex": "^eusc\\-(de)\\-\\w+\\-\\d+$", "regions": { "eusc-de-east-1": { "description": "AWS European Sovereign Cloud (Germany)" } } }, { "id": "aws-iso", "outputs": { "dnsSuffix": "c2s.ic.gov", "dualStackDnsSuffix": "api.aws.ic.gov", "implicitGlobalRegion": "us-iso-east-1", "name": "aws-iso", "supportsDualStack": true, "supportsFIPS": true }, "regionRegex": "^us\\-iso\\-\\w+\\-\\d+$", "regions": { "aws-iso-global": { "description": "aws-iso global region" }, "us-iso-east-1": { "description": "US ISO East" }, "us-iso-west-1": { "description": "US ISO WEST" } } }, { "id": "aws-iso-b", "outputs": { "dnsSuffix": "sc2s.sgov.gov", "dualStackDnsSuffix": "api.aws.scloud", "implicitGlobalRegion": "us-isob-east-1", "name": "aws-iso-b", "supportsDualStack": true, "supportsFIPS": true }, "regionRegex": "^us\\-isob\\-\\w+\\-\\d+$", "regions": { "aws-iso-b-global": { "description": "aws-iso-b global region" }, "us-isob-east-1": { "description": "US ISOB East (Ohio)" }, "us-isob-west-1": { "description": "US ISOB West" } } }, { "id": "aws-iso-e", "outputs": { "dnsSuffix": "cloud.adc-e.uk", "dualStackDnsSuffix": "api.cloud-aws.adc-e.uk", "implicitGlobalRegion": "eu-isoe-west-1", "name": "aws-iso-e", "supportsDualStack": true, "supportsFIPS": true }, "regionRegex": "^eu\\-isoe\\-\\w+\\-\\d+$", "regions": { "aws-iso-e-global": { "description": "aws-iso-e global region" }, "eu-isoe-west-1": { "description": "EU ISOE West" } } }, { "id": "aws-iso-f", "outputs": { "dnsSuffix": "csp.hci.ic.gov", "dualStackDnsSuffix": "api.aws.hci.ic.gov", "implicitGlobalRegion": "us-isof-south-1", "name": "aws-iso-f", "supportsDualStack": true, "supportsFIPS": true }, "regionRegex": "^us\\-isof\\-\\w+\\-\\d+$", "regions": { "aws-iso-f-global": { "description": "aws-iso-f global region" }, "us-isof-east-1": { "description": "US ISOF EAST" }, "us-isof-south-1": { "description": "US ISOF SOUTH" } } }, { "id": "aws-us-gov", "outputs": { "dnsSuffix": "amazonaws.com", "dualStackDnsSuffix": "api.aws", "implicitGlobalRegion": "us-gov-west-1", "name": "aws-us-gov", "supportsDualStack": true, "supportsFIPS": true }, "regionRegex": "^us\\-gov\\-\\w+\\-\\d+$", "regions": { "aws-us-gov-global": { "description": "aws-us-gov global region" }, "us-gov-east-1": { "description": "AWS GovCloud (US-East)" }, "us-gov-west-1": { "description": "AWS GovCloud (US-West)" } } }], "version": "1.1" };
175
+ const partitionsInfo = {
176
+ "partitions": [
177
+ {
178
+ "id": "aws",
179
+ "outputs": {
180
+ "dnsSuffix": "amazonaws.com",
181
+ "dualStackDnsSuffix": "api.aws",
182
+ "implicitGlobalRegion": "us-east-1",
183
+ "name": "aws",
184
+ "supportsDualStack": true,
185
+ "supportsFIPS": true
186
+ },
187
+ "regionRegex": "^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",
188
+ "regions": {
189
+ "af-south-1": {
190
+ "description": "Africa (Cape Town)"
191
+ },
192
+ "ap-east-1": {
193
+ "description": "Asia Pacific (Hong Kong)"
194
+ },
195
+ "ap-east-2": {
196
+ "description": "Asia Pacific (Taipei)"
197
+ },
198
+ "ap-northeast-1": {
199
+ "description": "Asia Pacific (Tokyo)"
200
+ },
201
+ "ap-northeast-2": {
202
+ "description": "Asia Pacific (Seoul)"
203
+ },
204
+ "ap-northeast-3": {
205
+ "description": "Asia Pacific (Osaka)"
206
+ },
207
+ "ap-south-1": {
208
+ "description": "Asia Pacific (Mumbai)"
209
+ },
210
+ "ap-south-2": {
211
+ "description": "Asia Pacific (Hyderabad)"
212
+ },
213
+ "ap-southeast-1": {
214
+ "description": "Asia Pacific (Singapore)"
215
+ },
216
+ "ap-southeast-2": {
217
+ "description": "Asia Pacific (Sydney)"
218
+ },
219
+ "ap-southeast-3": {
220
+ "description": "Asia Pacific (Jakarta)"
221
+ },
222
+ "ap-southeast-4": {
223
+ "description": "Asia Pacific (Melbourne)"
224
+ },
225
+ "ap-southeast-5": {
226
+ "description": "Asia Pacific (Malaysia)"
227
+ },
228
+ "ap-southeast-6": {
229
+ "description": "Asia Pacific (New Zealand)"
230
+ },
231
+ "ap-southeast-7": {
232
+ "description": "Asia Pacific (Thailand)"
233
+ },
234
+ "aws-global": {
235
+ "description": "aws global region"
236
+ },
237
+ "ca-central-1": {
238
+ "description": "Canada (Central)"
239
+ },
240
+ "ca-west-1": {
241
+ "description": "Canada West (Calgary)"
242
+ },
243
+ "eu-central-1": {
244
+ "description": "Europe (Frankfurt)"
245
+ },
246
+ "eu-central-2": {
247
+ "description": "Europe (Zurich)"
248
+ },
249
+ "eu-north-1": {
250
+ "description": "Europe (Stockholm)"
251
+ },
252
+ "eu-south-1": {
253
+ "description": "Europe (Milan)"
254
+ },
255
+ "eu-south-2": {
256
+ "description": "Europe (Spain)"
257
+ },
258
+ "eu-west-1": {
259
+ "description": "Europe (Ireland)"
260
+ },
261
+ "eu-west-2": {
262
+ "description": "Europe (London)"
263
+ },
264
+ "eu-west-3": {
265
+ "description": "Europe (Paris)"
266
+ },
267
+ "il-central-1": {
268
+ "description": "Israel (Tel Aviv)"
269
+ },
270
+ "me-central-1": {
271
+ "description": "Middle East (UAE)"
272
+ },
273
+ "me-south-1": {
274
+ "description": "Middle East (Bahrain)"
275
+ },
276
+ "mx-central-1": {
277
+ "description": "Mexico (Central)"
278
+ },
279
+ "sa-east-1": {
280
+ "description": "South America (Sao Paulo)"
281
+ },
282
+ "us-east-1": {
283
+ "description": "US East (N. Virginia)"
284
+ },
285
+ "us-east-2": {
286
+ "description": "US East (Ohio)"
287
+ },
288
+ "us-west-1": {
289
+ "description": "US West (N. California)"
290
+ },
291
+ "us-west-2": {
292
+ "description": "US West (Oregon)"
293
+ }
294
+ }
295
+ },
296
+ {
297
+ "id": "aws-cn",
298
+ "outputs": {
299
+ "dnsSuffix": "amazonaws.com.cn",
300
+ "dualStackDnsSuffix": "api.amazonwebservices.com.cn",
301
+ "implicitGlobalRegion": "cn-northwest-1",
302
+ "name": "aws-cn",
303
+ "supportsDualStack": true,
304
+ "supportsFIPS": true
305
+ },
306
+ "regionRegex": "^cn\\-\\w+\\-\\d+$",
307
+ "regions": {
308
+ "aws-cn-global": {
309
+ "description": "aws-cn global region"
310
+ },
311
+ "cn-north-1": {
312
+ "description": "China (Beijing)"
313
+ },
314
+ "cn-northwest-1": {
315
+ "description": "China (Ningxia)"
316
+ }
317
+ }
318
+ },
319
+ {
320
+ "id": "aws-eusc",
321
+ "outputs": {
322
+ "dnsSuffix": "amazonaws.eu",
323
+ "dualStackDnsSuffix": "api.amazonwebservices.eu",
324
+ "implicitGlobalRegion": "eusc-de-east-1",
325
+ "name": "aws-eusc",
326
+ "supportsDualStack": true,
327
+ "supportsFIPS": true
328
+ },
329
+ "regionRegex": "^eusc\\-(de)\\-\\w+\\-\\d+$",
330
+ "regions": {
331
+ "eusc-de-east-1": {
332
+ "description": "AWS European Sovereign Cloud (Germany)"
333
+ }
334
+ }
335
+ },
336
+ {
337
+ "id": "aws-iso",
338
+ "outputs": {
339
+ "dnsSuffix": "c2s.ic.gov",
340
+ "dualStackDnsSuffix": "api.aws.ic.gov",
341
+ "implicitGlobalRegion": "us-iso-east-1",
342
+ "name": "aws-iso",
343
+ "supportsDualStack": true,
344
+ "supportsFIPS": true
345
+ },
346
+ "regionRegex": "^us\\-iso\\-\\w+\\-\\d+$",
347
+ "regions": {
348
+ "aws-iso-global": {
349
+ "description": "aws-iso global region"
350
+ },
351
+ "us-iso-east-1": {
352
+ "description": "US ISO East"
353
+ },
354
+ "us-iso-west-1": {
355
+ "description": "US ISO WEST"
356
+ }
357
+ }
358
+ },
359
+ {
360
+ "id": "aws-iso-b",
361
+ "outputs": {
362
+ "dnsSuffix": "sc2s.sgov.gov",
363
+ "dualStackDnsSuffix": "api.aws.scloud",
364
+ "implicitGlobalRegion": "us-isob-east-1",
365
+ "name": "aws-iso-b",
366
+ "supportsDualStack": true,
367
+ "supportsFIPS": true
368
+ },
369
+ "regionRegex": "^us\\-isob\\-\\w+\\-\\d+$",
370
+ "regions": {
371
+ "aws-iso-b-global": {
372
+ "description": "aws-iso-b global region"
373
+ },
374
+ "us-isob-east-1": {
375
+ "description": "US ISOB East (Ohio)"
376
+ },
377
+ "us-isob-west-1": {
378
+ "description": "US ISOB West"
379
+ }
380
+ }
381
+ },
382
+ {
383
+ "id": "aws-iso-e",
384
+ "outputs": {
385
+ "dnsSuffix": "cloud.adc-e.uk",
386
+ "dualStackDnsSuffix": "api.cloud-aws.adc-e.uk",
387
+ "implicitGlobalRegion": "eu-isoe-west-1",
388
+ "name": "aws-iso-e",
389
+ "supportsDualStack": true,
390
+ "supportsFIPS": true
391
+ },
392
+ "regionRegex": "^eu\\-isoe\\-\\w+\\-\\d+$",
393
+ "regions": {
394
+ "aws-iso-e-global": {
395
+ "description": "aws-iso-e global region"
396
+ },
397
+ "eu-isoe-west-1": {
398
+ "description": "EU ISOE West"
399
+ }
400
+ }
401
+ },
402
+ {
403
+ "id": "aws-iso-f",
404
+ "outputs": {
405
+ "dnsSuffix": "csp.hci.ic.gov",
406
+ "dualStackDnsSuffix": "api.aws.hci.ic.gov",
407
+ "implicitGlobalRegion": "us-isof-south-1",
408
+ "name": "aws-iso-f",
409
+ "supportsDualStack": true,
410
+ "supportsFIPS": true
411
+ },
412
+ "regionRegex": "^us\\-isof\\-\\w+\\-\\d+$",
413
+ "regions": {
414
+ "aws-iso-f-global": {
415
+ "description": "aws-iso-f global region"
416
+ },
417
+ "us-isof-east-1": {
418
+ "description": "US ISOF EAST"
419
+ },
420
+ "us-isof-south-1": {
421
+ "description": "US ISOF SOUTH"
422
+ }
423
+ }
424
+ },
425
+ {
426
+ "id": "aws-us-gov",
427
+ "outputs": {
428
+ "dnsSuffix": "amazonaws.com",
429
+ "dualStackDnsSuffix": "api.aws",
430
+ "implicitGlobalRegion": "us-gov-west-1",
431
+ "name": "aws-us-gov",
432
+ "supportsDualStack": true,
433
+ "supportsFIPS": true
434
+ },
435
+ "regionRegex": "^us\\-gov\\-\\w+\\-\\d+$",
436
+ "regions": {
437
+ "aws-us-gov-global": {
438
+ "description": "aws-us-gov global region"
439
+ },
440
+ "us-gov-east-1": {
441
+ "description": "AWS GovCloud (US-East)"
442
+ },
443
+ "us-gov-west-1": {
444
+ "description": "AWS GovCloud (US-West)"
445
+ }
446
+ }
447
+ }
448
+ ],
449
+ "version": "1.1"
450
+ };
173
451
 
174
452
  let selectedPartitionsInfo = partitionsInfo;
175
453
  let selectedUserAgentPrefix = "";
@@ -222,10 +500,10 @@ async function checkFeatures(context, config, args) {
222
500
  const retryStrategy = await config.retryStrategy();
223
501
  if (typeof retryStrategy.mode === "string") {
224
502
  switch (retryStrategy.mode) {
225
- case retry.RETRY_MODES.ADAPTIVE:
503
+ case RETRY_MODES.ADAPTIVE:
226
504
  setFeature(context, "RETRY_MODE_ADAPTIVE", "F");
227
505
  break;
228
- case retry.RETRY_MODES.STANDARD:
506
+ case RETRY_MODES.STANDARD:
229
507
  setFeature(context, "RETRY_MODE_STANDARD", "E");
230
508
  break;
231
509
  }
@@ -289,7 +567,7 @@ function encodeFeatures(features) {
289
567
 
290
568
  const userAgentMiddleware = (options) => (next, context) => async (args) => {
291
569
  const { request } = args;
292
- if (!protocols.HttpRequest.isInstance(request)) {
570
+ if (!HttpRequest.isInstance(request)) {
293
571
  return next(args);
294
572
  }
295
573
  const { headers } = request;
@@ -366,7 +644,7 @@ const getUserAgentPlugin = (config) => ({
366
644
  });
367
645
 
368
646
  const createUserAgentStringParsingProvider = ({ serviceId, clientVersion }) => async (config) => {
369
- const module = await import('bowser');
647
+ const module = require('bowser');
370
648
  const parse = module.parse ?? module.default.parse ?? (() => "");
371
649
  const parsedUA = typeof window !== "undefined" && window?.navigator?.userAgent ? parse(window.navigator.userAgent) : undefined;
372
650
  const sections = [
@@ -448,7 +726,7 @@ const isVirtualHostableS3Bucket = (value, allowSubDomains = false) => {
448
726
  }
449
727
  return true;
450
728
  }
451
- if (!endpoints.isValidHostLabel(value)) {
729
+ if (!isValidHostLabel(value)) {
452
730
  return false;
453
731
  }
454
732
  if (value.length < 3 || value.length > 63) {
@@ -457,7 +735,7 @@ const isVirtualHostableS3Bucket = (value, allowSubDomains = false) => {
457
735
  if (value !== value.toLowerCase()) {
458
736
  return false;
459
737
  }
460
- if (endpoints.isIpAddress(value)) {
738
+ if (isIpAddress(value)) {
461
739
  return false;
462
740
  }
463
741
  return true;
@@ -487,7 +765,7 @@ const awsEndpointFunctions = {
487
765
  parseArn: parseArn,
488
766
  partition: partition,
489
767
  };
490
- endpoints.customEndpointFunctions.aws = awsEndpointFunctions;
768
+ customEndpointFunctions.aws = awsEndpointFunctions;
491
769
 
492
770
  const resolveDefaultAwsRegionalEndpointsConfig = (input) => {
493
771
  if (typeof input.endpointProvider !== "function") {
@@ -508,7 +786,7 @@ const resolveDefaultAwsRegionalEndpointsConfig = (input) => {
508
786
  }
509
787
  return input;
510
788
  };
511
- const toEndpointV1 = (endpoint) => protocols.parseUrl(endpoint.url);
789
+ const toEndpointV1 = (endpoint) => parseUrl(endpoint.url);
512
790
 
513
791
  function stsRegionDefaultResolver() {
514
792
  return async () => "us-east-1";
@@ -543,10 +821,6 @@ const NODE_REGION_CONFIG_OPTIONS = no;
543
821
  const NODE_REGION_CONFIG_FILE_OPTIONS = no;
544
822
  const stsRegionWarning = no;
545
823
 
546
- exports.EndpointError = endpoints.EndpointError;
547
- exports.isIpAddress = endpoints.isIpAddress;
548
- exports.resolveEndpoint = endpoints.resolveEndpoint;
549
- exports.resolveRegionConfig = config.resolveRegionConfig;
550
824
  exports.DEFAULT_UA_APP_ID = DEFAULT_UA_APP_ID;
551
825
  exports.NODE_APP_ID_CONFIG_OPTIONS = NODE_APP_ID_CONFIG_OPTIONS;
552
826
  exports.NODE_REGION_CONFIG_FILE_OPTIONS = NODE_REGION_CONFIG_FILE_OPTIONS;