@aws-sdk/client-gamelift 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/README.md CHANGED
@@ -108,6 +108,45 @@ const params = { /** input parameters */ };
108
108
  const command = new ListAliasesCommand(params);
109
109
  ```
110
110
 
111
+ #### Supported Message Protocols
112
+
113
+ This client supports multiple protocols.
114
+
115
+ The default for this client is **AWS JSON (RPC) 1.1**.
116
+
117
+ We have selected this default based on our evaluation of the
118
+ performance characteristics of this protocol format in JavaScript. You don't need to change it,
119
+ but you have the option to do so, for example to support existing integrations or tests.
120
+ Selecting a non-default protocol changes the format
121
+ of the data sent over the network, but does not affect how you interact with the
122
+ client using JavaScript objects.
123
+
124
+ Install the `@aws-sdk/config` package to access alternate protocols.
125
+
126
+ See [AWS Protocols](https://smithy.io/2.0/aws/protocols/index.html) for more information.
127
+
128
+ ##### AWS JSON (RPC) 1.1
129
+
130
+ This protocol uses JSON payloads.
131
+ ```js
132
+ import { AwsJson1_1Protocol } from "@aws-sdk/config/protocol";
133
+
134
+ const client = new GameLiftClient({
135
+ protocol: AwsJson1_1Protocol
136
+ });
137
+ ```
138
+
139
+ ##### Smithy RPC v2 CBOR
140
+
141
+ This protocol uses CBOR payloads.
142
+ ```js
143
+ import { AwsSmithyRpcV2CborProtocol } from "@aws-sdk/config/protocol";
144
+
145
+ const client = new GameLiftClient({
146
+ protocol: AwsSmithyRpcV2CborProtocol
147
+ });
148
+ ```
149
+
111
150
  #### Async/await
112
151
 
113
152
  We recommend using the [await](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await)
@@ -0,0 +1,49 @@
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 k = "ref";
6
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
7
+ const _data = {
8
+ conditions: [
9
+ [c, [g]],
10
+ [c, j],
11
+ ["aws.partition", j, d],
12
+ [e, [{ [k]: "UseFIPS" }, b]],
13
+ [e, [{ [k]: "UseDualStack" }, b]],
14
+ [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
15
+ [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
16
+ ],
17
+ results: [
18
+ [a],
19
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
20
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
21
+ [g, i],
22
+ ["https://gamelift-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
23
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
24
+ ["https://gamelift-fips.{Region}.{PartitionResult#dnsSuffix}", i],
25
+ [a, "FIPS is enabled but this partition does not support FIPS"],
26
+ ["https://gamelift.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
27
+ [a, "DualStack is enabled but this partition does not support DualStack"],
28
+ ["https://gamelift.{Region}.{PartitionResult#dnsSuffix}", i],
29
+ [a, "Invalid Configuration: Missing Region"]
30
+ ]
31
+ };
32
+ const root = 2;
33
+ const r = 100_000_000;
34
+ const nodes = new Int32Array([
35
+ -1, 1, -1,
36
+ 0, 12, 3,
37
+ 1, 4, r + 11,
38
+ 2, 5, r + 11,
39
+ 3, 8, 6,
40
+ 4, 7, r + 10,
41
+ 5, r + 8, r + 9,
42
+ 4, 10, 9,
43
+ 6, r + 6, r + 7,
44
+ 5, 11, r + 5,
45
+ 6, r + 4, r + 5,
46
+ 3, r + 1, 13,
47
+ 4, r + 2, r + 3,
48
+ ]);
49
+ 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", "UseDualStack", "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,46 @@
1
+ import { BinaryDecisionDiagram } from "@smithy/util-endpoints";
2
+ const k = "ref";
3
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
4
+ const _data = {
5
+ conditions: [
6
+ [c, [g]],
7
+ [c, j],
8
+ ["aws.partition", j, d],
9
+ [e, [{ [k]: "UseFIPS" }, b]],
10
+ [e, [{ [k]: "UseDualStack" }, b]],
11
+ [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
12
+ [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
13
+ ],
14
+ results: [
15
+ [a],
16
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
17
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
18
+ [g, i],
19
+ ["https://gamelift-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
20
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
21
+ ["https://gamelift-fips.{Region}.{PartitionResult#dnsSuffix}", i],
22
+ [a, "FIPS is enabled but this partition does not support FIPS"],
23
+ ["https://gamelift.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
24
+ [a, "DualStack is enabled but this partition does not support DualStack"],
25
+ ["https://gamelift.{Region}.{PartitionResult#dnsSuffix}", i],
26
+ [a, "Invalid Configuration: Missing Region"]
27
+ ]
28
+ };
29
+ const root = 2;
30
+ const r = 100_000_000;
31
+ const nodes = new Int32Array([
32
+ -1, 1, -1,
33
+ 0, 12, 3,
34
+ 1, 4, r + 11,
35
+ 2, 5, r + 11,
36
+ 3, 8, 6,
37
+ 4, 7, r + 10,
38
+ 5, r + 8, r + 9,
39
+ 4, 10, 9,
40
+ 6, r + 6, r + 7,
41
+ 5, 11, r + 5,
42
+ 6, r + 4, r + 5,
43
+ 3, r + 1, 13,
44
+ 4, r + 2, r + 3,
45
+ ]);
46
+ 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", "UseDualStack", "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-gamelift",
3
3
  "description": "AWS SDK for JavaScript Gamelift 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-gamelift",
@@ -23,41 +23,41 @@
23
23
  "dependencies": {
24
24
  "@aws-crypto/sha256-browser": "5.2.0",
25
25
  "@aws-crypto/sha256-js": "5.2.0",
26
- "@aws-sdk/core": "^3.974.1",
27
- "@aws-sdk/credential-provider-node": "^3.972.32",
26
+ "@aws-sdk/core": "^3.974.3",
27
+ "@aws-sdk/credential-provider-node": "^3.972.34",
28
28
  "@aws-sdk/middleware-host-header": "^3.972.10",
29
29
  "@aws-sdk/middleware-logger": "^3.972.10",
30
30
  "@aws-sdk/middleware-recursion-detection": "^3.972.11",
31
- "@aws-sdk/middleware-user-agent": "^3.972.31",
32
- "@aws-sdk/region-config-resolver": "^3.972.12",
31
+ "@aws-sdk/middleware-user-agent": "^3.972.33",
32
+ "@aws-sdk/region-config-resolver": "^3.972.13",
33
33
  "@aws-sdk/types": "^3.973.8",
34
- "@aws-sdk/util-endpoints": "^3.996.7",
34
+ "@aws-sdk/util-endpoints": "^3.996.8",
35
35
  "@aws-sdk/util-user-agent-browser": "^3.972.10",
36
- "@aws-sdk/util-user-agent-node": "^3.973.17",
37
- "@smithy/config-resolver": "^4.4.16",
38
- "@smithy/core": "^3.23.15",
36
+ "@aws-sdk/util-user-agent-node": "^3.973.19",
37
+ "@smithy/config-resolver": "^4.4.17",
38
+ "@smithy/core": "^3.23.16",
39
39
  "@smithy/fetch-http-handler": "^5.3.17",
40
40
  "@smithy/hash-node": "^4.2.14",
41
41
  "@smithy/invalid-dependency": "^4.2.14",
42
42
  "@smithy/middleware-content-length": "^4.2.14",
43
- "@smithy/middleware-endpoint": "^4.4.30",
44
- "@smithy/middleware-retry": "^4.5.3",
45
- "@smithy/middleware-serde": "^4.2.18",
43
+ "@smithy/middleware-endpoint": "^4.4.31",
44
+ "@smithy/middleware-retry": "^4.5.4",
45
+ "@smithy/middleware-serde": "^4.2.19",
46
46
  "@smithy/middleware-stack": "^4.2.14",
47
47
  "@smithy/node-config-provider": "^4.3.14",
48
- "@smithy/node-http-handler": "^4.5.3",
48
+ "@smithy/node-http-handler": "^4.6.0",
49
49
  "@smithy/protocol-http": "^5.3.14",
50
- "@smithy/smithy-client": "^4.12.11",
50
+ "@smithy/smithy-client": "^4.12.12",
51
51
  "@smithy/types": "^4.14.1",
52
52
  "@smithy/url-parser": "^4.2.14",
53
53
  "@smithy/util-base64": "^4.3.2",
54
54
  "@smithy/util-body-length-browser": "^4.2.2",
55
55
  "@smithy/util-body-length-node": "^4.2.3",
56
- "@smithy/util-defaults-mode-browser": "^4.3.47",
57
- "@smithy/util-defaults-mode-node": "^4.2.52",
58
- "@smithy/util-endpoints": "^3.4.1",
56
+ "@smithy/util-defaults-mode-browser": "^4.3.48",
57
+ "@smithy/util-defaults-mode-node": "^4.2.53",
58
+ "@smithy/util-endpoints": "^3.4.2",
59
59
  "@smithy/util-middleware": "^4.2.14",
60
- "@smithy/util-retry": "^4.3.2",
60
+ "@smithy/util-retry": "^4.3.3",
61
61
  "@smithy/util-utf8": "^4.2.2",
62
62
  "tslib": "^2.6.2"
63
63
  },
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ruleSet = void 0;
4
- const s = "required", t = "fn", u = "argv", v = "ref";
5
- const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [s]: false, "type": "string" }, i = { [s]: true, "default": false, "type": "boolean" }, j = { [v]: "Endpoint" }, k = { [t]: c, [u]: [{ [v]: "UseFIPS" }, true] }, l = { [t]: c, [u]: [{ [v]: "UseDualStack" }, true] }, m = {}, n = { [t]: "getAttr", [u]: [{ [v]: g }, "supportsFIPS"] }, o = { [t]: c, [u]: [true, { [t]: "getAttr", [u]: [{ [v]: g }, "supportsDualStack"] }] }, p = [k], q = [l], r = [{ [v]: "Region" }];
6
- const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [t]: b, [u]: [j] }], rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: j, properties: m, headers: m }, type: e }], type: f }, { conditions: [{ [t]: b, [u]: r }], rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: g }], rules: [{ conditions: [k, l], rules: [{ conditions: [{ [t]: c, [u]: [a, n] }, o], rules: [{ endpoint: { url: "https://gamelift-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: p, rules: [{ conditions: [{ [t]: c, [u]: [n, a] }], rules: [{ endpoint: { url: "https://gamelift-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: q, rules: [{ conditions: [o], rules: [{ endpoint: { url: "https://gamelift.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://gamelift.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
7
- exports.ruleSet = _data;
@@ -1,4 +0,0 @@
1
- const s = "required", t = "fn", u = "argv", v = "ref";
2
- const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [s]: false, "type": "string" }, i = { [s]: true, "default": false, "type": "boolean" }, j = { [v]: "Endpoint" }, k = { [t]: c, [u]: [{ [v]: "UseFIPS" }, true] }, l = { [t]: c, [u]: [{ [v]: "UseDualStack" }, true] }, m = {}, n = { [t]: "getAttr", [u]: [{ [v]: g }, "supportsFIPS"] }, o = { [t]: c, [u]: [true, { [t]: "getAttr", [u]: [{ [v]: g }, "supportsDualStack"] }] }, p = [k], q = [l], r = [{ [v]: "Region" }];
3
- const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [t]: b, [u]: [j] }], rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: j, properties: m, headers: m }, type: e }], type: f }, { conditions: [{ [t]: b, [u]: r }], rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: g }], rules: [{ conditions: [k, l], rules: [{ conditions: [{ [t]: c, [u]: [a, n] }, o], rules: [{ endpoint: { url: "https://gamelift-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: p, rules: [{ conditions: [{ [t]: c, [u]: [n, a] }], rules: [{ endpoint: { url: "https://gamelift-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: q, rules: [{ conditions: [o], rules: [{ endpoint: { url: "https://gamelift.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://gamelift.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
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;