@aws-sdk/client-iam 3.1032.0 → 3.1034.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/endpoint/bdd.js +85 -0
- package/dist-cjs/endpoint/endpointResolver.js +2 -2
- package/dist-es/endpoint/bdd.js +82 -0
- package/dist-es/endpoint/endpointResolver.js +3 -3
- package/dist-types/endpoint/bdd.d.ts +2 -0
- package/dist-types/ts3.4/endpoint/bdd.d.ts +2 -0
- package/package.json +19 -19
- package/dist-cjs/endpoint/ruleset.js +0 -7
- package/dist-es/endpoint/ruleset.js +0 -4
- package/dist-types/endpoint/ruleset.d.ts +0 -2
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +0 -2
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.bdd = void 0;
|
|
4
|
+
const util_endpoints_1 = require("@smithy/util-endpoints");
|
|
5
|
+
const t = "ref", u = "authSchemes", v = "name", w = "signingRegion";
|
|
6
|
+
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "stringEquals", g = "getAttr", h = "sigv4", i = { [t]: "Endpoint" }, j = { "fn": g, "argv": [{ [t]: d }, "name"] }, k = { [t]: d }, l = { [u]: [{ [v]: h, [w]: "us-east-1" }] }, m = { [u]: [{ [v]: h, [w]: "cn-north-1" }] }, n = { [u]: [{ [v]: h, [w]: "us-gov-west-1" }] }, o = { [u]: [{ [v]: h, [w]: "us-iso-east-1" }] }, p = { [u]: [{ [v]: h, [w]: "us-isob-east-1" }] }, q = { [u]: [{ [v]: h, [w]: "{PartitionResult#implicitGlobalRegion}" }] }, s = [{ [t]: "Region" }];
|
|
7
|
+
const _data = {
|
|
8
|
+
conditions: [
|
|
9
|
+
[c, [i]],
|
|
10
|
+
[c, s],
|
|
11
|
+
["aws.partition", s, d],
|
|
12
|
+
[e, [{ [t]: "UseFIPS" }, b]],
|
|
13
|
+
[e, [{ [t]: "UseDualStack" }, b]],
|
|
14
|
+
[f, [j, "aws"]],
|
|
15
|
+
[f, [j, "aws-cn"]],
|
|
16
|
+
[f, [j, "aws-us-gov"]],
|
|
17
|
+
[e, [{ fn: g, argv: [k, "supportsDualStack"] }, b]],
|
|
18
|
+
[f, [j, "aws-iso"]],
|
|
19
|
+
[f, [j, "aws-iso-b"]],
|
|
20
|
+
[e, [{ fn: g, argv: [k, "supportsFIPS"] }, b]],
|
|
21
|
+
[f, [j, "aws-iso-e"]],
|
|
22
|
+
[f, [j, "aws-iso-f"]],
|
|
23
|
+
[f, [j, "aws-eusc"]]
|
|
24
|
+
],
|
|
25
|
+
results: [
|
|
26
|
+
[a],
|
|
27
|
+
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
28
|
+
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
29
|
+
[i, {}],
|
|
30
|
+
["https://iam.global.api.aws", l],
|
|
31
|
+
["https://iam-fips.global.api.aws", l],
|
|
32
|
+
["https://iam.global.api.amazonwebservices.com.cn", m],
|
|
33
|
+
["https://iam.cn-north-1.amazonaws.com.cn", m],
|
|
34
|
+
["https://iam.us-gov.api.aws", n],
|
|
35
|
+
["https://iam.us-gov.amazonaws.com", n],
|
|
36
|
+
["https://iam.us-iso-east-1.c2s.ic.gov", o],
|
|
37
|
+
["https://iam-fips.us-iso-east-1.c2s.ic.gov", o],
|
|
38
|
+
["https://iam.us-isob-east-1.sc2s.sgov.gov", p],
|
|
39
|
+
["https://iam-fips.us-isob-east-1.sc2s.sgov.gov", p],
|
|
40
|
+
["https://iam.eu-isoe-west-1.cloud.adc-e.uk", { [u]: [{ [v]: h, [w]: "eu-isoe-west-1" }] }],
|
|
41
|
+
["https://iam.us-isof-south-1.csp.hci.ic.gov", { [u]: [{ [v]: h, [w]: "us-isof-south-1" }] }],
|
|
42
|
+
["https://iam.eusc-de-east-1.amazonaws.eu", { [u]: [{ [v]: h, [w]: "eusc-de-east-1" }] }],
|
|
43
|
+
["https://iam-fips.{PartitionResult#dualStackDnsSuffix}", q],
|
|
44
|
+
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
45
|
+
["https://iam-fips.{PartitionResult#dnsSuffix}", q],
|
|
46
|
+
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
47
|
+
["https://iam.{PartitionResult#dualStackDnsSuffix}", q],
|
|
48
|
+
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
49
|
+
["https://iam.{PartitionResult#dnsSuffix}", q],
|
|
50
|
+
[a, "Invalid Configuration: Missing Region"]
|
|
51
|
+
]
|
|
52
|
+
};
|
|
53
|
+
const root = 2;
|
|
54
|
+
const r = 100_000_000;
|
|
55
|
+
const nodes = new Int32Array([
|
|
56
|
+
-1, 1, -1,
|
|
57
|
+
0, 27, 3,
|
|
58
|
+
1, 4, r + 24,
|
|
59
|
+
2, 5, r + 24,
|
|
60
|
+
3, 18, 6,
|
|
61
|
+
4, 14, 7,
|
|
62
|
+
6, r + 7, 8,
|
|
63
|
+
7, r + 9, 9,
|
|
64
|
+
9, r + 10, 10,
|
|
65
|
+
10, r + 12, 11,
|
|
66
|
+
12, r + 14, 12,
|
|
67
|
+
13, r + 15, 13,
|
|
68
|
+
14, r + 16, r + 23,
|
|
69
|
+
5, r + 4, 15,
|
|
70
|
+
6, r + 6, 16,
|
|
71
|
+
7, r + 8, 17,
|
|
72
|
+
8, r + 21, r + 22,
|
|
73
|
+
4, 23, 19,
|
|
74
|
+
7, r + 9, 20,
|
|
75
|
+
9, r + 11, 21,
|
|
76
|
+
10, r + 13, 22,
|
|
77
|
+
11, r + 19, r + 20,
|
|
78
|
+
5, r + 5, 24,
|
|
79
|
+
7, r + 8, 25,
|
|
80
|
+
8, 26, r + 18,
|
|
81
|
+
11, r + 17, r + 18,
|
|
82
|
+
3, r + 1, 28,
|
|
83
|
+
4, r + 2, r + 3,
|
|
84
|
+
]);
|
|
85
|
+
exports.bdd = util_endpoints_1.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -3,13 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.defaultEndpointResolver = void 0;
|
|
4
4
|
const util_endpoints_1 = require("@aws-sdk/util-endpoints");
|
|
5
5
|
const util_endpoints_2 = require("@smithy/util-endpoints");
|
|
6
|
-
const
|
|
6
|
+
const bdd_1 = require("./bdd");
|
|
7
7
|
const cache = new util_endpoints_2.EndpointCache({
|
|
8
8
|
size: 50,
|
|
9
9
|
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
10
10
|
});
|
|
11
11
|
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
12
|
-
return cache.get(endpointParams, () => (0, util_endpoints_2.
|
|
12
|
+
return cache.get(endpointParams, () => (0, util_endpoints_2.decideEndpoint)(bdd_1.bdd, {
|
|
13
13
|
endpointParams: endpointParams,
|
|
14
14
|
logger: context.logger,
|
|
15
15
|
}));
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { BinaryDecisionDiagram } from "@smithy/util-endpoints";
|
|
2
|
+
const t = "ref", u = "authSchemes", v = "name", w = "signingRegion";
|
|
3
|
+
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "stringEquals", g = "getAttr", h = "sigv4", i = { [t]: "Endpoint" }, j = { "fn": g, "argv": [{ [t]: d }, "name"] }, k = { [t]: d }, l = { [u]: [{ [v]: h, [w]: "us-east-1" }] }, m = { [u]: [{ [v]: h, [w]: "cn-north-1" }] }, n = { [u]: [{ [v]: h, [w]: "us-gov-west-1" }] }, o = { [u]: [{ [v]: h, [w]: "us-iso-east-1" }] }, p = { [u]: [{ [v]: h, [w]: "us-isob-east-1" }] }, q = { [u]: [{ [v]: h, [w]: "{PartitionResult#implicitGlobalRegion}" }] }, s = [{ [t]: "Region" }];
|
|
4
|
+
const _data = {
|
|
5
|
+
conditions: [
|
|
6
|
+
[c, [i]],
|
|
7
|
+
[c, s],
|
|
8
|
+
["aws.partition", s, d],
|
|
9
|
+
[e, [{ [t]: "UseFIPS" }, b]],
|
|
10
|
+
[e, [{ [t]: "UseDualStack" }, b]],
|
|
11
|
+
[f, [j, "aws"]],
|
|
12
|
+
[f, [j, "aws-cn"]],
|
|
13
|
+
[f, [j, "aws-us-gov"]],
|
|
14
|
+
[e, [{ fn: g, argv: [k, "supportsDualStack"] }, b]],
|
|
15
|
+
[f, [j, "aws-iso"]],
|
|
16
|
+
[f, [j, "aws-iso-b"]],
|
|
17
|
+
[e, [{ fn: g, argv: [k, "supportsFIPS"] }, b]],
|
|
18
|
+
[f, [j, "aws-iso-e"]],
|
|
19
|
+
[f, [j, "aws-iso-f"]],
|
|
20
|
+
[f, [j, "aws-eusc"]]
|
|
21
|
+
],
|
|
22
|
+
results: [
|
|
23
|
+
[a],
|
|
24
|
+
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
25
|
+
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
26
|
+
[i, {}],
|
|
27
|
+
["https://iam.global.api.aws", l],
|
|
28
|
+
["https://iam-fips.global.api.aws", l],
|
|
29
|
+
["https://iam.global.api.amazonwebservices.com.cn", m],
|
|
30
|
+
["https://iam.cn-north-1.amazonaws.com.cn", m],
|
|
31
|
+
["https://iam.us-gov.api.aws", n],
|
|
32
|
+
["https://iam.us-gov.amazonaws.com", n],
|
|
33
|
+
["https://iam.us-iso-east-1.c2s.ic.gov", o],
|
|
34
|
+
["https://iam-fips.us-iso-east-1.c2s.ic.gov", o],
|
|
35
|
+
["https://iam.us-isob-east-1.sc2s.sgov.gov", p],
|
|
36
|
+
["https://iam-fips.us-isob-east-1.sc2s.sgov.gov", p],
|
|
37
|
+
["https://iam.eu-isoe-west-1.cloud.adc-e.uk", { [u]: [{ [v]: h, [w]: "eu-isoe-west-1" }] }],
|
|
38
|
+
["https://iam.us-isof-south-1.csp.hci.ic.gov", { [u]: [{ [v]: h, [w]: "us-isof-south-1" }] }],
|
|
39
|
+
["https://iam.eusc-de-east-1.amazonaws.eu", { [u]: [{ [v]: h, [w]: "eusc-de-east-1" }] }],
|
|
40
|
+
["https://iam-fips.{PartitionResult#dualStackDnsSuffix}", q],
|
|
41
|
+
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
42
|
+
["https://iam-fips.{PartitionResult#dnsSuffix}", q],
|
|
43
|
+
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
44
|
+
["https://iam.{PartitionResult#dualStackDnsSuffix}", q],
|
|
45
|
+
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
46
|
+
["https://iam.{PartitionResult#dnsSuffix}", q],
|
|
47
|
+
[a, "Invalid Configuration: Missing Region"]
|
|
48
|
+
]
|
|
49
|
+
};
|
|
50
|
+
const root = 2;
|
|
51
|
+
const r = 100_000_000;
|
|
52
|
+
const nodes = new Int32Array([
|
|
53
|
+
-1, 1, -1,
|
|
54
|
+
0, 27, 3,
|
|
55
|
+
1, 4, r + 24,
|
|
56
|
+
2, 5, r + 24,
|
|
57
|
+
3, 18, 6,
|
|
58
|
+
4, 14, 7,
|
|
59
|
+
6, r + 7, 8,
|
|
60
|
+
7, r + 9, 9,
|
|
61
|
+
9, r + 10, 10,
|
|
62
|
+
10, r + 12, 11,
|
|
63
|
+
12, r + 14, 12,
|
|
64
|
+
13, r + 15, 13,
|
|
65
|
+
14, r + 16, r + 23,
|
|
66
|
+
5, r + 4, 15,
|
|
67
|
+
6, r + 6, 16,
|
|
68
|
+
7, r + 8, 17,
|
|
69
|
+
8, r + 21, r + 22,
|
|
70
|
+
4, 23, 19,
|
|
71
|
+
7, r + 9, 20,
|
|
72
|
+
9, r + 11, 21,
|
|
73
|
+
10, r + 13, 22,
|
|
74
|
+
11, r + 19, r + 20,
|
|
75
|
+
5, r + 5, 24,
|
|
76
|
+
7, r + 8, 25,
|
|
77
|
+
8, 26, r + 18,
|
|
78
|
+
11, r + 17, r + 18,
|
|
79
|
+
3, r + 1, 28,
|
|
80
|
+
4, r + 2, r + 3,
|
|
81
|
+
]);
|
|
82
|
+
export const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
|
|
2
|
-
import { customEndpointFunctions,
|
|
3
|
-
import {
|
|
2
|
+
import { customEndpointFunctions, decideEndpoint, EndpointCache } from "@smithy/util-endpoints";
|
|
3
|
+
import { bdd } from "./bdd";
|
|
4
4
|
const cache = new EndpointCache({
|
|
5
5
|
size: 50,
|
|
6
6
|
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
7
7
|
});
|
|
8
8
|
export const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
9
|
-
return cache.get(endpointParams, () =>
|
|
9
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
10
10
|
endpointParams: endpointParams,
|
|
11
11
|
logger: context.logger,
|
|
12
12
|
}));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-iam",
|
|
3
3
|
"description": "AWS SDK for JavaScript Iam Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.1034.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-iam",
|
|
@@ -27,47 +27,47 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
29
29
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
30
|
-
"@aws-sdk/core": "^3.974.
|
|
31
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
30
|
+
"@aws-sdk/core": "^3.974.3",
|
|
31
|
+
"@aws-sdk/credential-provider-node": "^3.972.34",
|
|
32
32
|
"@aws-sdk/middleware-host-header": "^3.972.10",
|
|
33
33
|
"@aws-sdk/middleware-logger": "^3.972.10",
|
|
34
34
|
"@aws-sdk/middleware-recursion-detection": "^3.972.11",
|
|
35
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
36
|
-
"@aws-sdk/region-config-resolver": "^3.972.
|
|
35
|
+
"@aws-sdk/middleware-user-agent": "^3.972.33",
|
|
36
|
+
"@aws-sdk/region-config-resolver": "^3.972.13",
|
|
37
37
|
"@aws-sdk/types": "^3.973.8",
|
|
38
|
-
"@aws-sdk/util-endpoints": "^3.996.
|
|
38
|
+
"@aws-sdk/util-endpoints": "^3.996.8",
|
|
39
39
|
"@aws-sdk/util-user-agent-browser": "^3.972.10",
|
|
40
|
-
"@aws-sdk/util-user-agent-node": "^3.973.
|
|
41
|
-
"@smithy/config-resolver": "^4.4.
|
|
42
|
-
"@smithy/core": "^3.23.
|
|
40
|
+
"@aws-sdk/util-user-agent-node": "^3.973.19",
|
|
41
|
+
"@smithy/config-resolver": "^4.4.17",
|
|
42
|
+
"@smithy/core": "^3.23.16",
|
|
43
43
|
"@smithy/fetch-http-handler": "^5.3.17",
|
|
44
44
|
"@smithy/hash-node": "^4.2.14",
|
|
45
45
|
"@smithy/invalid-dependency": "^4.2.14",
|
|
46
46
|
"@smithy/middleware-content-length": "^4.2.14",
|
|
47
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
48
|
-
"@smithy/middleware-retry": "^4.5.
|
|
49
|
-
"@smithy/middleware-serde": "^4.2.
|
|
47
|
+
"@smithy/middleware-endpoint": "^4.4.31",
|
|
48
|
+
"@smithy/middleware-retry": "^4.5.4",
|
|
49
|
+
"@smithy/middleware-serde": "^4.2.19",
|
|
50
50
|
"@smithy/middleware-stack": "^4.2.14",
|
|
51
51
|
"@smithy/node-config-provider": "^4.3.14",
|
|
52
|
-
"@smithy/node-http-handler": "^4.
|
|
52
|
+
"@smithy/node-http-handler": "^4.6.0",
|
|
53
53
|
"@smithy/protocol-http": "^5.3.14",
|
|
54
|
-
"@smithy/smithy-client": "^4.12.
|
|
54
|
+
"@smithy/smithy-client": "^4.12.12",
|
|
55
55
|
"@smithy/types": "^4.14.1",
|
|
56
56
|
"@smithy/url-parser": "^4.2.14",
|
|
57
57
|
"@smithy/util-base64": "^4.3.2",
|
|
58
58
|
"@smithy/util-body-length-browser": "^4.2.2",
|
|
59
59
|
"@smithy/util-body-length-node": "^4.2.3",
|
|
60
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
61
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
62
|
-
"@smithy/util-endpoints": "^3.4.
|
|
60
|
+
"@smithy/util-defaults-mode-browser": "^4.3.48",
|
|
61
|
+
"@smithy/util-defaults-mode-node": "^4.2.53",
|
|
62
|
+
"@smithy/util-endpoints": "^3.4.2",
|
|
63
63
|
"@smithy/util-middleware": "^4.2.14",
|
|
64
|
-
"@smithy/util-retry": "^4.3.
|
|
64
|
+
"@smithy/util-retry": "^4.3.3",
|
|
65
65
|
"@smithy/util-utf8": "^4.2.2",
|
|
66
66
|
"@smithy/util-waiter": "^4.2.16",
|
|
67
67
|
"tslib": "^2.6.2"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"@smithy/snapshot-testing": "^2.0.
|
|
70
|
+
"@smithy/snapshot-testing": "^2.0.7",
|
|
71
71
|
"@tsconfig/node20": "20.1.8",
|
|
72
72
|
"@types/node": "^20.14.8",
|
|
73
73
|
"concurrently": "7.0.0",
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ruleSet = void 0;
|
|
4
|
-
const H = "required", I = "fn", J = "argv", K = "ref", L = "properties", M = "headers", N = "authSchemes", O = "name", P = "signingRegion";
|
|
5
|
-
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "stringEquals", i = "sigv4", j = { [H]: true, "default": false, "type": "boolean" }, k = { [H]: false, "type": "string" }, l = { [K]: "Endpoint" }, m = { [I]: c, [J]: [{ [K]: "UseFIPS" }, true] }, n = { [I]: c, [J]: [{ [K]: "UseDualStack" }, true] }, o = {}, p = { [I]: h, [J]: [{ [I]: "getAttr", [J]: [{ [K]: g }, "name"] }, "aws"] }, q = { [I]: "getAttr", [J]: [{ [K]: g }, "name"] }, r = { [I]: c, [J]: [{ [K]: "UseFIPS" }, false] }, s = { [N]: [{ [O]: i, [P]: "us-east-1" }] }, t = { [I]: h, [J]: [q, "aws-cn"] }, u = { [N]: [{ [O]: i, [P]: "cn-north-1" }] }, v = { [I]: c, [J]: [{ [K]: "UseDualStack" }, false] }, w = { [I]: h, [J]: [q, "aws-us-gov"] }, x = { "url": "https://iam.us-gov.api.aws", [L]: { [N]: [{ [O]: i, [P]: "us-gov-west-1" }] }, [M]: {} }, y = { "url": "https://iam.us-gov.amazonaws.com", [L]: { [N]: [{ [O]: i, [P]: "us-gov-west-1" }] }, [M]: {} }, z = { [I]: h, [J]: [q, "aws-iso"] }, A = { [N]: [{ [O]: i, [P]: "us-iso-east-1" }] }, B = { [I]: h, [J]: [q, "aws-iso-b"] }, C = { [N]: [{ [O]: i, [P]: "us-isob-east-1" }] }, D = { [I]: "getAttr", [J]: [{ [K]: g }, "supportsFIPS"] }, E = { [I]: c, [J]: [true, { [I]: "getAttr", [J]: [{ [K]: g }, "supportsDualStack"] }] }, F = { [N]: [{ [O]: i, [P]: "{PartitionResult#implicitGlobalRegion}" }] }, G = [{ [K]: "Region" }];
|
|
6
|
-
const _data = { version: "1.0", parameters: { UseDualStack: j, UseFIPS: j, Endpoint: k, Region: k }, rules: [{ conditions: [{ [I]: b, [J]: [l] }], rules: [{ conditions: [m], error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { rules: [{ conditions: [n], error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: l, [L]: o, [M]: o }, type: e }], type: f }], type: f }, { rules: [{ conditions: [{ [I]: b, [J]: G }], rules: [{ conditions: [{ [I]: "aws.partition", [J]: G, assign: g }], rules: [{ conditions: [p, r, n], endpoint: { url: "https://iam.global.api.aws", [L]: s, [M]: o }, type: e }, { conditions: [p, m, n], endpoint: { url: "https://iam-fips.global.api.aws", [L]: s, [M]: o }, type: e }, { conditions: [t, r, n], endpoint: { url: "https://iam.global.api.amazonwebservices.com.cn", [L]: u, [M]: o }, type: e }, { conditions: [t, r, v], endpoint: { url: "https://iam.cn-north-1.amazonaws.com.cn", [L]: u, [M]: o }, type: e }, { conditions: [w, r, n], endpoint: x, type: e }, { conditions: [w, m, n], endpoint: x, type: e }, { conditions: [w, r, v], endpoint: y, type: e }, { conditions: [w, m, v], endpoint: y, type: e }, { conditions: [z, r, v], endpoint: { url: "https://iam.us-iso-east-1.c2s.ic.gov", [L]: A, [M]: o }, type: e }, { conditions: [z, m, v], endpoint: { url: "https://iam-fips.us-iso-east-1.c2s.ic.gov", [L]: A, [M]: o }, type: e }, { conditions: [B, r, v], endpoint: { url: "https://iam.us-isob-east-1.sc2s.sgov.gov", [L]: C, [M]: o }, type: e }, { conditions: [B, m, v], endpoint: { url: "https://iam-fips.us-isob-east-1.sc2s.sgov.gov", [L]: C, [M]: o }, type: e }, { conditions: [{ [I]: h, [J]: [q, "aws-iso-e"] }, r, v], endpoint: { url: "https://iam.eu-isoe-west-1.cloud.adc-e.uk", [L]: { [N]: [{ [O]: i, [P]: "eu-isoe-west-1" }] }, [M]: o }, type: e }, { conditions: [{ [I]: h, [J]: [q, "aws-iso-f"] }, r, v], endpoint: { url: "https://iam.us-isof-south-1.csp.hci.ic.gov", [L]: { [N]: [{ [O]: i, [P]: "us-isof-south-1" }] }, [M]: o }, type: e }, { conditions: [{ [I]: h, [J]: [q, "aws-eusc"] }, r, v], endpoint: { url: "https://iam.eusc-de-east-1.amazonaws.eu", [L]: { [N]: [{ [O]: i, [P]: "eusc-de-east-1" }] }, [M]: o }, type: e }, { conditions: [m, n], rules: [{ conditions: [{ [I]: c, [J]: [a, D] }, E], rules: [{ endpoint: { url: "https://iam-fips.{PartitionResult#dualStackDnsSuffix}", [L]: F, [M]: o }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: [m, v], rules: [{ conditions: [{ [I]: c, [J]: [D, a] }], rules: [{ endpoint: { url: "https://iam-fips.{PartitionResult#dnsSuffix}", [L]: F, [M]: o }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: [r, n], rules: [{ conditions: [E], rules: [{ endpoint: { url: "https://iam.{PartitionResult#dualStackDnsSuffix}", [L]: F, [M]: o }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://iam.{PartitionResult#dnsSuffix}", [L]: F, [M]: o }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }], type: f }] };
|
|
7
|
-
exports.ruleSet = _data;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const H = "required", I = "fn", J = "argv", K = "ref", L = "properties", M = "headers", N = "authSchemes", O = "name", P = "signingRegion";
|
|
2
|
-
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "stringEquals", i = "sigv4", j = { [H]: true, "default": false, "type": "boolean" }, k = { [H]: false, "type": "string" }, l = { [K]: "Endpoint" }, m = { [I]: c, [J]: [{ [K]: "UseFIPS" }, true] }, n = { [I]: c, [J]: [{ [K]: "UseDualStack" }, true] }, o = {}, p = { [I]: h, [J]: [{ [I]: "getAttr", [J]: [{ [K]: g }, "name"] }, "aws"] }, q = { [I]: "getAttr", [J]: [{ [K]: g }, "name"] }, r = { [I]: c, [J]: [{ [K]: "UseFIPS" }, false] }, s = { [N]: [{ [O]: i, [P]: "us-east-1" }] }, t = { [I]: h, [J]: [q, "aws-cn"] }, u = { [N]: [{ [O]: i, [P]: "cn-north-1" }] }, v = { [I]: c, [J]: [{ [K]: "UseDualStack" }, false] }, w = { [I]: h, [J]: [q, "aws-us-gov"] }, x = { "url": "https://iam.us-gov.api.aws", [L]: { [N]: [{ [O]: i, [P]: "us-gov-west-1" }] }, [M]: {} }, y = { "url": "https://iam.us-gov.amazonaws.com", [L]: { [N]: [{ [O]: i, [P]: "us-gov-west-1" }] }, [M]: {} }, z = { [I]: h, [J]: [q, "aws-iso"] }, A = { [N]: [{ [O]: i, [P]: "us-iso-east-1" }] }, B = { [I]: h, [J]: [q, "aws-iso-b"] }, C = { [N]: [{ [O]: i, [P]: "us-isob-east-1" }] }, D = { [I]: "getAttr", [J]: [{ [K]: g }, "supportsFIPS"] }, E = { [I]: c, [J]: [true, { [I]: "getAttr", [J]: [{ [K]: g }, "supportsDualStack"] }] }, F = { [N]: [{ [O]: i, [P]: "{PartitionResult#implicitGlobalRegion}" }] }, G = [{ [K]: "Region" }];
|
|
3
|
-
const _data = { version: "1.0", parameters: { UseDualStack: j, UseFIPS: j, Endpoint: k, Region: k }, rules: [{ conditions: [{ [I]: b, [J]: [l] }], rules: [{ conditions: [m], error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { rules: [{ conditions: [n], error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: l, [L]: o, [M]: o }, type: e }], type: f }], type: f }, { rules: [{ conditions: [{ [I]: b, [J]: G }], rules: [{ conditions: [{ [I]: "aws.partition", [J]: G, assign: g }], rules: [{ conditions: [p, r, n], endpoint: { url: "https://iam.global.api.aws", [L]: s, [M]: o }, type: e }, { conditions: [p, m, n], endpoint: { url: "https://iam-fips.global.api.aws", [L]: s, [M]: o }, type: e }, { conditions: [t, r, n], endpoint: { url: "https://iam.global.api.amazonwebservices.com.cn", [L]: u, [M]: o }, type: e }, { conditions: [t, r, v], endpoint: { url: "https://iam.cn-north-1.amazonaws.com.cn", [L]: u, [M]: o }, type: e }, { conditions: [w, r, n], endpoint: x, type: e }, { conditions: [w, m, n], endpoint: x, type: e }, { conditions: [w, r, v], endpoint: y, type: e }, { conditions: [w, m, v], endpoint: y, type: e }, { conditions: [z, r, v], endpoint: { url: "https://iam.us-iso-east-1.c2s.ic.gov", [L]: A, [M]: o }, type: e }, { conditions: [z, m, v], endpoint: { url: "https://iam-fips.us-iso-east-1.c2s.ic.gov", [L]: A, [M]: o }, type: e }, { conditions: [B, r, v], endpoint: { url: "https://iam.us-isob-east-1.sc2s.sgov.gov", [L]: C, [M]: o }, type: e }, { conditions: [B, m, v], endpoint: { url: "https://iam-fips.us-isob-east-1.sc2s.sgov.gov", [L]: C, [M]: o }, type: e }, { conditions: [{ [I]: h, [J]: [q, "aws-iso-e"] }, r, v], endpoint: { url: "https://iam.eu-isoe-west-1.cloud.adc-e.uk", [L]: { [N]: [{ [O]: i, [P]: "eu-isoe-west-1" }] }, [M]: o }, type: e }, { conditions: [{ [I]: h, [J]: [q, "aws-iso-f"] }, r, v], endpoint: { url: "https://iam.us-isof-south-1.csp.hci.ic.gov", [L]: { [N]: [{ [O]: i, [P]: "us-isof-south-1" }] }, [M]: o }, type: e }, { conditions: [{ [I]: h, [J]: [q, "aws-eusc"] }, r, v], endpoint: { url: "https://iam.eusc-de-east-1.amazonaws.eu", [L]: { [N]: [{ [O]: i, [P]: "eusc-de-east-1" }] }, [M]: o }, type: e }, { conditions: [m, n], rules: [{ conditions: [{ [I]: c, [J]: [a, D] }, E], rules: [{ endpoint: { url: "https://iam-fips.{PartitionResult#dualStackDnsSuffix}", [L]: F, [M]: o }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: [m, v], rules: [{ conditions: [{ [I]: c, [J]: [D, a] }], rules: [{ endpoint: { url: "https://iam-fips.{PartitionResult#dnsSuffix}", [L]: F, [M]: o }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: [r, n], rules: [{ conditions: [E], rules: [{ endpoint: { url: "https://iam.{PartitionResult#dualStackDnsSuffix}", [L]: F, [M]: o }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://iam.{PartitionResult#dnsSuffix}", [L]: F, [M]: o }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }], type: f }] };
|
|
4
|
-
export const ruleSet = _data;
|