@aws-sdk/util-endpoints 3.631.0 → 3.637.0
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
|
@@ -96,7 +96,7 @@ var parseArn = /* @__PURE__ */ __name((value) => {
|
|
|
96
96
|
const [arn, partition2, service, region, accountId, ...resourcePath] = segments;
|
|
97
97
|
if (arn !== "arn" || partition2 === "" || service === "" || resourcePath.join(ARN_DELIMITER) === "")
|
|
98
98
|
return null;
|
|
99
|
-
const resourceId = resourcePath
|
|
99
|
+
const resourceId = resourcePath.map((resource) => resource.split(RESOURCE_DELIMITER)).flat();
|
|
100
100
|
return {
|
|
101
101
|
partition: partition2,
|
|
102
102
|
service,
|
|
@@ -153,6 +153,9 @@ var partitions_default = {
|
|
|
153
153
|
"ap-southeast-4": {
|
|
154
154
|
description: "Asia Pacific (Melbourne)"
|
|
155
155
|
},
|
|
156
|
+
"ap-southeast-5": {
|
|
157
|
+
description: "Asia Pacific (Malaysia)"
|
|
158
|
+
},
|
|
156
159
|
"aws-global": {
|
|
157
160
|
description: "AWS Standard global region"
|
|
158
161
|
},
|
|
@@ -7,9 +7,7 @@ export const parseArn = (value) => {
|
|
|
7
7
|
const [arn, partition, service, region, accountId, ...resourcePath] = segments;
|
|
8
8
|
if (arn !== "arn" || partition === "" || service === "" || resourcePath.join(ARN_DELIMITER) === "")
|
|
9
9
|
return null;
|
|
10
|
-
const resourceId = resourcePath
|
|
11
|
-
? resourcePath[0].split(RESOURCE_DELIMITER)
|
|
12
|
-
: resourcePath;
|
|
10
|
+
const resourceId = resourcePath.map((resource) => resource.split(RESOURCE_DELIMITER)).flat();
|
|
13
11
|
return {
|
|
14
12
|
partition,
|
|
15
13
|
service,
|