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