@aws-sdk/client-bcm-data-exports 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.
@@ -0,0 +1,45 @@
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 i = "ref";
6
+ const a = "isSet", b = "PartitionResult", c = "stringEquals", d = "sigv4", e = { [i]: "Endpoint" }, f = { "fn": "getAttr", "argv": [{ [i]: b }, "name"] }, g = { "authSchemes": [{ "name": d, "signingRegion": "{PartitionResult#implicitGlobalRegion}" }] }, h = [{ [i]: "Region" }];
7
+ const _data = {
8
+ conditions: [
9
+ [a, [e]],
10
+ [a, h],
11
+ ["aws.partition", h, b],
12
+ ["booleanEquals", [{ [i]: "UseFIPS" }, true]],
13
+ [c, [f, "aws-iso"]],
14
+ [c, [f, "aws-iso-b"]],
15
+ [c, [f, "aws-iso-e"]],
16
+ [c, [f, "aws-iso-f"]]
17
+ ],
18
+ results: [
19
+ [-1],
20
+ [-1, "Invalid Configuration: FIPS and custom endpoint are not supported"],
21
+ [e, {}],
22
+ ["https://bcm-data-exports.us-iso-east-1.c2s.ic.gov", { authSchemes: [{ name: d, signingRegion: "us-iso-east-1" }] }],
23
+ ["https://bcm-data-exports.us-isob-east-1.sc2s.sgov.gov", { authSchemes: [{ name: d, signingRegion: "us-isob-east-1" }] }],
24
+ ["https://bcm-data-exports.eu-isoe-west-1.cloud.adc-e.uk", { authSchemes: [{ name: d, signingRegion: "eu-isoe-west-1" }] }],
25
+ ["https://bcm-data-exports.us-isof-south-1.csp.hci.ic.gov", { authSchemes: [{ name: d, signingRegion: "us-isof-south-1" }] }],
26
+ ["https://bcm-data-exports-fips.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dualStackDnsSuffix}", g],
27
+ ["https://bcm-data-exports.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dualStackDnsSuffix}", g],
28
+ [-1, "Invalid Configuration: Missing Region"]
29
+ ]
30
+ };
31
+ const root = 2;
32
+ const r = 100_000_000;
33
+ const nodes = new Int32Array([
34
+ -1, 1, -1,
35
+ 0, 10, 3,
36
+ 1, 4, r + 9,
37
+ 2, 5, r + 9,
38
+ 3, r + 7, 6,
39
+ 4, r + 3, 7,
40
+ 5, r + 4, 8,
41
+ 6, r + 5, 9,
42
+ 7, r + 6, r + 8,
43
+ 3, r + 1, r + 2,
44
+ ]);
45
+ 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 ruleset_1 = require("./ruleset");
6
+ const bdd_1 = require("./bdd");
7
7
  const cache = new util_endpoints_2.EndpointCache({
8
8
  size: 50,
9
9
  params: ["Endpoint", "Region", "UseFIPS"],
10
10
  });
11
11
  const defaultEndpointResolver = (endpointParams, context = {}) => {
12
- return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
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,42 @@
1
+ import { BinaryDecisionDiagram } from "@smithy/util-endpoints";
2
+ const i = "ref";
3
+ const a = "isSet", b = "PartitionResult", c = "stringEquals", d = "sigv4", e = { [i]: "Endpoint" }, f = { "fn": "getAttr", "argv": [{ [i]: b }, "name"] }, g = { "authSchemes": [{ "name": d, "signingRegion": "{PartitionResult#implicitGlobalRegion}" }] }, h = [{ [i]: "Region" }];
4
+ const _data = {
5
+ conditions: [
6
+ [a, [e]],
7
+ [a, h],
8
+ ["aws.partition", h, b],
9
+ ["booleanEquals", [{ [i]: "UseFIPS" }, true]],
10
+ [c, [f, "aws-iso"]],
11
+ [c, [f, "aws-iso-b"]],
12
+ [c, [f, "aws-iso-e"]],
13
+ [c, [f, "aws-iso-f"]]
14
+ ],
15
+ results: [
16
+ [-1],
17
+ [-1, "Invalid Configuration: FIPS and custom endpoint are not supported"],
18
+ [e, {}],
19
+ ["https://bcm-data-exports.us-iso-east-1.c2s.ic.gov", { authSchemes: [{ name: d, signingRegion: "us-iso-east-1" }] }],
20
+ ["https://bcm-data-exports.us-isob-east-1.sc2s.sgov.gov", { authSchemes: [{ name: d, signingRegion: "us-isob-east-1" }] }],
21
+ ["https://bcm-data-exports.eu-isoe-west-1.cloud.adc-e.uk", { authSchemes: [{ name: d, signingRegion: "eu-isoe-west-1" }] }],
22
+ ["https://bcm-data-exports.us-isof-south-1.csp.hci.ic.gov", { authSchemes: [{ name: d, signingRegion: "us-isof-south-1" }] }],
23
+ ["https://bcm-data-exports-fips.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dualStackDnsSuffix}", g],
24
+ ["https://bcm-data-exports.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dualStackDnsSuffix}", g],
25
+ [-1, "Invalid Configuration: Missing Region"]
26
+ ]
27
+ };
28
+ const root = 2;
29
+ const r = 100_000_000;
30
+ const nodes = new Int32Array([
31
+ -1, 1, -1,
32
+ 0, 10, 3,
33
+ 1, 4, r + 9,
34
+ 2, 5, r + 9,
35
+ 3, r + 7, 6,
36
+ 4, r + 3, 7,
37
+ 5, r + 4, 8,
38
+ 6, r + 5, 9,
39
+ 7, r + 6, r + 8,
40
+ 3, r + 1, r + 2,
41
+ ]);
42
+ 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, EndpointCache, resolveEndpoint } from "@smithy/util-endpoints";
3
- import { ruleSet } from "./ruleset";
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", "UseFIPS"],
7
7
  });
8
8
  export const defaultEndpointResolver = (endpointParams, context = {}) => {
9
- return cache.get(endpointParams, () => resolveEndpoint(ruleSet, {
9
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
10
10
  endpointParams: endpointParams,
11
11
  logger: context.logger,
12
12
  }));
@@ -0,0 +1,2 @@
1
+ import { BinaryDecisionDiagram } from "@smithy/util-endpoints";
2
+ export declare const bdd: BinaryDecisionDiagram;
@@ -0,0 +1,2 @@
1
+ import { BinaryDecisionDiagram } from "@smithy/util-endpoints";
2
+ export declare const bdd: BinaryDecisionDiagram;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-bcm-data-exports",
3
3
  "description": "AWS SDK for JavaScript Bcm Data Exports Client for Node.js, Browser and React Native",
4
- "version": "3.1032.0",
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-bcm-data-exports",
@@ -21,41 +21,41 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.974.1",
25
- "@aws-sdk/credential-provider-node": "^3.972.32",
24
+ "@aws-sdk/core": "^3.974.3",
25
+ "@aws-sdk/credential-provider-node": "^3.972.34",
26
26
  "@aws-sdk/middleware-host-header": "^3.972.10",
27
27
  "@aws-sdk/middleware-logger": "^3.972.10",
28
28
  "@aws-sdk/middleware-recursion-detection": "^3.972.11",
29
- "@aws-sdk/middleware-user-agent": "^3.972.31",
30
- "@aws-sdk/region-config-resolver": "^3.972.12",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.33",
30
+ "@aws-sdk/region-config-resolver": "^3.972.13",
31
31
  "@aws-sdk/types": "^3.973.8",
32
- "@aws-sdk/util-endpoints": "^3.996.7",
32
+ "@aws-sdk/util-endpoints": "^3.996.8",
33
33
  "@aws-sdk/util-user-agent-browser": "^3.972.10",
34
- "@aws-sdk/util-user-agent-node": "^3.973.17",
35
- "@smithy/config-resolver": "^4.4.16",
36
- "@smithy/core": "^3.23.15",
34
+ "@aws-sdk/util-user-agent-node": "^3.973.19",
35
+ "@smithy/config-resolver": "^4.4.17",
36
+ "@smithy/core": "^3.23.16",
37
37
  "@smithy/fetch-http-handler": "^5.3.17",
38
38
  "@smithy/hash-node": "^4.2.14",
39
39
  "@smithy/invalid-dependency": "^4.2.14",
40
40
  "@smithy/middleware-content-length": "^4.2.14",
41
- "@smithy/middleware-endpoint": "^4.4.30",
42
- "@smithy/middleware-retry": "^4.5.3",
43
- "@smithy/middleware-serde": "^4.2.18",
41
+ "@smithy/middleware-endpoint": "^4.4.31",
42
+ "@smithy/middleware-retry": "^4.5.4",
43
+ "@smithy/middleware-serde": "^4.2.19",
44
44
  "@smithy/middleware-stack": "^4.2.14",
45
45
  "@smithy/node-config-provider": "^4.3.14",
46
- "@smithy/node-http-handler": "^4.5.3",
46
+ "@smithy/node-http-handler": "^4.6.0",
47
47
  "@smithy/protocol-http": "^5.3.14",
48
- "@smithy/smithy-client": "^4.12.11",
48
+ "@smithy/smithy-client": "^4.12.12",
49
49
  "@smithy/types": "^4.14.1",
50
50
  "@smithy/url-parser": "^4.2.14",
51
51
  "@smithy/util-base64": "^4.3.2",
52
52
  "@smithy/util-body-length-browser": "^4.2.2",
53
53
  "@smithy/util-body-length-node": "^4.2.3",
54
- "@smithy/util-defaults-mode-browser": "^4.3.47",
55
- "@smithy/util-defaults-mode-node": "^4.2.52",
56
- "@smithy/util-endpoints": "^3.4.1",
54
+ "@smithy/util-defaults-mode-browser": "^4.3.48",
55
+ "@smithy/util-defaults-mode-node": "^4.2.53",
56
+ "@smithy/util-endpoints": "^3.4.2",
57
57
  "@smithy/util-middleware": "^4.2.14",
58
- "@smithy/util-retry": "^4.3.2",
58
+ "@smithy/util-retry": "^4.3.3",
59
59
  "@smithy/util-utf8": "^4.2.2",
60
60
  "tslib": "^2.6.2"
61
61
  },
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ruleSet = void 0;
4
- const r = "argv", s = "ref";
5
- const a = true, b = false, c = "isSet", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "stringEquals", i = "sigv4", j = { "required": false, "type": "string" }, k = { [s]: "Endpoint" }, l = {}, m = { "fn": "getAttr", [r]: [{ [s]: g }, "name"] }, n = { "fn": "booleanEquals", [r]: [{ [s]: "UseFIPS" }, false] }, o = { "authSchemes": [{ "name": i, "signingRegion": "{PartitionResult#implicitGlobalRegion}" }] }, p = [{ "fn": "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }], q = [{ [s]: "Region" }];
6
- const _data = { version: "1.0", parameters: { UseFIPS: { required: a, default: b, type: "boolean" }, Endpoint: j, Region: j }, rules: [{ conditions: [{ fn: c, [r]: [k] }], rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { endpoint: { url: k, properties: l, headers: l }, type: e }], type: f }, { rules: [{ conditions: [{ fn: c, [r]: q }], rules: [{ conditions: [{ fn: "aws.partition", [r]: q, assign: g }], rules: [{ conditions: [{ fn: h, [r]: [m, "aws-iso"] }, n], endpoint: { url: "https://bcm-data-exports.us-iso-east-1.c2s.ic.gov", properties: { authSchemes: [{ name: i, signingRegion: "us-iso-east-1" }] }, headers: l }, type: e }, { conditions: [{ fn: h, [r]: [m, "aws-iso-b"] }, n], endpoint: { url: "https://bcm-data-exports.us-isob-east-1.sc2s.sgov.gov", properties: { authSchemes: [{ name: i, signingRegion: "us-isob-east-1" }] }, headers: l }, type: e }, { conditions: [{ fn: h, [r]: [m, "aws-iso-e"] }, n], endpoint: { url: "https://bcm-data-exports.eu-isoe-west-1.cloud.adc-e.uk", properties: { authSchemes: [{ name: i, signingRegion: "eu-isoe-west-1" }] }, headers: l }, type: e }, { conditions: [{ fn: h, [r]: [m, "aws-iso-f"] }, n], endpoint: { url: "https://bcm-data-exports.us-isof-south-1.csp.hci.ic.gov", properties: { authSchemes: [{ name: i, signingRegion: "us-isof-south-1" }] }, headers: l }, type: e }, { conditions: p, endpoint: { url: "https://bcm-data-exports-fips.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dualStackDnsSuffix}", properties: o, headers: l }, type: e }, { endpoint: { url: "https://bcm-data-exports.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dualStackDnsSuffix}", properties: o, headers: l }, 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 r = "argv", s = "ref";
2
- const a = true, b = false, c = "isSet", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "stringEquals", i = "sigv4", j = { "required": false, "type": "string" }, k = { [s]: "Endpoint" }, l = {}, m = { "fn": "getAttr", [r]: [{ [s]: g }, "name"] }, n = { "fn": "booleanEquals", [r]: [{ [s]: "UseFIPS" }, false] }, o = { "authSchemes": [{ "name": i, "signingRegion": "{PartitionResult#implicitGlobalRegion}" }] }, p = [{ "fn": "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }], q = [{ [s]: "Region" }];
3
- const _data = { version: "1.0", parameters: { UseFIPS: { required: a, default: b, type: "boolean" }, Endpoint: j, Region: j }, rules: [{ conditions: [{ fn: c, [r]: [k] }], rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { endpoint: { url: k, properties: l, headers: l }, type: e }], type: f }, { rules: [{ conditions: [{ fn: c, [r]: q }], rules: [{ conditions: [{ fn: "aws.partition", [r]: q, assign: g }], rules: [{ conditions: [{ fn: h, [r]: [m, "aws-iso"] }, n], endpoint: { url: "https://bcm-data-exports.us-iso-east-1.c2s.ic.gov", properties: { authSchemes: [{ name: i, signingRegion: "us-iso-east-1" }] }, headers: l }, type: e }, { conditions: [{ fn: h, [r]: [m, "aws-iso-b"] }, n], endpoint: { url: "https://bcm-data-exports.us-isob-east-1.sc2s.sgov.gov", properties: { authSchemes: [{ name: i, signingRegion: "us-isob-east-1" }] }, headers: l }, type: e }, { conditions: [{ fn: h, [r]: [m, "aws-iso-e"] }, n], endpoint: { url: "https://bcm-data-exports.eu-isoe-west-1.cloud.adc-e.uk", properties: { authSchemes: [{ name: i, signingRegion: "eu-isoe-west-1" }] }, headers: l }, type: e }, { conditions: [{ fn: h, [r]: [m, "aws-iso-f"] }, n], endpoint: { url: "https://bcm-data-exports.us-isof-south-1.csp.hci.ic.gov", properties: { authSchemes: [{ name: i, signingRegion: "us-isof-south-1" }] }, headers: l }, type: e }, { conditions: p, endpoint: { url: "https://bcm-data-exports-fips.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dualStackDnsSuffix}", properties: o, headers: l }, type: e }, { endpoint: { url: "https://bcm-data-exports.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dualStackDnsSuffix}", properties: o, headers: l }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }], type: f }] };
4
- export const ruleSet = _data;
@@ -1,2 +0,0 @@
1
- import { RuleSetObject } from "@smithy/types";
2
- export declare const ruleSet: RuleSetObject;
@@ -1,2 +0,0 @@
1
- import { RuleSetObject } from "@smithy/types";
2
- export declare const ruleSet: RuleSetObject;