@aws-sdk/util-endpoints 3.996.9 → 3.996.10

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 (52) hide show
  1. package/dist-cjs/index.js +10 -399
  2. package/dist-es/index.js +2 -6
  3. package/dist-types/index.d.ts +8 -6
  4. package/package.json +4 -18
  5. package/dist-cjs/lib/aws/partitions.json +0 -267
  6. package/dist-es/aws.js +0 -10
  7. package/dist-es/lib/aws/index.js +0 -3
  8. package/dist-es/lib/aws/isVirtualHostableS3Bucket.js +0 -25
  9. package/dist-es/lib/aws/parseArn.js +0 -18
  10. package/dist-es/lib/aws/partition.js +0 -41
  11. package/dist-es/lib/aws/partitions.json +0 -267
  12. package/dist-es/lib/isIpAddress.js +0 -1
  13. package/dist-es/resolveDefaultAwsRegionalEndpointsConfig.js +0 -21
  14. package/dist-es/resolveEndpoint.js +0 -1
  15. package/dist-es/types/EndpointError.js +0 -1
  16. package/dist-es/types/EndpointRuleObject.js +0 -1
  17. package/dist-es/types/ErrorRuleObject.js +0 -1
  18. package/dist-es/types/RuleSetObject.js +0 -1
  19. package/dist-es/types/TreeRuleObject.js +0 -1
  20. package/dist-es/types/index.js +0 -6
  21. package/dist-es/types/shared.js +0 -1
  22. package/dist-types/aws.d.ts +0 -2
  23. package/dist-types/lib/aws/index.d.ts +0 -3
  24. package/dist-types/lib/aws/isVirtualHostableS3Bucket.d.ts +0 -5
  25. package/dist-types/lib/aws/parseArn.d.ts +0 -7
  26. package/dist-types/lib/aws/partition.d.ts +0 -38
  27. package/dist-types/lib/isIpAddress.d.ts +0 -1
  28. package/dist-types/resolveDefaultAwsRegionalEndpointsConfig.d.ts +0 -56
  29. package/dist-types/resolveEndpoint.d.ts +0 -1
  30. package/dist-types/ts3.4/aws.d.ts +0 -2
  31. package/dist-types/ts3.4/index.d.ts +0 -6
  32. package/dist-types/ts3.4/lib/aws/index.d.ts +0 -3
  33. package/dist-types/ts3.4/lib/aws/isVirtualHostableS3Bucket.d.ts +0 -4
  34. package/dist-types/ts3.4/lib/aws/parseArn.d.ts +0 -2
  35. package/dist-types/ts3.4/lib/aws/partition.d.ts +0 -28
  36. package/dist-types/ts3.4/lib/isIpAddress.d.ts +0 -1
  37. package/dist-types/ts3.4/resolveDefaultAwsRegionalEndpointsConfig.d.ts +0 -35
  38. package/dist-types/ts3.4/resolveEndpoint.d.ts +0 -1
  39. package/dist-types/ts3.4/types/EndpointError.d.ts +0 -1
  40. package/dist-types/ts3.4/types/EndpointRuleObject.d.ts +0 -6
  41. package/dist-types/ts3.4/types/ErrorRuleObject.d.ts +0 -1
  42. package/dist-types/ts3.4/types/RuleSetObject.d.ts +0 -5
  43. package/dist-types/ts3.4/types/TreeRuleObject.d.ts +0 -1
  44. package/dist-types/ts3.4/types/index.d.ts +0 -6
  45. package/dist-types/ts3.4/types/shared.d.ts +0 -12
  46. package/dist-types/types/EndpointError.d.ts +0 -1
  47. package/dist-types/types/EndpointRuleObject.d.ts +0 -1
  48. package/dist-types/types/ErrorRuleObject.d.ts +0 -1
  49. package/dist-types/types/RuleSetObject.d.ts +0 -1
  50. package/dist-types/types/TreeRuleObject.d.ts +0 -1
  51. package/dist-types/types/index.d.ts +0 -6
  52. package/dist-types/types/shared.d.ts +0 -1
@@ -1,267 +0,0 @@
1
- {
2
- "partitions": [{
3
- "id": "aws",
4
- "outputs": {
5
- "dnsSuffix": "amazonaws.com",
6
- "dualStackDnsSuffix": "api.aws",
7
- "implicitGlobalRegion": "us-east-1",
8
- "name": "aws",
9
- "supportsDualStack": true,
10
- "supportsFIPS": true
11
- },
12
- "regionRegex": "^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",
13
- "regions": {
14
- "af-south-1": {
15
- "description": "Africa (Cape Town)"
16
- },
17
- "ap-east-1": {
18
- "description": "Asia Pacific (Hong Kong)"
19
- },
20
- "ap-east-2": {
21
- "description": "Asia Pacific (Taipei)"
22
- },
23
- "ap-northeast-1": {
24
- "description": "Asia Pacific (Tokyo)"
25
- },
26
- "ap-northeast-2": {
27
- "description": "Asia Pacific (Seoul)"
28
- },
29
- "ap-northeast-3": {
30
- "description": "Asia Pacific (Osaka)"
31
- },
32
- "ap-south-1": {
33
- "description": "Asia Pacific (Mumbai)"
34
- },
35
- "ap-south-2": {
36
- "description": "Asia Pacific (Hyderabad)"
37
- },
38
- "ap-southeast-1": {
39
- "description": "Asia Pacific (Singapore)"
40
- },
41
- "ap-southeast-2": {
42
- "description": "Asia Pacific (Sydney)"
43
- },
44
- "ap-southeast-3": {
45
- "description": "Asia Pacific (Jakarta)"
46
- },
47
- "ap-southeast-4": {
48
- "description": "Asia Pacific (Melbourne)"
49
- },
50
- "ap-southeast-5": {
51
- "description": "Asia Pacific (Malaysia)"
52
- },
53
- "ap-southeast-6": {
54
- "description": "Asia Pacific (New Zealand)"
55
- },
56
- "ap-southeast-7": {
57
- "description": "Asia Pacific (Thailand)"
58
- },
59
- "aws-global": {
60
- "description": "aws global region"
61
- },
62
- "ca-central-1": {
63
- "description": "Canada (Central)"
64
- },
65
- "ca-west-1": {
66
- "description": "Canada West (Calgary)"
67
- },
68
- "eu-central-1": {
69
- "description": "Europe (Frankfurt)"
70
- },
71
- "eu-central-2": {
72
- "description": "Europe (Zurich)"
73
- },
74
- "eu-north-1": {
75
- "description": "Europe (Stockholm)"
76
- },
77
- "eu-south-1": {
78
- "description": "Europe (Milan)"
79
- },
80
- "eu-south-2": {
81
- "description": "Europe (Spain)"
82
- },
83
- "eu-west-1": {
84
- "description": "Europe (Ireland)"
85
- },
86
- "eu-west-2": {
87
- "description": "Europe (London)"
88
- },
89
- "eu-west-3": {
90
- "description": "Europe (Paris)"
91
- },
92
- "il-central-1": {
93
- "description": "Israel (Tel Aviv)"
94
- },
95
- "me-central-1": {
96
- "description": "Middle East (UAE)"
97
- },
98
- "me-south-1": {
99
- "description": "Middle East (Bahrain)"
100
- },
101
- "mx-central-1": {
102
- "description": "Mexico (Central)"
103
- },
104
- "sa-east-1": {
105
- "description": "South America (Sao Paulo)"
106
- },
107
- "us-east-1": {
108
- "description": "US East (N. Virginia)"
109
- },
110
- "us-east-2": {
111
- "description": "US East (Ohio)"
112
- },
113
- "us-west-1": {
114
- "description": "US West (N. California)"
115
- },
116
- "us-west-2": {
117
- "description": "US West (Oregon)"
118
- }
119
- }
120
- }, {
121
- "id": "aws-cn",
122
- "outputs": {
123
- "dnsSuffix": "amazonaws.com.cn",
124
- "dualStackDnsSuffix": "api.amazonwebservices.com.cn",
125
- "implicitGlobalRegion": "cn-northwest-1",
126
- "name": "aws-cn",
127
- "supportsDualStack": true,
128
- "supportsFIPS": true
129
- },
130
- "regionRegex": "^cn\\-\\w+\\-\\d+$",
131
- "regions": {
132
- "aws-cn-global": {
133
- "description": "aws-cn global region"
134
- },
135
- "cn-north-1": {
136
- "description": "China (Beijing)"
137
- },
138
- "cn-northwest-1": {
139
- "description": "China (Ningxia)"
140
- }
141
- }
142
- }, {
143
- "id": "aws-eusc",
144
- "outputs": {
145
- "dnsSuffix": "amazonaws.eu",
146
- "dualStackDnsSuffix": "api.amazonwebservices.eu",
147
- "implicitGlobalRegion": "eusc-de-east-1",
148
- "name": "aws-eusc",
149
- "supportsDualStack": true,
150
- "supportsFIPS": true
151
- },
152
- "regionRegex": "^eusc\\-(de)\\-\\w+\\-\\d+$",
153
- "regions": {
154
- "eusc-de-east-1": {
155
- "description": "AWS European Sovereign Cloud (Germany)"
156
- }
157
- }
158
- }, {
159
- "id": "aws-iso",
160
- "outputs": {
161
- "dnsSuffix": "c2s.ic.gov",
162
- "dualStackDnsSuffix": "api.aws.ic.gov",
163
- "implicitGlobalRegion": "us-iso-east-1",
164
- "name": "aws-iso",
165
- "supportsDualStack": true,
166
- "supportsFIPS": true
167
- },
168
- "regionRegex": "^us\\-iso\\-\\w+\\-\\d+$",
169
- "regions": {
170
- "aws-iso-global": {
171
- "description": "aws-iso global region"
172
- },
173
- "us-iso-east-1": {
174
- "description": "US ISO East"
175
- },
176
- "us-iso-west-1": {
177
- "description": "US ISO WEST"
178
- }
179
- }
180
- }, {
181
- "id": "aws-iso-b",
182
- "outputs": {
183
- "dnsSuffix": "sc2s.sgov.gov",
184
- "dualStackDnsSuffix": "api.aws.scloud",
185
- "implicitGlobalRegion": "us-isob-east-1",
186
- "name": "aws-iso-b",
187
- "supportsDualStack": true,
188
- "supportsFIPS": true
189
- },
190
- "regionRegex": "^us\\-isob\\-\\w+\\-\\d+$",
191
- "regions": {
192
- "aws-iso-b-global": {
193
- "description": "aws-iso-b global region"
194
- },
195
- "us-isob-east-1": {
196
- "description": "US ISOB East (Ohio)"
197
- },
198
- "us-isob-west-1": {
199
- "description": "US ISOB West"
200
- }
201
- }
202
- }, {
203
- "id": "aws-iso-e",
204
- "outputs": {
205
- "dnsSuffix": "cloud.adc-e.uk",
206
- "dualStackDnsSuffix": "api.cloud-aws.adc-e.uk",
207
- "implicitGlobalRegion": "eu-isoe-west-1",
208
- "name": "aws-iso-e",
209
- "supportsDualStack": true,
210
- "supportsFIPS": true
211
- },
212
- "regionRegex": "^eu\\-isoe\\-\\w+\\-\\d+$",
213
- "regions": {
214
- "aws-iso-e-global": {
215
- "description": "aws-iso-e global region"
216
- },
217
- "eu-isoe-west-1": {
218
- "description": "EU ISOE West"
219
- }
220
- }
221
- }, {
222
- "id": "aws-iso-f",
223
- "outputs": {
224
- "dnsSuffix": "csp.hci.ic.gov",
225
- "dualStackDnsSuffix": "api.aws.hci.ic.gov",
226
- "implicitGlobalRegion": "us-isof-south-1",
227
- "name": "aws-iso-f",
228
- "supportsDualStack": true,
229
- "supportsFIPS": true
230
- },
231
- "regionRegex": "^us\\-isof\\-\\w+\\-\\d+$",
232
- "regions": {
233
- "aws-iso-f-global": {
234
- "description": "aws-iso-f global region"
235
- },
236
- "us-isof-east-1": {
237
- "description": "US ISOF EAST"
238
- },
239
- "us-isof-south-1": {
240
- "description": "US ISOF SOUTH"
241
- }
242
- }
243
- }, {
244
- "id": "aws-us-gov",
245
- "outputs": {
246
- "dnsSuffix": "amazonaws.com",
247
- "dualStackDnsSuffix": "api.aws",
248
- "implicitGlobalRegion": "us-gov-west-1",
249
- "name": "aws-us-gov",
250
- "supportsDualStack": true,
251
- "supportsFIPS": true
252
- },
253
- "regionRegex": "^us\\-gov\\-\\w+\\-\\d+$",
254
- "regions": {
255
- "aws-us-gov-global": {
256
- "description": "aws-us-gov global region"
257
- },
258
- "us-gov-east-1": {
259
- "description": "AWS GovCloud (US-East)"
260
- },
261
- "us-gov-west-1": {
262
- "description": "AWS GovCloud (US-West)"
263
- }
264
- }
265
- }],
266
- "version": "1.1"
267
- }
package/dist-es/aws.js DELETED
@@ -1,10 +0,0 @@
1
- import { customEndpointFunctions } from "@smithy/core/endpoints";
2
- import { isVirtualHostableS3Bucket } from "./lib/aws/isVirtualHostableS3Bucket";
3
- import { parseArn } from "./lib/aws/parseArn";
4
- import { partition } from "./lib/aws/partition";
5
- export const awsEndpointFunctions = {
6
- isVirtualHostableS3Bucket: isVirtualHostableS3Bucket,
7
- parseArn: parseArn,
8
- partition: partition,
9
- };
10
- customEndpointFunctions.aws = awsEndpointFunctions;
@@ -1,3 +0,0 @@
1
- export * from "./isVirtualHostableS3Bucket";
2
- export * from "./parseArn";
3
- export * from "./partition";
@@ -1,25 +0,0 @@
1
- import { isValidHostLabel } from "@smithy/core/endpoints";
2
- import { isIpAddress } from "../isIpAddress";
3
- export const isVirtualHostableS3Bucket = (value, allowSubDomains = false) => {
4
- if (allowSubDomains) {
5
- for (const label of value.split(".")) {
6
- if (!isVirtualHostableS3Bucket(label)) {
7
- return false;
8
- }
9
- }
10
- return true;
11
- }
12
- if (!isValidHostLabel(value)) {
13
- return false;
14
- }
15
- if (value.length < 3 || value.length > 63) {
16
- return false;
17
- }
18
- if (value !== value.toLowerCase()) {
19
- return false;
20
- }
21
- if (isIpAddress(value)) {
22
- return false;
23
- }
24
- return true;
25
- };
@@ -1,18 +0,0 @@
1
- const ARN_DELIMITER = ":";
2
- const RESOURCE_DELIMITER = "/";
3
- export const parseArn = (value) => {
4
- const segments = value.split(ARN_DELIMITER);
5
- if (segments.length < 6)
6
- return null;
7
- const [arn, partition, service, region, accountId, ...resourcePath] = segments;
8
- if (arn !== "arn" || partition === "" || service === "" || resourcePath.join(ARN_DELIMITER) === "")
9
- return null;
10
- const resourceId = resourcePath.map((resource) => resource.split(RESOURCE_DELIMITER)).flat();
11
- return {
12
- partition,
13
- service,
14
- region,
15
- accountId,
16
- resourceId,
17
- };
18
- };
@@ -1,41 +0,0 @@
1
- import partitionsInfo from "./partitions.json";
2
- let selectedPartitionsInfo = partitionsInfo;
3
- let selectedUserAgentPrefix = "";
4
- export const partition = (value) => {
5
- const { partitions } = selectedPartitionsInfo;
6
- for (const partition of partitions) {
7
- const { regions, outputs } = partition;
8
- for (const [region, regionData] of Object.entries(regions)) {
9
- if (region === value) {
10
- return {
11
- ...outputs,
12
- ...regionData,
13
- };
14
- }
15
- }
16
- }
17
- for (const partition of partitions) {
18
- const { regionRegex, outputs } = partition;
19
- if (new RegExp(regionRegex).test(value)) {
20
- return {
21
- ...outputs,
22
- };
23
- }
24
- }
25
- const DEFAULT_PARTITION = partitions.find((partition) => partition.id === "aws");
26
- if (!DEFAULT_PARTITION) {
27
- throw new Error("Provided region was not found in the partition array or regex," +
28
- " and default partition with id 'aws' doesn't exist.");
29
- }
30
- return {
31
- ...DEFAULT_PARTITION.outputs,
32
- };
33
- };
34
- export const setPartitionInfo = (partitionsInfo, userAgentPrefix = "") => {
35
- selectedPartitionsInfo = partitionsInfo;
36
- selectedUserAgentPrefix = userAgentPrefix;
37
- };
38
- export const useDefaultPartitionInfo = () => {
39
- setPartitionInfo(partitionsInfo, "");
40
- };
41
- export const getUserAgentPrefix = () => selectedUserAgentPrefix;
@@ -1,267 +0,0 @@
1
- {
2
- "partitions": [{
3
- "id": "aws",
4
- "outputs": {
5
- "dnsSuffix": "amazonaws.com",
6
- "dualStackDnsSuffix": "api.aws",
7
- "implicitGlobalRegion": "us-east-1",
8
- "name": "aws",
9
- "supportsDualStack": true,
10
- "supportsFIPS": true
11
- },
12
- "regionRegex": "^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",
13
- "regions": {
14
- "af-south-1": {
15
- "description": "Africa (Cape Town)"
16
- },
17
- "ap-east-1": {
18
- "description": "Asia Pacific (Hong Kong)"
19
- },
20
- "ap-east-2": {
21
- "description": "Asia Pacific (Taipei)"
22
- },
23
- "ap-northeast-1": {
24
- "description": "Asia Pacific (Tokyo)"
25
- },
26
- "ap-northeast-2": {
27
- "description": "Asia Pacific (Seoul)"
28
- },
29
- "ap-northeast-3": {
30
- "description": "Asia Pacific (Osaka)"
31
- },
32
- "ap-south-1": {
33
- "description": "Asia Pacific (Mumbai)"
34
- },
35
- "ap-south-2": {
36
- "description": "Asia Pacific (Hyderabad)"
37
- },
38
- "ap-southeast-1": {
39
- "description": "Asia Pacific (Singapore)"
40
- },
41
- "ap-southeast-2": {
42
- "description": "Asia Pacific (Sydney)"
43
- },
44
- "ap-southeast-3": {
45
- "description": "Asia Pacific (Jakarta)"
46
- },
47
- "ap-southeast-4": {
48
- "description": "Asia Pacific (Melbourne)"
49
- },
50
- "ap-southeast-5": {
51
- "description": "Asia Pacific (Malaysia)"
52
- },
53
- "ap-southeast-6": {
54
- "description": "Asia Pacific (New Zealand)"
55
- },
56
- "ap-southeast-7": {
57
- "description": "Asia Pacific (Thailand)"
58
- },
59
- "aws-global": {
60
- "description": "aws global region"
61
- },
62
- "ca-central-1": {
63
- "description": "Canada (Central)"
64
- },
65
- "ca-west-1": {
66
- "description": "Canada West (Calgary)"
67
- },
68
- "eu-central-1": {
69
- "description": "Europe (Frankfurt)"
70
- },
71
- "eu-central-2": {
72
- "description": "Europe (Zurich)"
73
- },
74
- "eu-north-1": {
75
- "description": "Europe (Stockholm)"
76
- },
77
- "eu-south-1": {
78
- "description": "Europe (Milan)"
79
- },
80
- "eu-south-2": {
81
- "description": "Europe (Spain)"
82
- },
83
- "eu-west-1": {
84
- "description": "Europe (Ireland)"
85
- },
86
- "eu-west-2": {
87
- "description": "Europe (London)"
88
- },
89
- "eu-west-3": {
90
- "description": "Europe (Paris)"
91
- },
92
- "il-central-1": {
93
- "description": "Israel (Tel Aviv)"
94
- },
95
- "me-central-1": {
96
- "description": "Middle East (UAE)"
97
- },
98
- "me-south-1": {
99
- "description": "Middle East (Bahrain)"
100
- },
101
- "mx-central-1": {
102
- "description": "Mexico (Central)"
103
- },
104
- "sa-east-1": {
105
- "description": "South America (Sao Paulo)"
106
- },
107
- "us-east-1": {
108
- "description": "US East (N. Virginia)"
109
- },
110
- "us-east-2": {
111
- "description": "US East (Ohio)"
112
- },
113
- "us-west-1": {
114
- "description": "US West (N. California)"
115
- },
116
- "us-west-2": {
117
- "description": "US West (Oregon)"
118
- }
119
- }
120
- }, {
121
- "id": "aws-cn",
122
- "outputs": {
123
- "dnsSuffix": "amazonaws.com.cn",
124
- "dualStackDnsSuffix": "api.amazonwebservices.com.cn",
125
- "implicitGlobalRegion": "cn-northwest-1",
126
- "name": "aws-cn",
127
- "supportsDualStack": true,
128
- "supportsFIPS": true
129
- },
130
- "regionRegex": "^cn\\-\\w+\\-\\d+$",
131
- "regions": {
132
- "aws-cn-global": {
133
- "description": "aws-cn global region"
134
- },
135
- "cn-north-1": {
136
- "description": "China (Beijing)"
137
- },
138
- "cn-northwest-1": {
139
- "description": "China (Ningxia)"
140
- }
141
- }
142
- }, {
143
- "id": "aws-eusc",
144
- "outputs": {
145
- "dnsSuffix": "amazonaws.eu",
146
- "dualStackDnsSuffix": "api.amazonwebservices.eu",
147
- "implicitGlobalRegion": "eusc-de-east-1",
148
- "name": "aws-eusc",
149
- "supportsDualStack": true,
150
- "supportsFIPS": true
151
- },
152
- "regionRegex": "^eusc\\-(de)\\-\\w+\\-\\d+$",
153
- "regions": {
154
- "eusc-de-east-1": {
155
- "description": "AWS European Sovereign Cloud (Germany)"
156
- }
157
- }
158
- }, {
159
- "id": "aws-iso",
160
- "outputs": {
161
- "dnsSuffix": "c2s.ic.gov",
162
- "dualStackDnsSuffix": "api.aws.ic.gov",
163
- "implicitGlobalRegion": "us-iso-east-1",
164
- "name": "aws-iso",
165
- "supportsDualStack": true,
166
- "supportsFIPS": true
167
- },
168
- "regionRegex": "^us\\-iso\\-\\w+\\-\\d+$",
169
- "regions": {
170
- "aws-iso-global": {
171
- "description": "aws-iso global region"
172
- },
173
- "us-iso-east-1": {
174
- "description": "US ISO East"
175
- },
176
- "us-iso-west-1": {
177
- "description": "US ISO WEST"
178
- }
179
- }
180
- }, {
181
- "id": "aws-iso-b",
182
- "outputs": {
183
- "dnsSuffix": "sc2s.sgov.gov",
184
- "dualStackDnsSuffix": "api.aws.scloud",
185
- "implicitGlobalRegion": "us-isob-east-1",
186
- "name": "aws-iso-b",
187
- "supportsDualStack": true,
188
- "supportsFIPS": true
189
- },
190
- "regionRegex": "^us\\-isob\\-\\w+\\-\\d+$",
191
- "regions": {
192
- "aws-iso-b-global": {
193
- "description": "aws-iso-b global region"
194
- },
195
- "us-isob-east-1": {
196
- "description": "US ISOB East (Ohio)"
197
- },
198
- "us-isob-west-1": {
199
- "description": "US ISOB West"
200
- }
201
- }
202
- }, {
203
- "id": "aws-iso-e",
204
- "outputs": {
205
- "dnsSuffix": "cloud.adc-e.uk",
206
- "dualStackDnsSuffix": "api.cloud-aws.adc-e.uk",
207
- "implicitGlobalRegion": "eu-isoe-west-1",
208
- "name": "aws-iso-e",
209
- "supportsDualStack": true,
210
- "supportsFIPS": true
211
- },
212
- "regionRegex": "^eu\\-isoe\\-\\w+\\-\\d+$",
213
- "regions": {
214
- "aws-iso-e-global": {
215
- "description": "aws-iso-e global region"
216
- },
217
- "eu-isoe-west-1": {
218
- "description": "EU ISOE West"
219
- }
220
- }
221
- }, {
222
- "id": "aws-iso-f",
223
- "outputs": {
224
- "dnsSuffix": "csp.hci.ic.gov",
225
- "dualStackDnsSuffix": "api.aws.hci.ic.gov",
226
- "implicitGlobalRegion": "us-isof-south-1",
227
- "name": "aws-iso-f",
228
- "supportsDualStack": true,
229
- "supportsFIPS": true
230
- },
231
- "regionRegex": "^us\\-isof\\-\\w+\\-\\d+$",
232
- "regions": {
233
- "aws-iso-f-global": {
234
- "description": "aws-iso-f global region"
235
- },
236
- "us-isof-east-1": {
237
- "description": "US ISOF EAST"
238
- },
239
- "us-isof-south-1": {
240
- "description": "US ISOF SOUTH"
241
- }
242
- }
243
- }, {
244
- "id": "aws-us-gov",
245
- "outputs": {
246
- "dnsSuffix": "amazonaws.com",
247
- "dualStackDnsSuffix": "api.aws",
248
- "implicitGlobalRegion": "us-gov-west-1",
249
- "name": "aws-us-gov",
250
- "supportsDualStack": true,
251
- "supportsFIPS": true
252
- },
253
- "regionRegex": "^us\\-gov\\-\\w+\\-\\d+$",
254
- "regions": {
255
- "aws-us-gov-global": {
256
- "description": "aws-us-gov global region"
257
- },
258
- "us-gov-east-1": {
259
- "description": "AWS GovCloud (US-East)"
260
- },
261
- "us-gov-west-1": {
262
- "description": "AWS GovCloud (US-West)"
263
- }
264
- }
265
- }],
266
- "version": "1.1"
267
- }
@@ -1 +0,0 @@
1
- export { isIpAddress } from "@smithy/core/endpoints";
@@ -1,21 +0,0 @@
1
- import { parseUrl } from "@smithy/core/protocols";
2
- export const resolveDefaultAwsRegionalEndpointsConfig = (input) => {
3
- if (typeof input.endpointProvider !== "function") {
4
- throw new Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.");
5
- }
6
- const { endpoint } = input;
7
- if (endpoint === undefined) {
8
- input.endpoint = async () => {
9
- return toEndpointV1(input.endpointProvider({
10
- Region: typeof input.region === "function" ? await input.region() : input.region,
11
- UseDualStack: typeof input.useDualstackEndpoint === "function"
12
- ? await input.useDualstackEndpoint()
13
- : input.useDualstackEndpoint,
14
- UseFIPS: typeof input.useFipsEndpoint === "function" ? await input.useFipsEndpoint() : input.useFipsEndpoint,
15
- Endpoint: undefined,
16
- }, { logger: input.logger }));
17
- };
18
- }
19
- return input;
20
- };
21
- export const toEndpointV1 = (endpoint) => parseUrl(endpoint.url);
@@ -1 +0,0 @@
1
- export { resolveEndpoint } from "@smithy/core/endpoints";
@@ -1 +0,0 @@
1
- export { EndpointError } from "@smithy/core/endpoints";
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};