@jjrawlins/cdk-iam-policy-builder-helper 0.0.57 → 0.0.58
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/.jsii +3 -3
- package/cdk-iam-policy-builder-helper/go.mod +1 -1
- package/cdk-iam-policy-builder-helper/jsii/jsii.go +2 -2
- package/cdk-iam-policy-builder-helper/version +1 -1
- package/node_modules/@aws-sdk/client-iam/package.json +34 -34
- package/node_modules/@aws-sdk/client-sso/package.json +32 -32
- package/node_modules/@aws-sdk/core/dist-cjs/index.js +5 -5
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +5 -5
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.js +1 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +1 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +1 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js +1 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/ProtocolLib.d.ts +4 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ProtocolLib.d.ts +7 -7
- package/node_modules/@aws-sdk/core/package.json +11 -11
- package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-http/package.json +10 -10
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +13 -13
- package/node_modules/@aws-sdk/credential-provider-node/package.json +12 -12
- package/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -7
- package/node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js +35 -63
- package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js +44 -75
- package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js +19 -48
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +7 -7
- package/node_modules/@aws-sdk/nested-clients/package.json +32 -32
- package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js +59 -95
- package/node_modules/@aws-sdk/region-config-resolver/package.json +5 -5
- package/node_modules/@aws-sdk/token-providers/package.json +7 -7
- package/node_modules/@aws-sdk/types/dist-cjs/index.js +18 -290
- package/node_modules/@aws-sdk/types/package.json +2 -2
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +395 -469
- package/node_modules/@aws-sdk/util-endpoints/package.json +5 -5
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +5 -5
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +106 -160
- package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
- package/node_modules/@smithy/abort-controller/package.json +2 -2
- package/node_modules/@smithy/config-resolver/package.json +4 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +74 -61
- package/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js +16 -9
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +2 -2
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/Schema.js +0 -2
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/SimpleSchema.js +6 -0
- package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +1 -2
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/SimpleSchema.d.ts +5 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/TypeRegistry.d.ts +1 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/SimpleSchema.d.ts +5 -0
- package/node_modules/@smithy/core/package.json +7 -7
- package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
- package/node_modules/@smithy/fetch-http-handler/package.json +5 -5
- package/node_modules/@smithy/hash-node/package.json +2 -2
- package/node_modules/@smithy/invalid-dependency/package.json +2 -2
- package/node_modules/@smithy/middleware-content-length/package.json +3 -3
- package/node_modules/@smithy/middleware-endpoint/package.json +8 -8
- package/node_modules/@smithy/middleware-retry/package.json +8 -8
- package/node_modules/@smithy/middleware-serde/package.json +3 -3
- package/node_modules/@smithy/middleware-stack/package.json +2 -2
- package/node_modules/@smithy/node-config-provider/package.json +4 -4
- package/node_modules/@smithy/node-http-handler/package.json +5 -5
- package/node_modules/@smithy/property-provider/package.json +2 -2
- package/node_modules/@smithy/protocol-http/package.json +2 -2
- package/node_modules/@smithy/querystring-builder/package.json +2 -2
- package/node_modules/@smithy/querystring-parser/package.json +2 -2
- package/node_modules/@smithy/service-error-classification/package.json +2 -2
- package/node_modules/@smithy/shared-ini-file-loader/package.json +2 -2
- package/node_modules/@smithy/signature-v4/package.json +4 -4
- package/node_modules/@smithy/smithy-client/package.json +7 -7
- package/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +2 -2
- package/node_modules/@smithy/types/package.json +1 -1
- package/node_modules/@smithy/url-parser/package.json +3 -3
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -4
- package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
- package/node_modules/@smithy/util-endpoints/package.json +3 -3
- package/node_modules/@smithy/util-middleware/package.json +2 -2
- package/node_modules/@smithy/util-retry/package.json +3 -3
- package/node_modules/@smithy/util-stream/package.json +4 -4
- package/node_modules/@smithy/util-waiter/package.json +3 -3
- package/package.json +5 -5
|
@@ -1,486 +1,412 @@
|
|
|
1
|
-
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
-
|
|
21
|
-
// src/index.ts
|
|
22
|
-
var index_exports = {};
|
|
23
|
-
__export(index_exports, {
|
|
24
|
-
ConditionObject: () => import_util_endpoints.ConditionObject,
|
|
25
|
-
DeprecatedObject: () => import_util_endpoints.DeprecatedObject,
|
|
26
|
-
EndpointError: () => import_util_endpoints.EndpointError,
|
|
27
|
-
EndpointObject: () => import_util_endpoints.EndpointObject,
|
|
28
|
-
EndpointObjectHeaders: () => import_util_endpoints.EndpointObjectHeaders,
|
|
29
|
-
EndpointObjectProperties: () => import_util_endpoints.EndpointObjectProperties,
|
|
30
|
-
EndpointParams: () => import_util_endpoints.EndpointParams,
|
|
31
|
-
EndpointResolverOptions: () => import_util_endpoints.EndpointResolverOptions,
|
|
32
|
-
EndpointRuleObject: () => import_util_endpoints.EndpointRuleObject,
|
|
33
|
-
ErrorRuleObject: () => import_util_endpoints.ErrorRuleObject,
|
|
34
|
-
EvaluateOptions: () => import_util_endpoints.EvaluateOptions,
|
|
35
|
-
Expression: () => import_util_endpoints.Expression,
|
|
36
|
-
FunctionArgv: () => import_util_endpoints.FunctionArgv,
|
|
37
|
-
FunctionObject: () => import_util_endpoints.FunctionObject,
|
|
38
|
-
FunctionReturn: () => import_util_endpoints.FunctionReturn,
|
|
39
|
-
ParameterObject: () => import_util_endpoints.ParameterObject,
|
|
40
|
-
ReferenceObject: () => import_util_endpoints.ReferenceObject,
|
|
41
|
-
ReferenceRecord: () => import_util_endpoints.ReferenceRecord,
|
|
42
|
-
RuleSetObject: () => import_util_endpoints.RuleSetObject,
|
|
43
|
-
RuleSetRules: () => import_util_endpoints.RuleSetRules,
|
|
44
|
-
TreeRuleObject: () => import_util_endpoints.TreeRuleObject,
|
|
45
|
-
awsEndpointFunctions: () => awsEndpointFunctions,
|
|
46
|
-
getUserAgentPrefix: () => getUserAgentPrefix,
|
|
47
|
-
isIpAddress: () => import_util_endpoints.isIpAddress,
|
|
48
|
-
partition: () => partition,
|
|
49
|
-
resolveDefaultAwsRegionalEndpointsConfig: () => resolveDefaultAwsRegionalEndpointsConfig,
|
|
50
|
-
resolveEndpoint: () => import_util_endpoints.resolveEndpoint,
|
|
51
|
-
setPartitionInfo: () => setPartitionInfo,
|
|
52
|
-
toEndpointV1: () => toEndpointV1,
|
|
53
|
-
useDefaultPartitionInfo: () => useDefaultPartitionInfo
|
|
54
|
-
});
|
|
55
|
-
module.exports = __toCommonJS(index_exports);
|
|
56
|
-
|
|
57
|
-
// src/aws.ts
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
// src/lib/aws/isVirtualHostableS3Bucket.ts
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
// src/lib/isIpAddress.ts
|
|
64
|
-
var import_util_endpoints = require("@smithy/util-endpoints");
|
|
65
|
-
|
|
66
|
-
// src/lib/aws/isVirtualHostableS3Bucket.ts
|
|
67
|
-
var isVirtualHostableS3Bucket = /* @__PURE__ */ __name((value, allowSubDomains = false) => {
|
|
68
|
-
if (allowSubDomains) {
|
|
69
|
-
for (const label of value.split(".")) {
|
|
70
|
-
if (!isVirtualHostableS3Bucket(label)) {
|
|
71
|
-
return false;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
return true;
|
|
75
|
-
}
|
|
76
|
-
if (!(0, import_util_endpoints.isValidHostLabel)(value)) {
|
|
77
|
-
return false;
|
|
78
|
-
}
|
|
79
|
-
if (value.length < 3 || value.length > 63) {
|
|
80
|
-
return false;
|
|
81
|
-
}
|
|
82
|
-
if (value !== value.toLowerCase()) {
|
|
83
|
-
return false;
|
|
84
|
-
}
|
|
85
|
-
if ((0, import_util_endpoints.isIpAddress)(value)) {
|
|
86
|
-
return false;
|
|
87
|
-
}
|
|
88
|
-
return true;
|
|
89
|
-
}, "isVirtualHostableS3Bucket");
|
|
1
|
+
'use strict';
|
|
90
2
|
|
|
91
|
-
|
|
92
|
-
var
|
|
93
|
-
var RESOURCE_DELIMITER = "/";
|
|
94
|
-
var parseArn = /* @__PURE__ */ __name((value) => {
|
|
95
|
-
const segments = value.split(ARN_DELIMITER);
|
|
96
|
-
if (segments.length < 6) return null;
|
|
97
|
-
const [arn, partition2, service, region, accountId, ...resourcePath] = segments;
|
|
98
|
-
if (arn !== "arn" || partition2 === "" || service === "" || resourcePath.join(ARN_DELIMITER) === "") return null;
|
|
99
|
-
const resourceId = resourcePath.map((resource) => resource.split(RESOURCE_DELIMITER)).flat();
|
|
100
|
-
return {
|
|
101
|
-
partition: partition2,
|
|
102
|
-
service,
|
|
103
|
-
region,
|
|
104
|
-
accountId,
|
|
105
|
-
resourceId
|
|
106
|
-
};
|
|
107
|
-
}, "parseArn");
|
|
3
|
+
var utilEndpoints = require('@smithy/util-endpoints');
|
|
4
|
+
var urlParser = require('@smithy/url-parser');
|
|
108
5
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
name: "aws",
|
|
118
|
-
supportsDualStack: true,
|
|
119
|
-
supportsFIPS: true
|
|
120
|
-
},
|
|
121
|
-
regionRegex: "^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",
|
|
122
|
-
regions: {
|
|
123
|
-
"af-south-1": {
|
|
124
|
-
description: "Africa (Cape Town)"
|
|
125
|
-
},
|
|
126
|
-
"ap-east-1": {
|
|
127
|
-
description: "Asia Pacific (Hong Kong)"
|
|
128
|
-
},
|
|
129
|
-
"ap-east-2": {
|
|
130
|
-
description: "Asia Pacific (Taipei)"
|
|
131
|
-
},
|
|
132
|
-
"ap-northeast-1": {
|
|
133
|
-
description: "Asia Pacific (Tokyo)"
|
|
134
|
-
},
|
|
135
|
-
"ap-northeast-2": {
|
|
136
|
-
description: "Asia Pacific (Seoul)"
|
|
137
|
-
},
|
|
138
|
-
"ap-northeast-3": {
|
|
139
|
-
description: "Asia Pacific (Osaka)"
|
|
140
|
-
},
|
|
141
|
-
"ap-south-1": {
|
|
142
|
-
description: "Asia Pacific (Mumbai)"
|
|
143
|
-
},
|
|
144
|
-
"ap-south-2": {
|
|
145
|
-
description: "Asia Pacific (Hyderabad)"
|
|
146
|
-
},
|
|
147
|
-
"ap-southeast-1": {
|
|
148
|
-
description: "Asia Pacific (Singapore)"
|
|
149
|
-
},
|
|
150
|
-
"ap-southeast-2": {
|
|
151
|
-
description: "Asia Pacific (Sydney)"
|
|
152
|
-
},
|
|
153
|
-
"ap-southeast-3": {
|
|
154
|
-
description: "Asia Pacific (Jakarta)"
|
|
155
|
-
},
|
|
156
|
-
"ap-southeast-4": {
|
|
157
|
-
description: "Asia Pacific (Melbourne)"
|
|
158
|
-
},
|
|
159
|
-
"ap-southeast-5": {
|
|
160
|
-
description: "Asia Pacific (Malaysia)"
|
|
161
|
-
},
|
|
162
|
-
"ap-southeast-6": {
|
|
163
|
-
description: "Asia Pacific (New Zealand)"
|
|
164
|
-
},
|
|
165
|
-
"ap-southeast-7": {
|
|
166
|
-
description: "Asia Pacific (Thailand)"
|
|
167
|
-
},
|
|
168
|
-
"aws-global": {
|
|
169
|
-
description: "aws global region"
|
|
170
|
-
},
|
|
171
|
-
"ca-central-1": {
|
|
172
|
-
description: "Canada (Central)"
|
|
173
|
-
},
|
|
174
|
-
"ca-west-1": {
|
|
175
|
-
description: "Canada West (Calgary)"
|
|
176
|
-
},
|
|
177
|
-
"eu-central-1": {
|
|
178
|
-
description: "Europe (Frankfurt)"
|
|
179
|
-
},
|
|
180
|
-
"eu-central-2": {
|
|
181
|
-
description: "Europe (Zurich)"
|
|
182
|
-
},
|
|
183
|
-
"eu-north-1": {
|
|
184
|
-
description: "Europe (Stockholm)"
|
|
185
|
-
},
|
|
186
|
-
"eu-south-1": {
|
|
187
|
-
description: "Europe (Milan)"
|
|
188
|
-
},
|
|
189
|
-
"eu-south-2": {
|
|
190
|
-
description: "Europe (Spain)"
|
|
191
|
-
},
|
|
192
|
-
"eu-west-1": {
|
|
193
|
-
description: "Europe (Ireland)"
|
|
194
|
-
},
|
|
195
|
-
"eu-west-2": {
|
|
196
|
-
description: "Europe (London)"
|
|
197
|
-
},
|
|
198
|
-
"eu-west-3": {
|
|
199
|
-
description: "Europe (Paris)"
|
|
200
|
-
},
|
|
201
|
-
"il-central-1": {
|
|
202
|
-
description: "Israel (Tel Aviv)"
|
|
203
|
-
},
|
|
204
|
-
"me-central-1": {
|
|
205
|
-
description: "Middle East (UAE)"
|
|
206
|
-
},
|
|
207
|
-
"me-south-1": {
|
|
208
|
-
description: "Middle East (Bahrain)"
|
|
209
|
-
},
|
|
210
|
-
"mx-central-1": {
|
|
211
|
-
description: "Mexico (Central)"
|
|
212
|
-
},
|
|
213
|
-
"sa-east-1": {
|
|
214
|
-
description: "South America (Sao Paulo)"
|
|
215
|
-
},
|
|
216
|
-
"us-east-1": {
|
|
217
|
-
description: "US East (N. Virginia)"
|
|
218
|
-
},
|
|
219
|
-
"us-east-2": {
|
|
220
|
-
description: "US East (Ohio)"
|
|
221
|
-
},
|
|
222
|
-
"us-west-1": {
|
|
223
|
-
description: "US West (N. California)"
|
|
224
|
-
},
|
|
225
|
-
"us-west-2": {
|
|
226
|
-
description: "US West (Oregon)"
|
|
227
|
-
}
|
|
6
|
+
const isVirtualHostableS3Bucket = (value, allowSubDomains = false) => {
|
|
7
|
+
if (allowSubDomains) {
|
|
8
|
+
for (const label of value.split(".")) {
|
|
9
|
+
if (!isVirtualHostableS3Bucket(label)) {
|
|
10
|
+
return false;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
return true;
|
|
228
14
|
}
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
outputs: {
|
|
232
|
-
dnsSuffix: "amazonaws.com.cn",
|
|
233
|
-
dualStackDnsSuffix: "api.amazonwebservices.com.cn",
|
|
234
|
-
implicitGlobalRegion: "cn-northwest-1",
|
|
235
|
-
name: "aws-cn",
|
|
236
|
-
supportsDualStack: true,
|
|
237
|
-
supportsFIPS: true
|
|
238
|
-
},
|
|
239
|
-
regionRegex: "^cn\\-\\w+\\-\\d+$",
|
|
240
|
-
regions: {
|
|
241
|
-
"aws-cn-global": {
|
|
242
|
-
description: "aws-cn global region"
|
|
243
|
-
},
|
|
244
|
-
"cn-north-1": {
|
|
245
|
-
description: "China (Beijing)"
|
|
246
|
-
},
|
|
247
|
-
"cn-northwest-1": {
|
|
248
|
-
description: "China (Ningxia)"
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
}, {
|
|
252
|
-
id: "aws-eusc",
|
|
253
|
-
outputs: {
|
|
254
|
-
dnsSuffix: "amazonaws.eu",
|
|
255
|
-
dualStackDnsSuffix: "api.amazonwebservices.eu",
|
|
256
|
-
implicitGlobalRegion: "eusc-de-east-1",
|
|
257
|
-
name: "aws-eusc",
|
|
258
|
-
supportsDualStack: true,
|
|
259
|
-
supportsFIPS: true
|
|
260
|
-
},
|
|
261
|
-
regionRegex: "^eusc\\-(de)\\-\\w+\\-\\d+$",
|
|
262
|
-
regions: {
|
|
263
|
-
"eusc-de-east-1": {
|
|
264
|
-
description: "EU (Germany)"
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
}, {
|
|
268
|
-
id: "aws-iso",
|
|
269
|
-
outputs: {
|
|
270
|
-
dnsSuffix: "c2s.ic.gov",
|
|
271
|
-
dualStackDnsSuffix: "api.aws.ic.gov",
|
|
272
|
-
implicitGlobalRegion: "us-iso-east-1",
|
|
273
|
-
name: "aws-iso",
|
|
274
|
-
supportsDualStack: true,
|
|
275
|
-
supportsFIPS: true
|
|
276
|
-
},
|
|
277
|
-
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
|
|
278
|
-
regions: {
|
|
279
|
-
"aws-iso-global": {
|
|
280
|
-
description: "aws-iso global region"
|
|
281
|
-
},
|
|
282
|
-
"us-iso-east-1": {
|
|
283
|
-
description: "US ISO East"
|
|
284
|
-
},
|
|
285
|
-
"us-iso-west-1": {
|
|
286
|
-
description: "US ISO WEST"
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
}, {
|
|
290
|
-
id: "aws-iso-b",
|
|
291
|
-
outputs: {
|
|
292
|
-
dnsSuffix: "sc2s.sgov.gov",
|
|
293
|
-
dualStackDnsSuffix: "api.aws.scloud",
|
|
294
|
-
implicitGlobalRegion: "us-isob-east-1",
|
|
295
|
-
name: "aws-iso-b",
|
|
296
|
-
supportsDualStack: true,
|
|
297
|
-
supportsFIPS: true
|
|
298
|
-
},
|
|
299
|
-
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
|
|
300
|
-
regions: {
|
|
301
|
-
"aws-iso-b-global": {
|
|
302
|
-
description: "aws-iso-b global region"
|
|
303
|
-
},
|
|
304
|
-
"us-isob-east-1": {
|
|
305
|
-
description: "US ISOB East (Ohio)"
|
|
306
|
-
}
|
|
15
|
+
if (!utilEndpoints.isValidHostLabel(value)) {
|
|
16
|
+
return false;
|
|
307
17
|
}
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
outputs: {
|
|
311
|
-
dnsSuffix: "cloud.adc-e.uk",
|
|
312
|
-
dualStackDnsSuffix: "api.cloud-aws.adc-e.uk",
|
|
313
|
-
implicitGlobalRegion: "eu-isoe-west-1",
|
|
314
|
-
name: "aws-iso-e",
|
|
315
|
-
supportsDualStack: true,
|
|
316
|
-
supportsFIPS: true
|
|
317
|
-
},
|
|
318
|
-
regionRegex: "^eu\\-isoe\\-\\w+\\-\\d+$",
|
|
319
|
-
regions: {
|
|
320
|
-
"aws-iso-e-global": {
|
|
321
|
-
description: "aws-iso-e global region"
|
|
322
|
-
},
|
|
323
|
-
"eu-isoe-west-1": {
|
|
324
|
-
description: "EU ISOE West"
|
|
325
|
-
}
|
|
18
|
+
if (value.length < 3 || value.length > 63) {
|
|
19
|
+
return false;
|
|
326
20
|
}
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
outputs: {
|
|
330
|
-
dnsSuffix: "csp.hci.ic.gov",
|
|
331
|
-
dualStackDnsSuffix: "api.aws.hci.ic.gov",
|
|
332
|
-
implicitGlobalRegion: "us-isof-south-1",
|
|
333
|
-
name: "aws-iso-f",
|
|
334
|
-
supportsDualStack: true,
|
|
335
|
-
supportsFIPS: true
|
|
336
|
-
},
|
|
337
|
-
regionRegex: "^us\\-isof\\-\\w+\\-\\d+$",
|
|
338
|
-
regions: {
|
|
339
|
-
"aws-iso-f-global": {
|
|
340
|
-
description: "aws-iso-f global region"
|
|
341
|
-
},
|
|
342
|
-
"us-isof-east-1": {
|
|
343
|
-
description: "US ISOF EAST"
|
|
344
|
-
},
|
|
345
|
-
"us-isof-south-1": {
|
|
346
|
-
description: "US ISOF SOUTH"
|
|
347
|
-
}
|
|
21
|
+
if (value !== value.toLowerCase()) {
|
|
22
|
+
return false;
|
|
348
23
|
}
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
outputs: {
|
|
352
|
-
dnsSuffix: "amazonaws.com",
|
|
353
|
-
dualStackDnsSuffix: "api.aws",
|
|
354
|
-
implicitGlobalRegion: "us-gov-west-1",
|
|
355
|
-
name: "aws-us-gov",
|
|
356
|
-
supportsDualStack: true,
|
|
357
|
-
supportsFIPS: true
|
|
358
|
-
},
|
|
359
|
-
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
|
|
360
|
-
regions: {
|
|
361
|
-
"aws-us-gov-global": {
|
|
362
|
-
description: "aws-us-gov global region"
|
|
363
|
-
},
|
|
364
|
-
"us-gov-east-1": {
|
|
365
|
-
description: "AWS GovCloud (US-East)"
|
|
366
|
-
},
|
|
367
|
-
"us-gov-west-1": {
|
|
368
|
-
description: "AWS GovCloud (US-West)"
|
|
369
|
-
}
|
|
24
|
+
if (utilEndpoints.isIpAddress(value)) {
|
|
25
|
+
return false;
|
|
370
26
|
}
|
|
371
|
-
|
|
372
|
-
version: "1.1"
|
|
27
|
+
return true;
|
|
373
28
|
};
|
|
374
29
|
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
const
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
if (new RegExp(regionRegex).test(value)) {
|
|
394
|
-
return {
|
|
395
|
-
...outputs
|
|
396
|
-
};
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
const DEFAULT_PARTITION = partitions.find((partition2) => partition2.id === "aws");
|
|
400
|
-
if (!DEFAULT_PARTITION) {
|
|
401
|
-
throw new Error(
|
|
402
|
-
"Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist."
|
|
403
|
-
);
|
|
404
|
-
}
|
|
405
|
-
return {
|
|
406
|
-
...DEFAULT_PARTITION.outputs
|
|
407
|
-
};
|
|
408
|
-
}, "partition");
|
|
409
|
-
var setPartitionInfo = /* @__PURE__ */ __name((partitionsInfo, userAgentPrefix = "") => {
|
|
410
|
-
selectedPartitionsInfo = partitionsInfo;
|
|
411
|
-
selectedUserAgentPrefix = userAgentPrefix;
|
|
412
|
-
}, "setPartitionInfo");
|
|
413
|
-
var useDefaultPartitionInfo = /* @__PURE__ */ __name(() => {
|
|
414
|
-
setPartitionInfo(partitions_default, "");
|
|
415
|
-
}, "useDefaultPartitionInfo");
|
|
416
|
-
var getUserAgentPrefix = /* @__PURE__ */ __name(() => selectedUserAgentPrefix, "getUserAgentPrefix");
|
|
30
|
+
const ARN_DELIMITER = ":";
|
|
31
|
+
const RESOURCE_DELIMITER = "/";
|
|
32
|
+
const parseArn = (value) => {
|
|
33
|
+
const segments = value.split(ARN_DELIMITER);
|
|
34
|
+
if (segments.length < 6)
|
|
35
|
+
return null;
|
|
36
|
+
const [arn, partition, service, region, accountId, ...resourcePath] = segments;
|
|
37
|
+
if (arn !== "arn" || partition === "" || service === "" || resourcePath.join(ARN_DELIMITER) === "")
|
|
38
|
+
return null;
|
|
39
|
+
const resourceId = resourcePath.map((resource) => resource.split(RESOURCE_DELIMITER)).flat();
|
|
40
|
+
return {
|
|
41
|
+
partition,
|
|
42
|
+
service,
|
|
43
|
+
region,
|
|
44
|
+
accountId,
|
|
45
|
+
resourceId,
|
|
46
|
+
};
|
|
47
|
+
};
|
|
417
48
|
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
49
|
+
var partitions = [
|
|
50
|
+
{
|
|
51
|
+
id: "aws",
|
|
52
|
+
outputs: {
|
|
53
|
+
dnsSuffix: "amazonaws.com",
|
|
54
|
+
dualStackDnsSuffix: "api.aws",
|
|
55
|
+
implicitGlobalRegion: "us-east-1",
|
|
56
|
+
name: "aws",
|
|
57
|
+
supportsDualStack: true,
|
|
58
|
+
supportsFIPS: true
|
|
59
|
+
},
|
|
60
|
+
regionRegex: "^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",
|
|
61
|
+
regions: {
|
|
62
|
+
"af-south-1": {
|
|
63
|
+
description: "Africa (Cape Town)"
|
|
64
|
+
},
|
|
65
|
+
"ap-east-1": {
|
|
66
|
+
description: "Asia Pacific (Hong Kong)"
|
|
67
|
+
},
|
|
68
|
+
"ap-east-2": {
|
|
69
|
+
description: "Asia Pacific (Taipei)"
|
|
70
|
+
},
|
|
71
|
+
"ap-northeast-1": {
|
|
72
|
+
description: "Asia Pacific (Tokyo)"
|
|
73
|
+
},
|
|
74
|
+
"ap-northeast-2": {
|
|
75
|
+
description: "Asia Pacific (Seoul)"
|
|
76
|
+
},
|
|
77
|
+
"ap-northeast-3": {
|
|
78
|
+
description: "Asia Pacific (Osaka)"
|
|
79
|
+
},
|
|
80
|
+
"ap-south-1": {
|
|
81
|
+
description: "Asia Pacific (Mumbai)"
|
|
82
|
+
},
|
|
83
|
+
"ap-south-2": {
|
|
84
|
+
description: "Asia Pacific (Hyderabad)"
|
|
85
|
+
},
|
|
86
|
+
"ap-southeast-1": {
|
|
87
|
+
description: "Asia Pacific (Singapore)"
|
|
88
|
+
},
|
|
89
|
+
"ap-southeast-2": {
|
|
90
|
+
description: "Asia Pacific (Sydney)"
|
|
91
|
+
},
|
|
92
|
+
"ap-southeast-3": {
|
|
93
|
+
description: "Asia Pacific (Jakarta)"
|
|
94
|
+
},
|
|
95
|
+
"ap-southeast-4": {
|
|
96
|
+
description: "Asia Pacific (Melbourne)"
|
|
97
|
+
},
|
|
98
|
+
"ap-southeast-5": {
|
|
99
|
+
description: "Asia Pacific (Malaysia)"
|
|
100
|
+
},
|
|
101
|
+
"ap-southeast-6": {
|
|
102
|
+
description: "Asia Pacific (New Zealand)"
|
|
103
|
+
},
|
|
104
|
+
"ap-southeast-7": {
|
|
105
|
+
description: "Asia Pacific (Thailand)"
|
|
106
|
+
},
|
|
107
|
+
"aws-global": {
|
|
108
|
+
description: "aws global region"
|
|
109
|
+
},
|
|
110
|
+
"ca-central-1": {
|
|
111
|
+
description: "Canada (Central)"
|
|
112
|
+
},
|
|
113
|
+
"ca-west-1": {
|
|
114
|
+
description: "Canada West (Calgary)"
|
|
115
|
+
},
|
|
116
|
+
"eu-central-1": {
|
|
117
|
+
description: "Europe (Frankfurt)"
|
|
118
|
+
},
|
|
119
|
+
"eu-central-2": {
|
|
120
|
+
description: "Europe (Zurich)"
|
|
121
|
+
},
|
|
122
|
+
"eu-north-1": {
|
|
123
|
+
description: "Europe (Stockholm)"
|
|
124
|
+
},
|
|
125
|
+
"eu-south-1": {
|
|
126
|
+
description: "Europe (Milan)"
|
|
127
|
+
},
|
|
128
|
+
"eu-south-2": {
|
|
129
|
+
description: "Europe (Spain)"
|
|
130
|
+
},
|
|
131
|
+
"eu-west-1": {
|
|
132
|
+
description: "Europe (Ireland)"
|
|
133
|
+
},
|
|
134
|
+
"eu-west-2": {
|
|
135
|
+
description: "Europe (London)"
|
|
136
|
+
},
|
|
137
|
+
"eu-west-3": {
|
|
138
|
+
description: "Europe (Paris)"
|
|
139
|
+
},
|
|
140
|
+
"il-central-1": {
|
|
141
|
+
description: "Israel (Tel Aviv)"
|
|
142
|
+
},
|
|
143
|
+
"me-central-1": {
|
|
144
|
+
description: "Middle East (UAE)"
|
|
145
|
+
},
|
|
146
|
+
"me-south-1": {
|
|
147
|
+
description: "Middle East (Bahrain)"
|
|
148
|
+
},
|
|
149
|
+
"mx-central-1": {
|
|
150
|
+
description: "Mexico (Central)"
|
|
151
|
+
},
|
|
152
|
+
"sa-east-1": {
|
|
153
|
+
description: "South America (Sao Paulo)"
|
|
154
|
+
},
|
|
155
|
+
"us-east-1": {
|
|
156
|
+
description: "US East (N. Virginia)"
|
|
157
|
+
},
|
|
158
|
+
"us-east-2": {
|
|
159
|
+
description: "US East (Ohio)"
|
|
160
|
+
},
|
|
161
|
+
"us-west-1": {
|
|
162
|
+
description: "US West (N. California)"
|
|
163
|
+
},
|
|
164
|
+
"us-west-2": {
|
|
165
|
+
description: "US West (Oregon)"
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
id: "aws-cn",
|
|
171
|
+
outputs: {
|
|
172
|
+
dnsSuffix: "amazonaws.com.cn",
|
|
173
|
+
dualStackDnsSuffix: "api.amazonwebservices.com.cn",
|
|
174
|
+
implicitGlobalRegion: "cn-northwest-1",
|
|
175
|
+
name: "aws-cn",
|
|
176
|
+
supportsDualStack: true,
|
|
177
|
+
supportsFIPS: true
|
|
178
|
+
},
|
|
179
|
+
regionRegex: "^cn\\-\\w+\\-\\d+$",
|
|
180
|
+
regions: {
|
|
181
|
+
"aws-cn-global": {
|
|
182
|
+
description: "aws-cn global region"
|
|
183
|
+
},
|
|
184
|
+
"cn-north-1": {
|
|
185
|
+
description: "China (Beijing)"
|
|
186
|
+
},
|
|
187
|
+
"cn-northwest-1": {
|
|
188
|
+
description: "China (Ningxia)"
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
id: "aws-eusc",
|
|
194
|
+
outputs: {
|
|
195
|
+
dnsSuffix: "amazonaws.eu",
|
|
196
|
+
dualStackDnsSuffix: "api.amazonwebservices.eu",
|
|
197
|
+
implicitGlobalRegion: "eusc-de-east-1",
|
|
198
|
+
name: "aws-eusc",
|
|
199
|
+
supportsDualStack: true,
|
|
200
|
+
supportsFIPS: true
|
|
201
|
+
},
|
|
202
|
+
regionRegex: "^eusc\\-(de)\\-\\w+\\-\\d+$",
|
|
203
|
+
regions: {
|
|
204
|
+
"eusc-de-east-1": {
|
|
205
|
+
description: "EU (Germany)"
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
id: "aws-iso",
|
|
211
|
+
outputs: {
|
|
212
|
+
dnsSuffix: "c2s.ic.gov",
|
|
213
|
+
dualStackDnsSuffix: "api.aws.ic.gov",
|
|
214
|
+
implicitGlobalRegion: "us-iso-east-1",
|
|
215
|
+
name: "aws-iso",
|
|
216
|
+
supportsDualStack: true,
|
|
217
|
+
supportsFIPS: true
|
|
218
|
+
},
|
|
219
|
+
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
|
|
220
|
+
regions: {
|
|
221
|
+
"aws-iso-global": {
|
|
222
|
+
description: "aws-iso global region"
|
|
223
|
+
},
|
|
224
|
+
"us-iso-east-1": {
|
|
225
|
+
description: "US ISO East"
|
|
226
|
+
},
|
|
227
|
+
"us-iso-west-1": {
|
|
228
|
+
description: "US ISO WEST"
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
id: "aws-iso-b",
|
|
234
|
+
outputs: {
|
|
235
|
+
dnsSuffix: "sc2s.sgov.gov",
|
|
236
|
+
dualStackDnsSuffix: "api.aws.scloud",
|
|
237
|
+
implicitGlobalRegion: "us-isob-east-1",
|
|
238
|
+
name: "aws-iso-b",
|
|
239
|
+
supportsDualStack: true,
|
|
240
|
+
supportsFIPS: true
|
|
241
|
+
},
|
|
242
|
+
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
|
|
243
|
+
regions: {
|
|
244
|
+
"aws-iso-b-global": {
|
|
245
|
+
description: "aws-iso-b global region"
|
|
246
|
+
},
|
|
247
|
+
"us-isob-east-1": {
|
|
248
|
+
description: "US ISOB East (Ohio)"
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
id: "aws-iso-e",
|
|
254
|
+
outputs: {
|
|
255
|
+
dnsSuffix: "cloud.adc-e.uk",
|
|
256
|
+
dualStackDnsSuffix: "api.cloud-aws.adc-e.uk",
|
|
257
|
+
implicitGlobalRegion: "eu-isoe-west-1",
|
|
258
|
+
name: "aws-iso-e",
|
|
259
|
+
supportsDualStack: true,
|
|
260
|
+
supportsFIPS: true
|
|
261
|
+
},
|
|
262
|
+
regionRegex: "^eu\\-isoe\\-\\w+\\-\\d+$",
|
|
263
|
+
regions: {
|
|
264
|
+
"aws-iso-e-global": {
|
|
265
|
+
description: "aws-iso-e global region"
|
|
266
|
+
},
|
|
267
|
+
"eu-isoe-west-1": {
|
|
268
|
+
description: "EU ISOE West"
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
id: "aws-iso-f",
|
|
274
|
+
outputs: {
|
|
275
|
+
dnsSuffix: "csp.hci.ic.gov",
|
|
276
|
+
dualStackDnsSuffix: "api.aws.hci.ic.gov",
|
|
277
|
+
implicitGlobalRegion: "us-isof-south-1",
|
|
278
|
+
name: "aws-iso-f",
|
|
279
|
+
supportsDualStack: true,
|
|
280
|
+
supportsFIPS: true
|
|
281
|
+
},
|
|
282
|
+
regionRegex: "^us\\-isof\\-\\w+\\-\\d+$",
|
|
283
|
+
regions: {
|
|
284
|
+
"aws-iso-f-global": {
|
|
285
|
+
description: "aws-iso-f global region"
|
|
286
|
+
},
|
|
287
|
+
"us-isof-east-1": {
|
|
288
|
+
description: "US ISOF EAST"
|
|
289
|
+
},
|
|
290
|
+
"us-isof-south-1": {
|
|
291
|
+
description: "US ISOF SOUTH"
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
id: "aws-us-gov",
|
|
297
|
+
outputs: {
|
|
298
|
+
dnsSuffix: "amazonaws.com",
|
|
299
|
+
dualStackDnsSuffix: "api.aws",
|
|
300
|
+
implicitGlobalRegion: "us-gov-west-1",
|
|
301
|
+
name: "aws-us-gov",
|
|
302
|
+
supportsDualStack: true,
|
|
303
|
+
supportsFIPS: true
|
|
304
|
+
},
|
|
305
|
+
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
|
|
306
|
+
regions: {
|
|
307
|
+
"aws-us-gov-global": {
|
|
308
|
+
description: "aws-us-gov global region"
|
|
309
|
+
},
|
|
310
|
+
"us-gov-east-1": {
|
|
311
|
+
description: "AWS GovCloud (US-East)"
|
|
312
|
+
},
|
|
313
|
+
"us-gov-west-1": {
|
|
314
|
+
description: "AWS GovCloud (US-West)"
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
];
|
|
319
|
+
var version = "1.1";
|
|
320
|
+
var partitionsInfo = {
|
|
321
|
+
partitions: partitions,
|
|
322
|
+
version: version
|
|
423
323
|
};
|
|
424
|
-
import_util_endpoints.customEndpointFunctions.aws = awsEndpointFunctions;
|
|
425
324
|
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
325
|
+
let selectedPartitionsInfo = partitionsInfo;
|
|
326
|
+
let selectedUserAgentPrefix = "";
|
|
327
|
+
const partition = (value) => {
|
|
328
|
+
const { partitions } = selectedPartitionsInfo;
|
|
329
|
+
for (const partition of partitions) {
|
|
330
|
+
const { regions, outputs } = partition;
|
|
331
|
+
for (const [region, regionData] of Object.entries(regions)) {
|
|
332
|
+
if (region === value) {
|
|
333
|
+
return {
|
|
334
|
+
...outputs,
|
|
335
|
+
...regionData,
|
|
336
|
+
};
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
for (const partition of partitions) {
|
|
341
|
+
const { regionRegex, outputs } = partition;
|
|
342
|
+
if (new RegExp(regionRegex).test(value)) {
|
|
343
|
+
return {
|
|
344
|
+
...outputs,
|
|
345
|
+
};
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
const DEFAULT_PARTITION = partitions.find((partition) => partition.id === "aws");
|
|
349
|
+
if (!DEFAULT_PARTITION) {
|
|
350
|
+
throw new Error("Provided region was not found in the partition array or regex," +
|
|
351
|
+
" and default partition with id 'aws' doesn't exist.");
|
|
352
|
+
}
|
|
353
|
+
return {
|
|
354
|
+
...DEFAULT_PARTITION.outputs,
|
|
446
355
|
};
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
// src/types/EndpointRuleObject.ts
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
// src/types/ErrorRuleObject.ts
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
// src/types/RuleSetObject.ts
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
// src/types/TreeRuleObject.ts
|
|
468
|
-
|
|
356
|
+
};
|
|
357
|
+
const setPartitionInfo = (partitionsInfo, userAgentPrefix = "") => {
|
|
358
|
+
selectedPartitionsInfo = partitionsInfo;
|
|
359
|
+
selectedUserAgentPrefix = userAgentPrefix;
|
|
360
|
+
};
|
|
361
|
+
const useDefaultPartitionInfo = () => {
|
|
362
|
+
setPartitionInfo(partitionsInfo, "");
|
|
363
|
+
};
|
|
364
|
+
const getUserAgentPrefix = () => selectedUserAgentPrefix;
|
|
469
365
|
|
|
470
|
-
|
|
366
|
+
const awsEndpointFunctions = {
|
|
367
|
+
isVirtualHostableS3Bucket: isVirtualHostableS3Bucket,
|
|
368
|
+
parseArn: parseArn,
|
|
369
|
+
partition: partition,
|
|
370
|
+
};
|
|
371
|
+
utilEndpoints.customEndpointFunctions.aws = awsEndpointFunctions;
|
|
471
372
|
|
|
472
|
-
|
|
373
|
+
const resolveDefaultAwsRegionalEndpointsConfig = (input) => {
|
|
374
|
+
if (typeof input.endpointProvider !== "function") {
|
|
375
|
+
throw new Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.");
|
|
376
|
+
}
|
|
377
|
+
const { endpoint } = input;
|
|
378
|
+
if (endpoint === undefined) {
|
|
379
|
+
input.endpoint = async () => {
|
|
380
|
+
return toEndpointV1(input.endpointProvider({
|
|
381
|
+
Region: typeof input.region === "function" ? await input.region() : input.region,
|
|
382
|
+
UseDualStack: typeof input.useDualstackEndpoint === "function"
|
|
383
|
+
? await input.useDualstackEndpoint()
|
|
384
|
+
: input.useDualstackEndpoint,
|
|
385
|
+
UseFIPS: typeof input.useFipsEndpoint === "function" ? await input.useFipsEndpoint() : input.useFipsEndpoint,
|
|
386
|
+
Endpoint: undefined,
|
|
387
|
+
}, { logger: input.logger }));
|
|
388
|
+
};
|
|
389
|
+
}
|
|
390
|
+
return input;
|
|
391
|
+
};
|
|
392
|
+
const toEndpointV1 = (endpoint) => urlParser.parseUrl(endpoint.url);
|
|
473
393
|
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
setPartitionInfo,
|
|
478
|
-
useDefaultPartitionInfo,
|
|
479
|
-
getUserAgentPrefix,
|
|
480
|
-
isIpAddress,
|
|
481
|
-
resolveDefaultAwsRegionalEndpointsConfig,
|
|
482
|
-
toEndpointV1,
|
|
483
|
-
resolveEndpoint,
|
|
484
|
-
EndpointError
|
|
394
|
+
Object.defineProperty(exports, "EndpointError", {
|
|
395
|
+
enumerable: true,
|
|
396
|
+
get: function () { return utilEndpoints.EndpointError; }
|
|
485
397
|
});
|
|
486
|
-
|
|
398
|
+
Object.defineProperty(exports, "isIpAddress", {
|
|
399
|
+
enumerable: true,
|
|
400
|
+
get: function () { return utilEndpoints.isIpAddress; }
|
|
401
|
+
});
|
|
402
|
+
Object.defineProperty(exports, "resolveEndpoint", {
|
|
403
|
+
enumerable: true,
|
|
404
|
+
get: function () { return utilEndpoints.resolveEndpoint; }
|
|
405
|
+
});
|
|
406
|
+
exports.awsEndpointFunctions = awsEndpointFunctions;
|
|
407
|
+
exports.getUserAgentPrefix = getUserAgentPrefix;
|
|
408
|
+
exports.partition = partition;
|
|
409
|
+
exports.resolveDefaultAwsRegionalEndpointsConfig = resolveDefaultAwsRegionalEndpointsConfig;
|
|
410
|
+
exports.setPartitionInfo = setPartitionInfo;
|
|
411
|
+
exports.toEndpointV1 = toEndpointV1;
|
|
412
|
+
exports.useDefaultPartitionInfo = useDefaultPartitionInfo;
|