@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 +45 -50
- package/dist-cjs/submodules/account-id-endpoint/index.js +2 -4
- package/dist-cjs/submodules/client/index.browser.js +297 -23
- package/dist-cjs/submodules/client/index.js +327 -52
- package/dist-cjs/submodules/client/index.native.js +297 -23
- package/dist-cjs/submodules/httpAuthSchemes/index.js +19 -21
- package/dist-cjs/submodules/protocols/index.js +107 -109
- package/dist-cjs/submodules/util/index.js +2 -4
- package/dist-es/submodules/client/util-endpoints/lib/aws/partitions.js +276 -1
- package/package.json +8 -8
package/dist-cjs/index.js
CHANGED
|
@@ -1,50 +1,45 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
exports.
|
|
10
|
-
exports.
|
|
11
|
-
exports.
|
|
12
|
-
exports.
|
|
13
|
-
exports.
|
|
14
|
-
exports.
|
|
15
|
-
exports.
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
22
|
-
exports.
|
|
23
|
-
exports.
|
|
24
|
-
exports.
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.
|
|
32
|
-
exports.
|
|
33
|
-
exports.
|
|
34
|
-
exports.
|
|
35
|
-
exports.
|
|
36
|
-
exports.
|
|
37
|
-
exports.
|
|
38
|
-
exports.
|
|
39
|
-
exports.
|
|
40
|
-
exports.
|
|
41
|
-
exports.
|
|
42
|
-
exports.
|
|
43
|
-
exports.
|
|
44
|
-
exports.
|
|
45
|
-
exports.
|
|
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
|
-
|
|
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 =
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
|
|
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 (!
|
|
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 =
|
|
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 = {
|
|
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
|
|
503
|
+
case RETRY_MODES.ADAPTIVE:
|
|
226
504
|
setFeature(context, "RETRY_MODE_ADAPTIVE", "F");
|
|
227
505
|
break;
|
|
228
|
-
case
|
|
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 (!
|
|
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 =
|
|
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 (!
|
|
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 (
|
|
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
|
-
|
|
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) =>
|
|
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;
|